﻿:root {
  --s-5: 0.31rem;
  --s-10: 0.63rem;
  --s-15: 0.94rem;
  --s-20: clamp(0.94rem, 0.35vw + 0.83rem, 1.25rem);
  --s-30: clamp(1.25rem, 0.69vw + 1.04rem, 1.88rem);
  --s-50: clamp(2.5rem, 0.69vw + 2.29rem, 3.13rem);
  --s-220: clamp(7.5rem, 6.94vw + 5.42rem, 13.75rem);

  --heading-3: clamp(2.25rem, 0.28vw + 2.17rem, 2.5rem);
  --paragraph-xxl: clamp(1.25rem, 1.11vw + 0.92rem, 2.25rem);
  --button: 1rem;

  --black: #111111;
  --white: #fff;
  --page-bg: #f4f3ee;
  --mint-green: #cfe8ff;
  --green: #2f6fed;
  --accent-orange: #ff8300;
  --cream-card: #ffffff;
  --very-light-gray-green: #eaf2ff;
  --black-20: rgba(0, 0, 0, 0.2);
  --black-10: rgba(0, 0, 0, 0.1);
  --muted: rgba(17, 17, 17, 0.45);
  --card-shadow: 0 18px 50px rgba(17, 17, 17, 0.1);

  /* Soft pill radii for navbar + Get in Touch */
  --nav-radius: 2.75rem;
  --nav-chip-radius: 999px;

  --font-sans: "Inter", "Schibsted Grotesk", sans-serif;
  --font-serif: "Instrument Serif", serif;

  /* Silver type + warm orange halo for dark sections */
  --text-silver: #eef0f3;
  --text-glow:
    0 0 6px rgba(255, 180, 80, 0.55),
    0 0 18px rgba(255, 131, 0, 0.7),
    0 0 42px rgba(255, 131, 0, 0.5),
    0 0 72px rgba(255, 131, 0, 0.28);
}

html.is-preloading,
html.is-preloading body {
  overflow: hidden;
  height: 100%;
}

.preloader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: flex-start;
  padding: 0 clamp(1.5rem, 6vw, 7rem);
  background: #000;
  color: #fff;
  pointer-events: none;
  overflow: hidden;
}

html.is-preloading .preloader {
  display: flex;
}

.preloader.is-leaving {
  transform: translate3d(0, -100%, 0);
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.preloader__line {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.5em;
  font-family: "Schibsted Grotesk", var(--font-sans);
  font-size: clamp(2.35rem, 5.8vw, 4.85rem);
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}

.preloader.is-leaving .preloader__line {
  transform: translate3d(0, -120%, 0);
}

.preloader__brand-mask,
.preloader__slot {
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
}

.preloader__brand-mask {
  padding: 0.28em 0.55em;
  margin: -0.28em -0.55em;
}

.preloader.is-brand-in .preloader__brand-mask {
  overflow: visible;
}

.preloader__brand {
  display: block;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  transform: translate3d(0, 115%, 0);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader.is-brand-in .preloader__brand {
  transform: translate3d(0, 0, 0);
}

.preloader__neon--red,
.preloader__neon--blue {
  color: #fff;
}

.preloader__neon--red {
  filter:
    drop-shadow(0 0 5px #b50321)
    drop-shadow(0 0 14px rgba(181, 3, 33, 0.55));
}

.preloader__neon--blue {
  filter:
    drop-shadow(0 0 5px #2f6fed)
    drop-shadow(0 0 14px rgba(47, 111, 237, 0.55));
}

.preloader__brand sup {
  font-size: 0.38em;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 0.12em;
  line-height: 0;
  vertical-align: super;
}

.preloader__slot {
  position: relative;
  min-width: 12.6ch;
}

.preloader__ghost {
  display: block;
  visibility: hidden;
  font-weight: 400;
  line-height: 1;
}

.preloader__word {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 400;
  line-height: 1;
  color: #8d8d8d;
  transform: translate3d(0, 115%, 0);
  transition: transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader__word.is-in {
  transform: translate3d(0, 0, 0);
}

.preloader__word.is-out {
  transform: translate3d(0, -115%, 0);
}

.preloader__visuals {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 1;
  width: min(48vw, 720px);
  height: min(78vh, 680px);
  transform: translate3d(0, -50%, 0);
  pointer-events: none;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 18%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 18%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
}

.preloader__visuals::before,
.preloader__visuals::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 32%;
  pointer-events: none;
}

.preloader__visuals::before {
  top: 0;
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.82) 38%, transparent 100%);
}

.preloader__visuals::after {
  bottom: 0;
  background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.82) 38%, transparent 100%);
}

.preloader.is-leaving .preloader__visuals {
  opacity: 0;
  transform: translate3d(0, calc(-50% - 18%), 0);
  transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}

.preloader__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: translate3d(28px, 0, 0) scale(1.04);
  transition:
    opacity 0.55s ease,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader__shot.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 767px) {
  .preloader {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1.25rem 7.5rem;
  }

  .preloader__line {
    flex-direction: column;
    align-items: center;
    gap: 0.18em;
    white-space: normal;
    text-align: center;
  }

  .preloader__slot {
    min-width: 0;
    width: 14ch;
    text-align: center;
  }

  .preloader__word {
    left: 50%;
    margin-left: 0;
    transform: translate3d(-50%, 115%, 0);
  }

  .preloader__word.is-in {
    transform: translate3d(-50%, 0, 0);
  }

  .preloader__word.is-out {
    transform: translate3d(-50%, -115%, 0);
  }

  .preloader__visuals {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: min(38vh, 280px);
    transform: none;
    mask-image:
      linear-gradient(180deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
    mask-composite: add;
    -webkit-mask-image:
      linear-gradient(180deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
    -webkit-mask-composite: source-over;
  }

  .preloader.is-leaving .preloader__visuals {
    transform: translate3d(0, 18%, 0);
  }
}

/* Illuminated glow text (dark backgrounds only) */
.text-glow {
  color: var(--text-silver);
  text-shadow: var(--text-glow);
}

/* Shared editorial heading + inline image pill */
.inline-heading {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.06em;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.inline-heading__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.28em 0.32em;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.inline-heading__text {
  display: inline-block;
  flex: 0 0 auto;
  white-space: nowrap;
}

.inline-heading__media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.55em;
  height: 0.72em;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(182, 5, 37, 0.22), rgba(47, 111, 237, 0.22)),
    #1a1a1a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(0.04em);
}

.inline-heading__media img,
.inline-heading__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.inline-heading__media video {
  pointer-events: none;
}

.inline-heading__media img[src=""],
.inline-heading__media img:not([src]) {
  opacity: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #fff #000;
}

html::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: #000;
}

html::-webkit-scrollbar-track {
  background: #000;
}

html::-webkit-scrollbar-thumb {
  background: #fff;
  border-radius: 999px;
  border: 2px solid #000;
}

html::-webkit-scrollbar-thumb:hover {
  background: #fff;
}

html::-webkit-scrollbar-corner {
  background: #000;
}

html.has-smooth-scroll {
  scroll-behavior: auto;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: clip;
}

html.is-scrolling .brands__track,
html.is-scrolling .pains__card,
html.is-scrolling .c-home-header-module__slider-overlay {
  pointer-events: none;
}

html.is-scrolling .quote::before,
html.is-scrolling .quote::after,
html.is-scrolling .brain__sky::before,
html.is-scrolling .brain__sky::after,
html.is-scrolling .brands__track--left,
html.is-scrolling .brands__track--right {
  animation-play-state: paused;
}

/* Drop expensive glass blur while the finger/wheel is moving */
html.is-scrolling .apple-glass {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Skip offscreen work — avoid sticky/scrub sections (about) */
.quote,
.workforce,
.process,
.brands,
.areas,
.pains,
.brain {
  content-visibility: auto;
  contain-intrinsic-size: auto 1400px;
}

.areas__card,
.brain__sheet {
  contain: layout paint;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: var(--page-bg);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ========== AI HUB HERO ========== */
.hero {
  --hero-inline: 1.5rem;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: strict;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(22rem, 46vh, 30rem);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.93) 8%,
    rgba(0, 0, 0, 0.88) 16%,
    rgba(0, 0, 0, 0.8) 26%,
    rgba(0, 0, 0, 0.68) 36%,
    rgba(0, 0, 0, 0.54) 46%,
    rgba(0, 0, 0, 0.4) 56%,
    rgba(0, 0, 0, 0.26) 66%,
    rgba(0, 0, 0, 0.15) 76%,
    rgba(0, 0, 0, 0.07) 86%,
    rgba(0, 0, 0, 0.02) 94%,
    transparent 100%
  );
}

.hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 768px) {
  .hero {
    --hero-inline: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    --hero-inline: 4rem;
  }
}

/* Reserves space in hero flow while the real nav is fixed */
.hero__nav-spacer {
  height: calc(1.5rem + 4.02rem);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero__nav-spacer {
    height: calc(1.5rem + 4.62rem);
  }
}

.hero__nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.5rem var(--hero-inline) 0;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    padding 0.35s ease,
    background-color 0.35s ease;
  opacity: 0;
  transform: translateY(-1rem);
  pointer-events: none;
}

.hero__nav-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Glass nav exits upward â€” gap before solid nav appears */
.hero__nav-wrap.is-visible.is-hidden,
.hero__nav-wrap.is-hidden {
  opacity: 0;
  transform: translateY(-120%);
  pointer-events: none;
}

/* Section 2 (mid-way) : full-bleed solid white nav + color logo */
.hero__nav-wrap.is-solid {
  padding: 0;
  background: #fff;
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.08), 0 10px 28px rgba(17, 17, 17, 0.06);
}

.hero__nav-wrap.is-solid .hero__nav {
  height: 4.4rem;
  border-radius: 0;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding-left: var(--hero-inline, 1.5rem);
  padding-right: var(--hero-inline, 1.5rem);
}

@media (min-width: 768px) {
  .hero__nav-wrap.is-solid .hero__nav {
    height: 5rem;
  }
}

.hero__nav-wrap.is-solid .apple-glass {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.hero__nav-wrap.is-solid .hero__links a {
  color: rgba(17, 17, 17, 0.88);
}

.hero__nav-wrap.is-solid .hero__links a:hover:not(.is-active) {
  background: rgba(17, 17, 17, 0.06);
  color: #111;
}

.hero__nav-wrap.is-solid .hero__signin {
  background: #050505;
  color: #fff;
}

.hero__nav-wrap.is-solid .hero__signin:hover {
  background: #050505;
  color: #fff;
}

.hero__nav-wrap.is-solid .hero__menu-btn span {
  background: rgba(17, 17, 17, 0.85);
}

.hero__nav-wrap.is-solid .hero__mobile-menu {
  margin: 0 var(--hero-inline, 1.5rem) 0.75rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.12);
}

.hero__nav-wrap.is-solid .hero__mobile-menu a {
  color: rgba(17, 17, 17, 0.8);
}

.hero__nav-wrap.is-solid .hero__mobile-menu a:hover {
  background: rgba(17, 17, 17, 0.06);
  color: #111;
}

.apple-glass {
  background: rgba(22, 22, 23, 0.55);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}

.liquid-glass {
  background: rgba(0, 0, 0, 0.4);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.1) 80%,
    rgba(255, 255, 255, 0.3) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.02rem;
  border-radius: var(--nav-radius);
  padding-left: 2.1rem;
  padding-right: 1.65rem;
  box-shadow: none;
}

.hero__nav-wrap:not(.is-solid) .hero__nav.apple-glass {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

@media (min-width: 768px) {
  .hero__nav {
    height: 4.62rem;
    padding-left: 2.5rem;
    padding-right: 1.9rem;
  }
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: opacity 0.3s;
}

.hero__brand:hover {
  opacity: 0.8;
}

.hero__brand-logo {
  display: block;
  height: 2.65rem;
  width: auto;
}

.hero__brand-logo--color {
  display: none;
}

.hero__nav-wrap.is-solid .hero__brand-logo--white {
  display: none;
}

.hero__nav-wrap.is-solid .hero__brand-logo--color {
  display: block;
}

@media (min-width: 768px) {
  .hero__brand-logo {
    height: 3.25rem;
  }
}

.hero__links {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

/* Tablet keeps hamburger — full links from laptop/desktop up (wearecheck ~992) */
@media (min-width: 992px) {
  .hero__links {
    display: flex;
  }
}

.hero__links a,
.hero__mobile-menu a.hero__nav-link {
  position: relative;
  isolation: isolate;
  border-radius: var(--nav-chip-radius);
  padding: 0.4rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  transition: color 0.35s ease;
  white-space: nowrap;
  overflow: hidden;
}

.hero__links a::before,
.hero__mobile-menu a.hero__nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1.45px 1.45px at 16% 32%, rgba(255, 255, 255, 1), transparent),
    radial-gradient(1.3px 1.3px at 38% 68%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.55px 1.55px at 58% 28%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.35px 1.35px at 74% 62%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.2px 1.2px at 88% 40%, rgba(255, 255, 255, 0.65), transparent),
    #000;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: inherit;
}

/* Tiny twinkling stars on the active black nav strip */
.hero__links a::after,
.hero__mobile-menu a.hero__nav-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(1.5px 1.5px at 24% 48%, rgba(255, 255, 255, 1), transparent),
    radial-gradient(1.25px 1.25px at 52% 22%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.4px 1.4px at 70% 74%, rgba(255, 255, 255, 1), transparent),
    radial-gradient(1.2px 1.2px at 90% 52%, rgba(255, 255, 255, 0.75), transparent);
  transition: opacity 0.35s ease;
}

.hero__links a:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero__links a.is-active,
.hero__mobile-menu a.hero__nav-link.is-active {
  background: transparent;
  color: #fff;
}

.hero__links a.is-active::before,
.hero__mobile-menu a.hero__nav-link.is-active::before {
  transform: scaleX(1);
}

.hero__links a.is-active::after,
.hero__mobile-menu a.hero__nav-link.is-active::after {
  opacity: 0.9;
  animation: nav-star-drift 3.7s linear infinite;
}

/* Smooth closed orbit — denser keyframes = more fluid */
@keyframes nav-star-drift {
  0% {
    opacity: 0.78;
    transform: translate3d(2px, 0, 0);
  }
  12.5% {
    opacity: 0.95;
    transform: translate3d(1.4px, -1.4px, 0);
  }
  25% {
    opacity: 1;
    transform: translate3d(0, -2px, 0);
  }
  37.5% {
    opacity: 0.9;
    transform: translate3d(-1.4px, -1.4px, 0);
  }
  50% {
    opacity: 0.8;
    transform: translate3d(-2px, 0, 0);
  }
  62.5% {
    opacity: 0.92;
    transform: translate3d(-1.4px, 1.4px, 0);
  }
  75% {
    opacity: 1;
    transform: translate3d(0, 2px, 0);
  }
  87.5% {
    opacity: 0.88;
    transform: translate3d(1.4px, 1.4px, 0);
  }
  100% {
    opacity: 0.78;
    transform: translate3d(2px, 0, 0);
  }
}

.hero__nav-wrap.is-solid .hero__links a.is-active,
.hero__nav-wrap.is-solid .hero__mobile-menu a.hero__nav-link.is-active {
  background: transparent;
  color: #fff;
}

.hero__nav-wrap.is-solid .hero__links a.is-active:hover,
.hero__nav-wrap.is-solid .hero__mobile-menu a.hero__nav-link.is-active:hover {
  background: transparent;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .hero__links a::before,
  .hero__mobile-menu a.hero__nav-link::before {
    transition: none;
  }

  .hero__links a.is-active::after,
  .hero__mobile-menu a.hero__nav-link.is-active::after {
    animation: none;
    opacity: 0.85;
  }
}

.hero__nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__signin {
  border-radius: var(--nav-chip-radius);
  background: #fff;
  color: #000;
  padding: 0.4rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: background 0.3s, transform 0.2s;
}

.hero__signin:hover {
  background: rgba(255, 255, 255, 0.85);
}

.hero__signin:active {
  transform: scale(0.95);
}

.btn-glow {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #050505;
  border: 0;
  box-shadow:
    0 0 10px rgba(47, 111, 237, 0.3),
    0 0 18px rgba(181, 3, 33, 0.22);
}

.btn-glow::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 50%;
  width: 180%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    #2f6fed 0deg,
    #8cb8ff 32deg,
    #2f6fed 70deg,
    #b50321 150deg,
    #ff6b8a 190deg,
    #b50321 230deg,
    #ffffff 252deg,
    #2f6fed 278deg,
    #2f6fed 360deg
  );
  animation: btn-glow-spin 4.8s linear infinite;
}

.btn-glow::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  z-index: -1;
  border-radius: inherit;
  background: #050505;
}

.btn-glow:hover {
  color: #fff;
  background: #050505;
}

.btn-glow:hover::after {
  background: #111;
}

@keyframes btn-glow-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-glow::before {
    animation: none;
  }
}

.hero__menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: transparent;
  border-radius: 9999px;
  cursor: pointer;
  padding: 0.55rem;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 992px) {
  .hero__menu-btn {
    display: none;
  }
}

.hero__menu-btn span {
  display: block;
  height: 1px;
  width: 1rem;
  background: rgba(255, 255, 255, 0.8);
  transition: transform 0.3s, opacity 0.3s;
  margin: 0 auto;
}

.hero__menu-btn.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hero__menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.hero__menu-btn.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero__mobile-menu {
  display: none;
  flex-direction: column;
  margin-top: 0.5rem;
  border-radius: calc(var(--nav-radius) - 0.35rem);
  padding: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hero__mobile-menu.is-open {
  display: flex;
}

@media (min-width: 992px) {
  .hero__mobile-menu {
    display: none !important;
  }
}

.hero__mobile-menu a {
  border-radius: var(--nav-chip-radius);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.35s ease, background 0.25s ease;
}

.hero__mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero__body {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0 2rem;
  min-height: 0;
}

.hero__intro {
  position: absolute;
  top: 0.25rem;
  left: var(--hero-inline);
  right: var(--hero-inline);
  z-index: 4;
  max-width: 48rem;
  margin: 80px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #f3f6fb;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.35),
    0 0 22px rgba(180, 210, 255, 0.28),
    0 0 48px rgba(100, 160, 255, 0.2),
    0 0 72px rgba(70, 130, 255, 0.12);
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero__intro {
    max-width: 36rem;
    margin-top: 4.25rem;
    font-size: clamp(1.85rem, 3.5vw, 2.35rem);
    line-height: 1.12;
  }

  .c-home-header-module__slider-wrapper-outside {
    padding-top: 6.25rem;
    margin-top: 1.25rem;
  }

  .c-home-header-module__slider-wrapper-outside.fade-in.is-visible {
    transform: none;
  }
}

@media (min-width: 992px) and (max-width: 1440px) {
  .hero__intro {
    max-width: 38rem;
    margin-top: 4.5rem;
    font-size: clamp(2.25rem, 3.15vw, 2.75rem);
    line-height: 1.12;
  }

  .c-home-header-module__slider-wrapper-outside {
    padding-top: 6.75rem;
    margin-top: 1.5rem;
  }

  .c-home-header-module__slider-wrapper-outside.fade-in.is-visible {
    transform: none;
  }
}

@media (min-width: 992px) and (max-height: 900px) {
  .hero__intro {
    max-width: 38rem;
    margin-top: 4.25rem;
    font-size: clamp(2.25rem, 3.1vw, 2.625rem);
    line-height: 1.12;
  }

  .c-home-header-module__slider-wrapper-outside {
    padding-top: 6.5rem;
    margin-top: 1.25rem;
  }

  .c-home-header-module__slider-wrapper-outside.fade-in.is-visible {
    transform: none;
  }
}

@media (max-width: 991px) {
  .hero__nav-wrap.is-solid .hero__nav {
    height: 4.15rem;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .hero__nav-wrap.is-solid .hero__signin {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 767px) {
  .hero {
    --hero-inline: 1.15rem;
  }

  .hero__nav-wrap {
    padding-top: 1rem;
  }

  .hero__nav-wrap.is-solid .hero__nav {
    height: 4rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero__nav-wrap.is-solid .hero__signin {
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
  }

  .hero__intro {
    margin-top: calc(1.5rem + 30px);
    font-size: clamp(1.7rem, 7vw, 2.25rem);
  }

  .c-home-header-module__slider-wrapper-outside {
    margin-top: 1.5rem;
    padding-top: 4.25rem;
  }
}

@media (max-width: 360px) {
  .hero__brand-logo {
    height: 2.15rem;
  }

  .hero__signin {
    padding: 0.32rem 0.55rem;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== SLIDER (inside hero) ========== */

.u-paragraph-xxl {
  font-size: var(--paragraph-xxl);
  font-family: "Schibsted Grotesk", var(--font-sans);
  line-height: 120%;
  letter-spacing: normal;
  font-weight: 400;
}

.u-heading-3 {
  font-size: var(--heading-3);
  font-family: "Schibsted Grotesk", var(--font-sans);
  line-height: 120%;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.u-font-secondary {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: normal;
}

.u-button {
  font-size: var(--button);
  font-family: "Schibsted Grotesk", var(--font-sans);
  line-height: 100%;
  letter-spacing: normal;
  font-weight: 400;
}

.c-home-header-module__slider-wrapper-outside {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 40px auto 0;
  /* Room for cream overlay that sits above the strip */
  padding-top: 5.5rem;
}

.c-home-header-module__slider-wrapper-outside.fade-in.is-visible {
  /* Optical vertical center: balance overlay overhang (keep fade-in transform) */
  transform: translateY(-1.25rem);
}

.c-home-header-module__slider-wrapper {
  /* Pull center focus up so its image aligns with side-strip images */
  --center-image-nudge: 2.15rem;
  position: relative;
  width: 100%;
  margin: 0 auto;
}

/* Dimmed background strip â€” white titles on dark video */
.c-home-header-module__slider {
  opacity: 0.55;
  overflow: visible !important;
}

.c-home-header-module__slider .swiper-wrapper {
  align-items: flex-start !important;
  height: auto !important;
}

.c-home-header-module__slider .swiper-slide {
  width: 278px;
  max-width: 55vw;
  flex-shrink: 0;
  box-sizing: border-box;
  height: auto !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 0;
  margin-bottom: 0;
}

.c-home-header-module__slider .c-home-header-module__slide-title {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.875rem, 0.4vw + 0.75rem, 1.05rem);
  height: 1.2em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.c-home-header-module__slider .swiper-slide img {
  width: 100%;
  height: 180px;
  aspect-ratio: 278 / 180;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  filter: brightness(0.8);
  flex-shrink: 0;
  display: block;
}

/* Hide the strip slide under the cream focus card â€” keeps clear air on both sides */
.c-home-header-module__slider .swiper-slide-active {
  opacity: 0;
  pointer-events: none;
}

/* Active center strip â€” only one slide visible (black text on cream) */
.c-home-header-module__slider-top {
  position: absolute !important;
  left: 50%;
  transform: translateX(-50%);
  top: calc(-1 * var(--center-image-nudge));
  width: 348px;
  max-width: 63.8461538462vw;
  z-index: 3 !important;
  color: #111;
  overflow: hidden !important;
}

.c-home-header-module__slider-top .swiper-wrapper {
  align-items: flex-start;
}

.c-home-header-module__slider-top .swiper-slide {
  width: 348px;
  max-width: 63.8461538462vw;
  background: transparent;
}

/* Fade slides stack; keep inactive ones from painting black titles over the strip */
.c-home-header-module__slider-top.swiper-fade .swiper-slide {
  pointer-events: none;
}

.c-home-header-module__slider-top.swiper-fade .swiper-slide-active {
  pointer-events: auto;
}

.c-home-header-module__slider-top .c-home-header-module__slide-title {
  margin-bottom: var(--s-10);
  color: #111;
}

.c-home-header-module__slider-top .swiper-slide img {
  width: 100%;
  aspect-ratio: 348 / 224;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

/* Cream frame around the active slide */
.c-home-header-module__slider-overlay {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(-1 * var(--heading-3) * 1.2 - var(--s-15) * 3 - var(--center-image-nudge));
  width: 400px;
  max-width: 74.1025641026vw;
  z-index: 1;
  color: #111;
  pointer-events: none;
  overflow: hidden;
}

.c-home-header-module__slider-overlay-top-wrap {
  position: relative;
}

.c-home-header-module__slider-overlay-top-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 2;
  width: calc(100% - var(--s-30) * 2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.c-home-header-module__slider-overlay-top {
  padding: var(--s-15);
  border-radius: var(--s-15);
  overflow: hidden;
  background-color: var(--green);
  color: #fff;
}

.c-home-header-module__slider-overlay-border {
  border-radius: var(--s-15);
  overflow: hidden;
  background-color: var(--cream-card);
  aspect-ratio: 385 / 327;
  width: 100%;
  display: block;
}

.c-home-header-module__slider-overlay-bottom {
  padding: var(--s-15);
  border-radius: var(--s-15);
  overflow: hidden;
  background-color: var(--cream-card);
  display: flex;
  position: relative;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
  min-width: 0;
}

.c-home-header-module__slider-overlay-bottom::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  z-index: 2;
  width: calc(100% - var(--s-30) * 2);
  border-bottom: 1px solid var(--black-10);
}

.c-home-header-module__slider-overlay-bottom-text {
  display: block;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(1.35rem, 0.28vw + 1.2rem, 1.75rem);
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-button {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  height: 40px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border-radius: var(--nav-chip-radius);
  transition: all 0.2s cubic-bezier(0.55, 0.085, 0.68, 0.53);
  font-size: 0.875rem;
  line-height: 1;
}

.c-button--green-very-light-gray-green {
  background-color: var(--green);
  color: var(--very-light-gray-green);
  white-space: nowrap;
  flex: 0 0 auto;
}

.c-button--green-very-light-gray-green .c-button__label {
  font-size: 0.875rem;
  line-height: 1;
  font-family: var(--font-sans);
}

.c-button--green-very-light-gray-green.btn-glow {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  background: #050505;
  color: #fff;
  box-shadow:
    0 0 10px rgba(47, 111, 237, 0.3),
    0 0 18px rgba(181, 3, 33, 0.22);
}

.c-button--green-very-light-gray-green.btn-glow:hover {
  background: #050505;
  color: #fff;
}

@media (max-width: 959px) {
  .c-home-header-module__slider-overlay-bottom .c-button {
    display: none;
  }
}

/* ========== BRANDS MARQUEE ========== */
.brands {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  padding: 2.75rem 0;
  background: #fff;
}

.brands__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 10;
  width: 5.5rem;
  pointer-events: none;
}

.brands__fade--left {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}

.brands__fade--right {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

.brands__row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 0 1rem;
}

.brands__rail {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.brands__track {
  display: flex;
  align-items: center;
  width: max-content;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.brands__track--left {
  animation: brands-marquee-left 55s linear infinite;
}

.brands__track--right {
  animation: brands-marquee-right 55s linear infinite;
}

.brands.is-paused .brands__track {
  animation-play-state: paused;
}

.brands__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2.75rem;
  padding-right: 2.75rem;
}

.brands__logo {
  display: block;
  height: 2.25rem;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  /* Source logos are white â€” force them to solid black on the white strip */
  opacity: 1;
  filter: brightness(0);
  transition: transform 0.3s ease;
}

.brands__logo:hover {
  transform: scale(1.06);
}

.brands__badge {
  position: relative;
  z-index: 20;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin: 0 0.75rem;
  padding: 0.85rem 1.5rem;
  background: #fff;
  white-space: nowrap;
  overflow: hidden;
}

.brands__badge-text {
  position: relative;
  z-index: 1;
  font-family: "Schibsted Grotesk", ui-monospace, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
}

@keyframes brands-marquee-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes brands-marquee-right {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@media (min-width: 768px) {
  .brands__row {
    flex-direction: row;
    padding: 0 1.5rem;
    gap: 0;
  }

  .brands__badge {
    padding: 1.25rem 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brands__track--left,
  .brands__track--right {
    animation: none;
  }
}

/* ========== PERFORMANCE AREAS ========== */
.areas {
  --areas-inline: clamp(1.5rem, 5vw, 4.5rem);
  --areas-gap: 1.25rem;
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  background: #f4f4f2;
  font-family: "Schibsted Grotesk", var(--font-sans);
}

.areas__inner {
  width: 100%;
  padding-inline: var(--areas-inline);
  box-sizing: border-box;
}

.areas__header {
  max-width: min(52rem, 100%);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.areas__heading {
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 3.55rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #111;
}

.areas__heading.inline-heading {
  align-items: flex-start;
}

.areas__heading .inline-heading__row {
  justify-content: flex-start;
}

.areas__sub {
  margin: 0.85rem 0 0;
  max-width: 34rem;
  color: #5b6470;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  font-weight: 400;
  line-height: 1.5;
}

.areas__controls {
  display: none;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.areas__nav {
  display: inline-grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: #ececec;
  color: #111;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.areas__nav:hover:not(:disabled) {
  background: #111;
  border-color: #111;
  color: #fff;
}

.areas__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.areas__viewport {
  position: relative;
  width: 100%;
  padding-inline: var(--areas-inline);
  box-sizing: border-box;
}

.areas__track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--areas-gap);
  width: 100%;
}

.areas__card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  min-height: 0;
  height: auto;
  border-radius: 1.35rem;
  overflow: hidden;
  background: #1a1a1a;
  isolation: isolate;
  container-type: inline-size;
}

.areas__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.7s ease;
}

.areas__img--video {
  pointer-events: none;
}

.areas__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.62) 32%,
    rgba(0, 0, 0, 0.2) 62%,
    rgba(0, 0, 0, 0) 82%
  );
  pointer-events: none;
}

.areas__card:hover .areas__img,
.areas__card:hover .areas__img--video {
  transform: scale(1.06);
}

.areas__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  height: 100%;
  padding: 1.35rem 0.75rem 1.5rem;
  color: #fff;
  text-align: center;
}

.areas__kicker {
  margin: 0 0 1.05rem;
  font-family: "Schibsted Grotesk", var(--font-sans);
  font-size: clamp(0.58rem, 2.7cqi, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.areas__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38em;
  margin: 0 0 1.05rem;
  max-width: none;
  width: 100%;
  color: #fff;
  line-height: 0.92;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45), 0 12px 32px rgba(0, 0, 0, 0.4);
}

.areas__line {
  display: block;
  width: 100%;
}

.areas__line--serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.35rem, 18cqi, 3.55rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.areas__line--sans {
  font-family: "Schibsted Grotesk", var(--font-sans);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.2rem, 8.6cqi, 1.85rem);
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.areas__line--sans em {
  margin-left: 0.18em;
  font-style: inherit;
  font-weight: 700;
  font-size: 0.78em;
  letter-spacing: -0.03em;
  opacity: 0.82;
}

.areas__line--with {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.95rem, 5.6cqi, 1.25rem);
  letter-spacing: 0.04em;
  margin: 0.08rem 0 0.02rem;
  opacity: 0.94;
}

.areas__desc {
  margin: 0;
  max-width: 16em;
  width: 100%;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Schibsted Grotesk", var(--font-sans);
  font-size: clamp(0.78rem, 4cqi, 0.95rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
  .areas {
    --areas-inline: clamp(1.1rem, 4vw, 2rem);
    --areas-gap: 0.85rem;
    padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2.75rem, 6vw, 4rem);
  }

  .areas__header {
    margin-bottom: 1.25rem;
  }

  .areas__heading {
    font-size: clamp(1.65rem, 5.2vw, 2.35rem);
  }

  .areas__sub {
    font-size: 0.95rem;
  }

  .areas__heading .inline-heading__row {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .areas {
    --areas-gap: 0.75rem;
  }

  .areas__line--sans {
    white-space: normal;
  }

  .areas__controls {
    display: flex;
  }

  .areas__viewport {
    padding-inline: 0;
  }

  .areas__track {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--areas-inline);
    padding-inline: var(--areas-inline);
    padding-bottom: 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .areas__track::-webkit-scrollbar {
    display: none;
  }

  .areas__card {
    flex: 0 0 min(78vw, 19.5rem);
    width: min(78vw, 19.5rem);
    aspect-ratio: 4 / 5;
    border-radius: 1rem;
    scroll-snap-align: start;
  }

  .areas__copy {
    padding: 0.9rem 0.55rem 1rem;
  }

  .areas__kicker {
    margin-bottom: 0.5rem;
  }

  .areas__title {
    margin-bottom: 0.6rem;
  }
}

@media (max-width: 639px) {
  .areas__heading {
    font-size: clamp(1.45rem, 6.2vw, 1.85rem);
    letter-spacing: -0.03em;
  }
}

@media (min-width: 640px) and (max-width: 1099px) {
  .areas__card {
    aspect-ratio: 1 / 0.92;
  }

  .areas__line--sans {
    white-space: normal;
    font-size: clamp(1.05rem, 6.4cqi, 1.45rem);
  }
}

@media (min-width: 1100px) {
  .areas__track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .areas__card {
    aspect-ratio: 4 / 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .areas__img,
  .areas__card:hover .areas__img {
    transition: none;
    transform: none;
  }
}

/* ========== QUOTE STRIP (AI insights) ========== */
.quote {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  margin: clamp(2.5rem, 5vw, 4rem) 0;
  padding: 2.75rem clamp(1.25rem, 4vw, 3rem);
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: "Schibsted Grotesk", var(--font-sans);
}

/* Sparse star field behind insights copy */
.quote::before,
.quote::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.quote::before {
  background-image:
    radial-gradient(1.35px 1.35px at 4% 18%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.25px 1.25px at 12% 62%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.6px 1.6px at 18% 34%, rgba(255, 255, 255, 1), transparent),
    radial-gradient(1.3px 1.3px at 27% 78%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.35px 1.35px at 36% 22%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.55px 1.55px at 44% 68%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.25px 1.25px at 52% 14%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.4px 1.4px at 61% 48%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.55px 1.55px at 70% 82%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1.4px 1.4px at 78% 28%, rgba(255, 255, 255, 1), transparent),
    radial-gradient(1.25px 1.25px at 86% 58%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 93% 40%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.3px 1.3px at 97% 74%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.2px 1.2px at 8% 88%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.35px 1.35px at 33% 46%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1.25px 1.25px at 57% 90%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 83% 12%, rgba(255, 255, 255, 0.8), transparent);
  opacity: 0.95;
  animation: quote-star-drift-a 16.5s linear infinite;
}

.quote::after {
  background-image:
    radial-gradient(1.85px 1.85px at 22% 40%, rgba(255, 255, 255, 1), transparent),
    radial-gradient(1.6px 1.6px at 48% 72%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.7px 1.7px at 66% 24%, rgba(255, 255, 255, 1), transparent),
    radial-gradient(1.5px 1.5px at 88% 66%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.55px 1.55px at 14% 70%, rgba(255, 255, 255, 0.8), transparent);
  opacity: 0.85;
  animation: quote-star-drift-b 10.5s linear infinite;
}

/* Even circular orbits — same speed all the way around */
@keyframes quote-star-drift-a {
  0% {
    opacity: 0.82;
    transform: translate3d(14px, 0, 0);
  }
  12.5% {
    opacity: 0.95;
    transform: translate3d(9.9px, -9.9px, 0);
  }
  25% {
    opacity: 1;
    transform: translate3d(0, -14px, 0);
  }
  37.5% {
    opacity: 0.9;
    transform: translate3d(-9.9px, -9.9px, 0);
  }
  50% {
    opacity: 0.8;
    transform: translate3d(-14px, 0, 0);
  }
  62.5% {
    opacity: 0.95;
    transform: translate3d(-9.9px, 9.9px, 0);
  }
  75% {
    opacity: 1;
    transform: translate3d(0, 14px, 0);
  }
  87.5% {
    opacity: 0.88;
    transform: translate3d(9.9px, 9.9px, 0);
  }
  100% {
    opacity: 0.82;
    transform: translate3d(14px, 0, 0);
  }
}

@keyframes quote-star-drift-b {
  0% {
    opacity: 0.6;
    transform: translate3d(-12px, 0, 0);
  }
  12.5% {
    opacity: 0.9;
    transform: translate3d(-8.5px, 8.5px, 0);
  }
  25% {
    opacity: 1;
    transform: translate3d(0, 12px, 0);
  }
  37.5% {
    opacity: 0.75;
    transform: translate3d(8.5px, 8.5px, 0);
  }
  50% {
    opacity: 0.65;
    transform: translate3d(12px, 0, 0);
  }
  62.5% {
    opacity: 0.95;
    transform: translate3d(8.5px, -8.5px, 0);
  }
  75% {
    opacity: 1;
    transform: translate3d(0, -12px, 0);
  }
  87.5% {
    opacity: 0.8;
    transform: translate3d(-8.5px, -8.5px, 0);
  }
  100% {
    opacity: 0.6;
    transform: translate3d(-12px, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote::before,
  .quote::after,
  .brain__sky::before,
  .brain__sky::after {
    animation: none;
    opacity: 0.85;
    will-change: auto;
  }
}

.quote__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  width: min(1480px, 100%);
  margin: 0 auto;
  transition: opacity 0.45s ease;
}

.quote.is-switching .quote__inner {
  opacity: 0;
}

.quote__logo-wrap {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.quote__logo {
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
  object-position: center;
}

.quote__content {
  margin: 0;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0.15rem;
}

.quote__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.quote__text {
  margin: 0;
  max-width: none;
  width: 100%;
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.35),
    0 0 22px rgba(255, 255, 255, 0.22),
    0 0 40px rgba(255, 255, 255, 0.12);
}

.quote__name {
  display: block;
  margin-top: 0.7rem;
  font-style: normal;
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  font-weight: 500;
  color: #fff;
}

@media (max-width: 900px) {
  .quote {
    min-height: 0;
    margin: clamp(1.75rem, 4vw, 3rem) 0;
    padding: 2rem clamp(1.15rem, 3vw, 2.25rem);
  }

  .quote__text {
    font-size: clamp(1.25rem, 3.4vw, 1.85rem);
  }
}

@media (max-width: 640px) {
  .quote {
    padding: 1.65rem 1.15rem;
  }

  .quote__inner {
    gap: 0.9rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .quote__logo-wrap {
    width: 56px;
    height: 56px;
  }

  .quote__eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .quote__text {
    font-size: clamp(1.15rem, 4.6vw, 1.45rem);
    line-height: 1.32;
  }

  .quote__name {
    margin-top: 0.5rem;
    font-size: 0.92rem;
  }
}

/* ========== PAINS (orbiting pain points) ========== */
.pains {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) var(--hero-inline, 1.5rem);
  /* Extra room below so section 2 can fully enter the viewport */
  padding-bottom: clamp(5rem, 12vh, 8rem);
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(47, 111, 237, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(255, 140, 60, 0.07), transparent 65%),
    linear-gradient(180deg, #f7f6f2 0%, #eceae4 55%, #f4f3ee 100%);
  color: var(--black);
}

.pains__glow {
  position: absolute;
  inset: 20% 30%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
  pointer-events: none;
  contain: paint;
}

.pains__stage {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  min-height: clamp(560px, 72vh, 760px);
  margin: 0 auto;
}

.pains__center {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 2;
  width: min(28rem, 86%);
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.pains__heading {
  margin: 0 0 1rem;
  font-family: "Schibsted Grotesk", var(--font-sans);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #111;
}

.pains__heading-accent {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: #1a1a1a;
}

.pains__sub {
  margin: 0 auto;
  max-width: 26rem;
  color: rgba(17, 17, 17, 0.55);
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.5;
}

.pains__card {
  --d: 0ms;
  --tx: 0px;
  --ty: 0px;
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 3;
  width: min(280px, 78vw);
  padding: 1.65rem 1.7rem 1.75rem;
  border-radius: 1.35rem;
  box-sizing: border-box;
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.1);
  opacity: 0;
  /* Start stacked on the center copy */
  transform: translate3d(-50%, -50%, 0) scale(0.55);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--d),
    transform 1.45s cubic-bezier(0.22, 1, 0.36, 1) var(--d);
  backface-visibility: hidden;
}

/* Orbit targets â€” vw/px so distance is from the stage, not the card size */
.pains__card--tl { --tx: clamp(-420px, -34vw, -260px); --ty: clamp(-280px, -30vh, -170px); }
.pains__card--tr { --tx: clamp(260px, 34vw, 420px); --ty: clamp(-260px, -28vh, -150px); }
.pains__card--bl { --tx: clamp(-430px, -35vw, -270px); --ty: clamp(150px, 22vh, 260px); }
.pains__card--bc { --tx: clamp(-40px, -1vw, 40px); --ty: clamp(210px, 30vh, 310px); }
.pains__card--br { --tx: clamp(260px, 34vw, 420px); --ty: clamp(140px, 20vh, 250px); }

.pains.is-inview .pains__card {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) translate3d(var(--tx), var(--ty), 0) scale(1);
}

.pains__cards {
  display: contents;
}

.pains__card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.pains__card-title {
  margin: 0;
  font-family: "Schibsted Grotesk", var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.pains__card-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
}

.pains__card-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.pains__card-stat {
  margin: 0 0 0.6rem;
  font-family: "Schibsted Grotesk", var(--font-sans);
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.pains__card-stat--nowrap {
  white-space: nowrap;
  font-size: clamp(1.1rem, 1.45vw, 1.4rem);
  letter-spacing: -0.02em;
}

.pains__card-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.72;
}

.pains__card--soft {
  background: #ebe9e4;
  color: #111;
}

/* Top-left: deep red card — white badge, dark cycle character */
.pains__card--soft.pains__card--tl {
  background: #B50321;
  color: #fff;
}

.pains__card--soft.pains__card--tl .pains__card-icon {
  background: #fff;
  color: #111;
}

.pains__card--soft.pains__card--tl .pains__card-desc {
  opacity: 0.9;
}

/* Top-right: dark card â€” orange arrow character */
.pains__card--dark.pains__card--tr .pains__card-icon {
  background: rgba(255, 131, 0, 0.2);
  color: #ff8300;
}

/* Bottom-left: dark card â€” white badge, dark people character (high contrast) */
.pains__card--dark.pains__card--bl .pains__card-icon {
  background: #fff;
  color: #111;
}

.pains__card--dark {
  background: #141414;
  color: #fff;
}

.pains__card--dark .pains__card-desc {
  opacity: 0.65;
}

/* Bottom-center: blue card â€” white badge, dark systems character */
.pains__card--accent {
  background: #2f6fed;
  color: #fff;
}

.pains__card--accent .pains__card-icon {
  background: #fff;
  color: #111;
}

.pains__card--accent .pains__card-desc {
  opacity: 0.85;
}

/* Bottom-right: cream card â€” rose heart character */
.pains__card--soft.pains__card--br {
  background: #ebe9e4;
  color: #111;
}

.pains__card--soft.pains__card--br .pains__card-icon {
  background: #ffe4ea;
  color: #e11d48;
}

.pains.is-inview .pains__center {
  animation: pains-center-in 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pains-center-in {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 1199px) {
  .pains {
    min-height: 0;
    padding: clamp(3rem, 7vw, 4.5rem) var(--hero-inline, 1.25rem);
    padding-bottom: clamp(3rem, 7vw, 4.5rem);
  }

  .pains__stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    min-height: 0;
    width: 100%;
  }

  .pains__center {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: none;
    transform: none;
    margin: 0 0 0.35rem;
    grid-column: 1 / -1;
    pointer-events: auto;
  }

  .pains.is-inview .pains__center {
    animation: pains-center-in-mobile 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes pains-center-in-mobile {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .pains__heading {
    font-size: clamp(1.65rem, 5.5vw, 2.35rem);
  }

  .pains__card {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    padding: 1.15rem 1.1rem 1.2rem;
    border-radius: 1.1rem;
    transform: translateY(20px) scale(0.98);
  }

  .pains.is-inview .pains__card {
    transform: translateY(0) scale(1);
  }

  .pains__card-stat {
    font-size: clamp(1.05rem, 3.2vw, 1.25rem);
  }

  .pains__card-desc {
    font-size: 0.82rem;
  }

  .pains__card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .pains__stage {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .pains__cards {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--hero-inline, 1.25rem);
    margin-inline: calc(-1 * var(--hero-inline, 1.25rem));
    padding-inline: var(--hero-inline, 1.25rem);
    padding-bottom: 0.35rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .pains__cards::-webkit-scrollbar {
    display: none;
  }

  .pains__card,
  .pains.is-inview .pains__card {
    flex: 0 0 min(78vw, 19.5rem);
    width: min(78vw, 19.5rem);
    min-height: 13.5rem;
    scroll-snap-align: start;
    transform: none;
  }

  .pains__card:last-child {
    grid-column: auto;
    width: min(78vw, 19.5rem);
  }

  .pains__card-top {
    gap: 0.5rem;
  }

  .pains__card-icon {
    width: 1.85rem;
    height: 1.85rem;
  }

  .pains__card-title {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pains__card,
  .pains.is-inview .pains__card,
  .pains.is-inview .pains__center {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========== BRAIN (NAS-style solution showcase) ========== */
.brain {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 7.5rem) var(--hero-inline, 1.5rem) clamp(5rem, 10vw, 8rem);
  color: #fff;
  text-align: center;
  background: #000;
}

/* Custom CRM section atmosphere — blue image fades softly into black */
.brain__sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #000;
  pointer-events: none;
}

.brain__sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../brain-bg-blue.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 28%,
    rgba(0, 0, 0, 0.92) 40%,
    rgba(0, 0, 0, 0.72) 48%,
    rgba(0, 0, 0, 0.45) 56%,
    rgba(0, 0, 0, 0.22) 64%,
    rgba(0, 0, 0, 0.08) 72%,
    transparent 82%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 28%,
    rgba(0, 0, 0, 0.92) 40%,
    rgba(0, 0, 0, 0.72) 48%,
    rgba(0, 0, 0, 0.45) 56%,
    rgba(0, 0, 0, 0.22) 64%,
    rgba(0, 0, 0, 0.08) 72%,
    transparent 82%
  );
}

.brain__sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 35%,
    rgba(0, 0, 0, 0.12) 48%,
    rgba(0, 0, 0, 0.35) 58%,
    rgba(0, 0, 0, 0.62) 70%,
    rgba(0, 0, 0, 0.88) 84%,
    #000 100%
  );
}

/* Framer-style tiled grain texture over the CRM atmosphere */
.brain__pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("../brain-pattern.png");
  background-repeat: repeat;
  background-position: center top;
  background-size: 166.5px auto;
  opacity: 0.35;
  mix-blend-mode: overlay;
}

.brain__intro {
  position: relative;
  z-index: 2;
  max-width: min(56rem, 94vw);
  margin: 0 auto 2.5rem;
  text-align: center;
}

.brain__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-family: "Schibsted Grotesk", var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.brain__badge svg {
  color: #7eb6ff;
}

.brain__heading {
  margin: 0 0 1rem;
  font-size: clamp(2.65rem, 5.8vw, 4.5rem);
  color: #f3f6fb;
  text-shadow: 0 0 28px rgba(180, 210, 255, 0.18);
}

.brain__heading.inline-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.brain__heading .inline-heading__row {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.brain__sub {
  margin: 0 auto;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.5;
}

.brain__window {
  position: relative;
  z-index: 2;
  width: min(1320px, 98vw);
  margin: 0 auto;
  padding-top: 0.35rem;
  padding-bottom: 0.5rem;
}

/* Scroll-scrubbed 97-frame sequence in Custom CRM */
.brain--seq {
  overflow: visible;
  padding: 0;
  margin-top: calc(-1 * clamp(2.5rem, 7vh, 4.5rem));
  height: 520vh;
  background: #000;
  color: #fff;
  content-visibility: visible;
  contain-intrinsic-size: none;
  z-index: 1;
}

.brain-seq {
  height: 100%;
}

.brain-seq__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.brain-seq__pin::before,
.brain-seq__pin::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

.brain-seq__pin::before {
  top: 0;
  height: min(34vh, 18rem);
  background: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 0.82) 28%,
    rgba(0, 0, 0, 0.38) 58%,
    rgba(0, 0, 0, 0.1) 80%,
    transparent 100%
  );
}

.brain-seq__pin::after {
  bottom: 0;
  height: min(32vh, 16rem);
  background: linear-gradient(
    0deg,
    #000 0%,
    rgba(0, 0, 0, 0.78) 32%,
    rgba(0, 0, 0, 0.28) 64%,
    transparent 100%
  );
}

.brain-seq__canvas,
.brain-seq__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.brain-seq__canvas {
  z-index: 1;
  opacity: 0;
}

.brain-seq__canvas.is-ready {
  opacity: 1;
}

.brain-seq__fallback {
  z-index: 0;
}

.brain-seq__copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(4.25rem, 9vh, 6rem) var(--hero-inline, 1.5rem) 2rem;
  text-align: center;
  pointer-events: none;
  background: none;
  transition: opacity 0.2s linear;
}

.brain--seq .brain__heading {
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.brain--seq .brain__sub {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.brain-seq__ask {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6% 8%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.brain-seq__ask.is-on {
  pointer-events: auto;
}

.brain-seq__ask-card {
  width: 100%;
  max-width: 22rem;
  padding: 0;
  text-align: center;
  color: #1c140c;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.brain-seq__ask-q {
  margin: 0 0 0.95rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.15rem, 2.1vw, 1.85rem);
  font-style: italic;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.brain-seq__ask-actions {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.brain-seq__ask-btn {
  min-width: 5.4rem;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  border: 0;
  font-family: "Schibsted Grotesk", var(--font-sans);
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.brain-seq__ask-btn--yes {
  background: #ff8300;
  color: #111;
}

.brain-seq__ask-btn--no {
  background: #141416;
  color: #fff;
}

.brain-seq__fade {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}

.brain-seq__fade.is-on {
  opacity: 1;
  pointer-events: auto;
}

.crm-live-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: none;
  flex-direction: column;
  background: #f3eee6;
  color: #17140f;
}

.crm-live-overlay.is-open,
.crm-live-overlay:not([hidden]) {
  display: flex;
}

.crm-live-overlay[hidden] {
  display: none !important;
}

.crm-live-overlay .crm-live__stage {
  flex: 1;
  min-height: 0;
  height: auto;
}

.crm-live-overlay .crm-live__bar {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.crm-live__back {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

body.crm-live-open {
  overflow: hidden;
}

.crm-live-page {
  min-height: 100vh;
  background: #f3eee6;
  color: #17140f;
}

.crm-live__bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 3.35rem;
  padding: 0 1rem;
  background: #141416;
  color: #f4f4f2;
}

.crm-live__back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: "Schibsted Grotesk", var(--font-sans);
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.crm-live__title {
  font-family: "Schibsted Grotesk", var(--font-sans);
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.crm-live__stage {
  height: calc(100vh - 3.35rem);
  min-height: 28rem;
  overflow: hidden;
}

body.crm-live-page {
  background: #f3eee6;
}

.crm-live__stage .brain__app {
  height: 100%;
  border-radius: 0;
}

html[data-theme="dark"] .brain--seq,
html[data-theme="light"] .brain--seq {
  padding: 0;
}

html[data-theme="dark"] .brain--seq::before,
html[data-theme="dark"] .brain--seq::after {
  display: none;
}

html[data-theme="light"] .pains::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(22vh, 10rem);
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.18) 36%,
    rgba(0, 0, 0, 0.62) 68%,
    #000 100%
  );
}

@media (max-width: 767px) {
  html[data-theme="dark"] .brain--seq {
    padding: 0;
  }

  .brain-seq__copy {
    padding-top: clamp(4.5rem, 10vh, 6.5rem);
  }

  .brain--seq .brain__heading .inline-heading__row {
    white-space: normal;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  html[data-theme="dark"] .brain--seq {
    padding: 0;
  }
}

.crm-laptop {
  position: relative;
  width: 100%;
  contain: layout;
}

.crm-laptop__glow {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 55%;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 80%,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(181, 3, 33, 0.16) 32%,
    transparent 72%
  );
}

.crm-laptop__body {
  position: relative;
  z-index: 1;
  transform: translateZ(0);
}

.crm-sticker {
  position: absolute;
  top: -0.35rem;
  right: 5%;
  bottom: auto;
  z-index: 6;
  width: min(11.8rem, 34%);
  margin: 0;
  padding: 0.55rem 0.7rem 0.6rem;
  background: #fff6ea;
  color: #111;
  font-family: "Schibsted Grotesk", var(--font-sans);
  font-size: clamp(0.62rem, 1.05vw, 0.78rem);
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: -0.02em;
  border-radius: 0.2rem 0.85rem 0.25rem 0.8rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 10px 24px rgba(0, 0, 0, 0.28);
  transform: rotate(5.5deg);
  pointer-events: none;
}

.crm-laptop__frame {
  position: relative;
  z-index: 4;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.crm-laptop__screen {
  position: absolute;
  top: 3.32%;
  left: 11.45%;
  right: 10.82%;
  bottom: 7.88%;
  z-index: 1;
  overflow: hidden;
  border-top-left-radius: 2.5% 3.85%;
  border-top-right-radius: 2.5% 3.85%;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: #050505;
  isolation: isolate;
}

.crm-laptop__glass {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 26%,
    transparent 72%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.brain__stack {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: none;
}

.brain__sheet {
  position: absolute;
  inset: 0;
  transform: none;
  border-radius: inherit;
  background: #fff;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 1;
}

.brain__sheet[data-depth="0"],
.brain__sheet.is-front {
  z-index: 5;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  box-shadow: none;
}

.brain__sheet[data-depth="1"],
.brain__sheet[data-depth="2"],
.brain__sheet[data-depth="3"],
.brain__sheet[data-depth="4"] {
  transform: none;
  box-shadow: none;
}

.brain__sheet:not([data-depth="0"]) .brain__app {
  visibility: visible;
}

.brain__app {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  overflow: hidden;
  background: #f3eee6;
  color: #17140f;
  text-align: left;
  font-family: Inter, "Schibsted Grotesk", var(--font-sans);
}

/* Premium CRM chrome */
.crm-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.35rem 0.55rem;
  color: #eef1f7;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: #141416;
}

.crm-nav__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.15rem 0 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.crm-nav__mark {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.55rem;
  background: linear-gradient(160deg, #ff8300 0%, #b50321 58%, #2f6fed 130%);
  color: #fff;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 400;
}

.crm-nav__brand strong,
.crm-nav__brand span,
.crm-nav__label {
  display: none;
}

.crm-nav__list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  flex: 1;
  width: 100%;
}

.crm-nav__row {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  min-width: 0;
}

.crm-nav__name {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.crm-nav__row svg {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  opacity: 0.62;
}

.crm-nav__list button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0.48rem 0.15rem 0.42rem;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 0.5rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}

.crm-nav__list button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.crm-nav__list button:hover svg,
.crm-nav__list button.is-active svg {
  opacity: 1;
}

.crm-nav__list button.is-active {
  background: #0b0b0d;
  color: #fff;
}

.crm-nav__list button.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2.5px;
  height: 1.15rem;
  border-radius: 0 99px 99px 0;
  background: #b50321;
  transform: translateY(-50%);
}

.crm-nav__list em {
  position: absolute;
  top: 0.18rem;
  right: 0.18rem;
  font-style: normal;
  font-size: 0.48rem;
  font-weight: 700;
  padding: 0.05rem 0.28rem;
  border-radius: 999px;
  background: #b50321;
  color: #fff;
}

.crm-nav__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 0 0.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.crm-nav__footer strong,
.crm-nav__footer span:not(.crm-avatar) {
  display: none;
}

.crm-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #2f6fed;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  font-style: normal;
  object-fit: cover;
}

.crm-avatar--photo {
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.crm-avatar--sm {
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.48rem;
}

.crm-avatar--orange { background: #ff8300; color: #111; }
.crm-avatar--teal { background: #0d9488; }

.crm-main {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0.7rem 0.85rem 0.75rem;
  overflow: hidden;
}

.crm-top {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
}

.crm-top__eyebrow {
  margin: 0.12rem 0 0;
  color: #8a8176;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.crm-top__title {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #17140f;
}

.crm-top__right {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.crm-search,
.crm-filter,
.crm-btn,
.crm-pill,
.crm-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.42rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid #e4e5e9;
  background: #fff;
  color: #6b7280;
  font-size: 0.6rem;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  white-space: nowrap;
}

.crm-search {
  min-width: 9.2rem;
  gap: 0.35rem;
  color: #8a8176;
  background: #fff;
  border-color: #e7e0d6;
}

.crm-search svg {
  width: 0.72rem;
  height: 0.72rem;
  flex: 0 0 auto;
}

.crm-btn {
  background: #111;
  border-color: #111;
  color: #fff;
  font-weight: 600;
}

.crm-btn--add {
  background: #b50321;
  border-color: #b50321;
  color: #fff;
}

.crm-btn--ghost {
  background: #fff;
  border-color: #e7e0d6;
  color: #17140f;
}

.crm-btn--navy {
  background: #1c2740;
  border-color: #1c2740;
  color: #fff;
}

.crm-btn--sm {
  height: 1.22rem;
  padding: 0 0.5rem;
  font-size: 0.55rem;
}

.crm-pill {
  background: #eef2ff;
  border-color: transparent;
  color: #2f6fed;
}

.crm-pill--live {
  background: #ecfdf5;
  color: #059669;
}

.crm-chip {
  cursor: pointer;
}

.crm-chip.is-on {
  background: #111;
  border-color: #111;
  color: #fff;
}

.crm-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  flex-shrink: 0;
}

.crm-kpis--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.crm-kpis--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.crm-kpi {
  padding: 0.72rem 0.85rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #ebe6dc;
  box-shadow: 0 8px 20px rgba(55, 35, 12, 0.05);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: default;
}

.crm-kpi--blue { background: linear-gradient(180deg, #eef4ff 0%, #fff 70%); }
.crm-kpi--green { background: linear-gradient(180deg, #ecfdf5 0%, #fff 70%); }
.crm-kpi--orange { background: linear-gradient(180deg, #fff4e8 0%, #fff 70%); }
.crm-kpi--red { background: linear-gradient(180deg, #fff0f2 0%, #fff 70%); }

button.crm-kpi {
  cursor: pointer;
}

button.crm-kpi:hover {
  border-color: #d9dee8;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.06);
}

.crm-kpi > span {
  display: block;
  color: #8b919a;
  font-size: 0.64rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.crm-kpi strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #111;
}

.crm-kpi small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.62rem;
  font-weight: 500;
}

.crm-kpi small.up { color: #059669; }
.crm-kpi small.flat { color: #9ca3af; }

.crm-split {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 0.6rem;
  min-height: 0;
  flex: 1;
}

.crm-split--home {
  grid-template-columns: 1.35fr 1fr;
}

.crm-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 1.05rem;
  background: #fff;
  border: 1px solid #ebe6dc;
  box-shadow: 0 8px 20px rgba(55, 35, 12, 0.04);
  overflow: hidden;
}

.crm-panel--fill {
  flex: 1;
  min-height: 0;
}

.crm-panel--contacts {
  padding: 0.35rem 0.5rem 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.crm-table--contacts {
  min-width: 520px;
}

.crm-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  flex-shrink: 0;
}

.crm-panel__head h4 {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 650;
  color: #111;
}

.crm-panel__head span {
  color: #9ca3af;
  font-size: 0.62rem;
}

.crm-agenda,
.crm-attention {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow: auto;
}

.crm-agenda li {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.5rem;
  border-radius: 0.55rem;
  background: #f7f7f8;
}

.crm-agenda time {
  font-size: 0.68rem;
  font-weight: 650;
  color: #111;
  letter-spacing: -0.02em;
}

.crm-agenda strong,
.crm-attention strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #111;
}

.crm-agenda div > span,
.crm-attention div > span {
  display: block;
  margin-top: 0.1rem;
  color: #8b919a;
  font-size: 0.62rem;
}

.crm-tag {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #2f6fed;
  white-space: nowrap;
}

.crm-tag--amber { background: #fff7ed; color: #c2410c; }
.crm-tag--green { background: #ecfdf5; color: #047857; }

.crm-attention li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid #f1f2f4;
}

.crm-attention li:last-child {
  border-bottom: 0;
}

.crm-dot {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: 0.35rem;
  border-radius: 999px;
}

.crm-dot--blue { background: #2f6fed; }
.crm-dot--green { background: #059669; }
.crm-dot--amber { background: #d97706; }

.crm-status {
  display: inline-flex;
  align-items: center;
  height: 1.2rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.crm-status--green { background: #ecfdf5; color: #047857; }
.crm-status--amber { background: #fffbeb; color: #b45309; }
.crm-status--blue { background: #eff6ff; color: #1d4ed8; }
.crm-status--red { background: #fef2f2; color: #b91c1c; }

.crm-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.crm-board--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.crm-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  min-height: 0;
  padding: 0.5rem;
  border-radius: 1rem;
  background: #ebe4d8;
  overflow: auto;
}

.crm-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.1rem 0.2rem 0.25rem;
  color: #4b5563;
  font-size: 0.68rem;
  font-weight: 650;
}

.crm-col__head em {
  font-style: normal;
  color: #9ca3af;
  font-weight: 500;
}

.crm-deal {
  cursor: pointer;
  padding: 0.45rem 0.5rem 0.6rem;
  border-radius: 0.95rem;
  background: #fff;
  border: 1px solid #ebe6dc;
  box-shadow: 0 8px 18px rgba(55, 35, 12, 0.05);
  overflow: hidden;
}

.crm-deal.is-on {
  outline: 1px solid rgba(47, 111, 237, 0.35);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}

.crm-thread {
  cursor: pointer;
}

.crm-deal strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-deal > span {
  display: block;
  margin-top: 0.2rem;
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 600;
}

.crm-deal footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.crm-deal footer b {
  color: #9ca3af;
  font-size: 0.6rem;
  font-weight: 500;
}

.crm-deal--warn {
  border-color: #fdba74;
  background: #fffaf5;
}

.crm-deal--won {
  border-color: #a7f3d0;
  background: #f6fffb;
}

/* Week schedule */
.crm-week {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  min-height: 0;
  flex: 1;
}

.crm-week__day {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.55rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #ebecef;
  overflow: hidden;
}

.crm-week__day.is-today {
  border-color: rgba(255, 131, 0, 0.45);
  background: linear-gradient(180deg, #fffaf5 0%, #fff 40%);
}

.crm-week__label {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  color: #8b919a;
  font-size: 0.64rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.crm-week__label b {
  color: #111;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.crm-event {
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.55rem;
  border: 0;
  border-radius: 0.9rem;
  border-left: 3px solid #9ca3af;
  background: #f3f4f6;
  text-align: left;
  cursor: pointer;
}

.crm-event strong {
  display: block;
  font-size: 0.66rem;
  font-weight: 650;
  color: #111;
  line-height: 1.25;
}

.crm-event span {
  display: block;
  margin-top: 0.15rem;
  color: #6b7280;
  font-size: 0.58rem;
}

.crm-event--blue { background: #eff6ff; border-left-color: #2f6fed; }
.crm-event--orange { background: #fff7ed; border-left-color: #ff8300; }
.crm-event--green { background: #ecfdf5; border-left-color: #059669; }

/* Inbox threads */
.crm-inbox {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.crm-thread {
  padding: 0.75rem 0.85rem;
  border-radius: 0.7rem;
  background: #fff;
  border: 1px solid #ebecef;
}

.crm-thread.is-active {
  border-color: rgba(47, 111, 237, 0.35);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.08);
}

.crm-thread__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.crm-thread__meta strong {
  font-size: 0.74rem;
  font-weight: 650;
  color: #111;
}

.crm-thread__meta time {
  color: #9ca3af;
  font-size: 0.6rem;
}

.crm-thread p {
  margin: 0 0 0.45rem;
  color: #4b5563;
  font-size: 0.7rem;
  line-height: 1.35;
}

/* Contacts table */
.crm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.68rem;
}

.crm-table th,
.crm-table td {
  padding: 0.42rem 0.4rem;
  text-align: left;
  border-bottom: 1px solid #f1f2f4;
  color: #374151;
  white-space: nowrap;
}

.crm-table th {
  color: #9ca3af;
  font-weight: 550;
  font-size: 0.62rem;
}

.crm-table--contacts td {
  padding: 0.45rem 0.4rem;
}

.crm-person {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: #111;
}

.crm-person .crm-avatar {
  font-style: normal;
}

.crm-view {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.crm-search {
  min-width: 9.2rem;
  padding-right: 0.55rem;
  padding-left: 0.55rem;
}

.crm-sales {
  display: grid;
  grid-template-columns: minmax(13.5rem, 0.82fr) minmax(0, 1.35fr);
  gap: 0.7rem;
  min-height: 0;
  flex: 1;
}

.crm-sales__list,
.crm-sales__detail {
  min-height: 0;
  overflow: auto;
}

.crm-sales__list {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding-right: 0.15rem;
}

.crm-sales__list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
  color: #8a8176;
  font-size: 0.62rem;
  font-weight: 600;
}

.crm-order {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.55rem;
  border: 0;
  border-radius: 0.85rem;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.crm-order.is-on,
.crm-order:hover {
  background: #fff;
  box-shadow: 0 8px 22px rgba(55, 35, 12, 0.06);
}

.crm-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--crm-accent, #2f6fed);
}

.crm-mark svg {
  width: 58%;
  height: 58%;
  display: block;
}

.crm-order__thumb {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}

.crm-order__copy,
.crm-order__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.crm-order__meta {
  align-items: flex-end;
  gap: 0.18rem;
}

.crm-order strong {
  font-size: 0.68rem;
  font-weight: 650;
  color: #17140f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-order em {
  color: #8a8176;
  font-size: 0.55rem;
  font-style: normal;
}

.crm-order b {
  font-size: 0.62rem;
  font-weight: 650;
  color: #17140f;
}

.crm-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  height: 1.42rem;
  padding: 0 0.55rem;
  border: 1px solid #e7e0d6;
  border-radius: 999px;
  background: #fff;
  color: #3f3a34;
  font: inherit;
  font-size: 0.58rem;
  font-weight: 600;
  cursor: pointer;
}

.crm-tool svg {
  width: 0.78rem;
  height: 0.78rem;
}

.crm-ticket {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.crm-ticket__bar,
.crm-ticket__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.crm-ticket__bar strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
}

.crm-ticket__bar span,
.crm-ticket__meta span {
  color: #8a8176;
  font-size: 0.58rem;
}

.crm-ticket__tools {
  display: flex;
  align-items: center;
  gap: 0.28rem;
}

.crm-ticket__meta {
  padding: 0.4rem 0.55rem;
  border-radius: 0.7rem;
  background: #fff;
  justify-content: flex-start;
  gap: 0.65rem;
}

.crm-ticket__card {
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 14px 36px rgba(55, 35, 12, 0.08);
}

.crm-ticket__hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 6.6rem;
  padding: 0.9rem 1rem;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% 10%, rgba(255, 255, 255, 0.28), transparent 42%),
    radial-gradient(80% 120% at 0% 100%, rgba(0, 0, 0, 0.22), transparent 50%),
    linear-gradient(135deg, var(--crm-accent, #2f6fed) 0%, #1c2740 72%);
}

.crm-ticket__hero-art {
  position: absolute;
  right: -0.4rem;
  top: -0.6rem;
  width: 7.2rem;
  height: 7.2rem;
  color: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.crm-ticket__hero-art svg {
  width: 100%;
  height: 100%;
}

.crm-ticket__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.crm-ticket__hero.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(12, 14, 20, 0.08) 0%, rgba(12, 14, 20, 0.72) 100%),
    linear-gradient(90deg, rgba(20, 28, 48, 0.45), transparent 62%);
}

.crm-ticket__hero > div,
.crm-ticket__face {
  position: relative;
  z-index: 2;
}

.crm-ticket__hero p {
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

.crm-ticket__hero h4 {
  margin: 0.15rem 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.crm-ticket__face {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #fff;
}

.crm-ticket__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 8.4rem;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem 0.55rem;
}

.crm-ticket__grid span {
  display: block;
  color: #8a8176;
  font-size: 0.55rem;
  margin-bottom: 0.18rem;
}

.crm-ticket__grid strong {
  display: block;
  font-size: 0.72rem;
}

.crm-ticket__grid em {
  display: block;
  margin-top: 0.1rem;
  color: #8a8176;
  font-size: 0.58rem;
  font-style: normal;
}

.crm-amount {
  padding: 0.55rem 0.65rem;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(55, 35, 12, 0.1);
}

.crm-amount strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
}

.crm-lines {
  list-style: none;
  margin: 0;
  padding: 0 0.9rem 0.35rem;
}

.crm-lines li {
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.38rem 0;
  border-top: 1px solid #f0ebe3;
}

.crm-lines__thumb {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
}

.crm-lines strong {
  display: block;
  font-size: 0.66rem;
}

.crm-lines span {
  color: #8a8176;
  font-size: 0.55rem;
}

.crm-lines b {
  font-size: 0.64rem;
}

.crm-ticket__sum {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem 0.7rem;
  color: #8a8176;
  font-size: 0.58rem;
}

.crm-ticket__sum b {
  color: #17140f;
}

.crm-deal__cover {
  display: grid;
  place-items: center;
  width: 100%;
  height: 3.1rem;
  margin-bottom: 0.4rem;
  border-radius: 0.65rem;
  color: rgba(255, 255, 255, 0.88);
  background:
    radial-gradient(90% 80% at 90% 0%, rgba(255, 255, 255, 0.24), transparent 46%),
    linear-gradient(135deg, var(--crm-accent, #2f6fed), #1c2740);
}

.crm-deal__cover svg {
  width: 1.35rem;
  height: 1.35rem;
}

.crm-deal__cover.has-photo {
  padding: 0;
  overflow: hidden;
}

.crm-deal__cover.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.crm-thread {
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: start;
}

.crm-thread__face,
.crm-msg__face,
.crm-firm__thumb {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  object-fit: cover;
  overflow: hidden;
}

.crm-read__who {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.crm-msg {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  gap: 0.4rem;
  align-items: start;
}

.crm-firm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.crm-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #374151;
  font: inherit;
  outline: none;
}

.crm-search input::placeholder {
  color: #9ca3af;
}

button.crm-btn,
button.crm-chip,
button.crm-pill,
button.crm-event,
button.crm-icon {
  cursor: pointer;
  font: inherit;
}

.crm-btn--solid {
  background: #111;
  color: #fff;
  border-color: #111;
}

.crm-new {
  position: relative;
  z-index: 8;
}

.crm-menu {
  position: absolute;
  top: calc(100% + 0.28rem);
  right: 0;
  z-index: 12;
  min-width: 8.2rem;
  padding: 0.3rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid #eceef1;
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.16);
}

.crm-menu button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.4rem 0.55rem;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 0.68rem;
  text-align: left;
  cursor: pointer;
}

.crm-menu button:hover {
  background: #f3f4f6;
}

.crm-agenda li,
.crm-attention li,
.crm-table tbody tr {
  cursor: pointer;
}

.crm-table tbody tr:hover {
  background: #f8f9fb;
}

.crm-deal.is-dragging {
  opacity: 0.45;
}

.crm-inbox--live {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 0.55rem;
  flex: 1;
  min-height: 0;
}

.crm-inbox__list,
.crm-inbox__read {
  min-height: 0;
  overflow: auto;
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 0.7rem;
}

.crm-inbox__list .crm-thread {
  padding: 0.48rem 0.6rem;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #f1f2f4;
  background: transparent;
  box-shadow: none;
}

.crm-inbox__list .crm-thread p {
  margin: 0 0 0.28rem;
  font-size: 0.62rem;
}

.crm-inbox__list .crm-thread__meta strong {
  font-size: 0.66rem;
}

.crm-thread.is-unread p {
  color: #111;
  font-weight: 600;
}

.crm-inbox__read {
  display: flex;
  flex-direction: column;
}

.crm-read__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #f1f2f4;
}

.crm-read__head strong {
  display: block;
  font-size: 0.7rem;
}

.crm-read__head span {
  color: #6b7280;
  font-size: 0.58rem;
}

.crm-read__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.crm-read__msgs {
  flex: 1;
  overflow: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.crm-msg {
  max-width: 96%;
  padding: 0.45rem 0.5rem;
  border-radius: 0.75rem;
  background: #f7f2ea;
}

.crm-msg.is-me {
  margin-left: auto;
  background: #eef4ff;
}

.crm-msg b {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.62rem;
}

.crm-msg time {
  color: #9ca3af;
  font-size: 0.58rem;
}

.crm-msg p {
  margin: 0.25rem 0 0;
  font-size: 0.7rem;
  line-height: 1.4;
  color: #1f2937;
}

.crm-reply {
  display: flex;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem;
  border-top: 1px solid #f1f2f4;
}

.crm-reply input {
  flex: 1;
  min-width: 0;
  height: 1.45rem;
  padding: 0 0.65rem;
  border: 1px solid #e4e5e9;
  border-radius: 999px;
  font: inherit;
  font-size: 0.62rem;
  outline: none;
}

.crm-empty {
  margin: 1rem;
  color: #9ca3af;
  font-size: 0.72rem;
}

.crm-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  width: min(18.5rem, 46%);
  padding: 1rem 0.95rem;
  background: #fff;
  border-left: 1px solid #eceef1;
  box-shadow: -12px 0 28px rgba(17, 17, 17, 0.08);
  overflow: auto;
  text-align: left;
}

.crm-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.crm-drawer__head h4 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.crm-icon {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111;
  font-size: 1rem;
  line-height: 1;
}

.crm-drawer__value {
  margin: 0.55rem 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.crm-drawer__note,
.crm-meta {
  margin: 0.35rem 0;
  color: #6b7280;
  font-size: 0.7rem;
  line-height: 1.4;
}

.crm-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin: 0.65rem 0;
  color: #6b7280;
  font-size: 0.62rem;
  font-weight: 600;
}

.crm-field input,
.crm-field select {
  width: 100%;
  height: 1.75rem;
  padding: 0 0.7rem;
  border: 1px solid #e4e5e9;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 500;
}

.crm-drawer__actions,
.crm-drawer__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.crm-drawer__list button {
  padding: 0.4rem 0.65rem;
  border: 1px solid #eceef1;
  border-radius: 999px;
  background: #f8f9fb;
  color: #111;
  font: inherit;
  font-size: 0.68rem;
  text-align: left;
  cursor: pointer;
}

.crm-modal {
  position: absolute;
  inset: 0;
  z-index: 40;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: grid;
  place-items: center;
  padding: 0.85rem;
  background: rgba(12, 14, 20, 0.58);
}

.crm-modal[hidden],
.crm-drawer[hidden] {
  display: none !important;
}

.crm-modal__card {
  width: min(16.5rem, 92%);
  padding: 0.9rem 0.9rem 0.85rem;
  border-radius: 1.1rem;
  background: #fff;
  border: 1px solid #eceef2;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  color: #111;
}

.crm-modal__card .crm-field input,
.crm-modal__card .crm-field select {
  width: 100%;
  color: #111;
  background: #f6f7f9;
  font-size: 0.7rem;
}

.crm-modal__card .crm-btn {
  width: 100%;
  height: 1.7rem;
  margin-top: 0.2rem;
}

.crm-nav__list em[hidden] {
  display: none;
}

.crm-analytics {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0.55rem;
  flex: 1;
  min-height: 0;
}

.crm-panel--chart {
  min-height: 0;
}

.crm-panel--span {
  grid-column: 1 / -1;
}

.crm-pie-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 0;
  flex: 1;
  padding: 0.15rem 0.1rem 0.2rem;
}

.crm-pie {
  position: relative;
  flex: 0 0 auto;
  width: 7.4rem;
  height: 7.4rem;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(47, 111, 237, 0.12);
}

.crm-pie__hole {
  position: absolute;
  inset: 22%;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #f1f2f4;
}

.crm-pie__hole strong {
  font-size: 0.82rem;
  letter-spacing: -0.03em;
  color: #111;
}

.crm-pie__hole span {
  color: #9ca3af;
  font-size: 0.55rem;
}

.crm-legend {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  min-width: 0;
  flex: 1;
}

.crm-legend li {
  display: grid;
  grid-template-columns: 0.55rem 1fr auto;
  align-items: center;
  gap: 0.4rem;
  color: #4b5563;
  font-size: 0.66rem;
}

.crm-legend i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
}

.crm-legend b {
  color: #111;
  font-size: 0.66rem;
}

.crm-bars {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.35rem;
  flex: 1;
  min-height: 7.2rem;
  padding: 0.35rem 0.2rem 0;
}

.crm-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
  gap: 0.2rem;
}

.crm-bar span {
  width: 100%;
  max-width: 1.35rem;
  border-radius: 999px 999px 0.45rem 0.45rem;
  background: linear-gradient(180deg, #2f6fed 0%, #b50321 100%);
}

.crm-bar.is-today span {
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.16);
}

.crm-bar em {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 700;
  color: #111;
}

.crm-bar b {
  color: #9ca3af;
  font-size: 0.55rem;
  font-weight: 600;
}

.crm-hbars {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.2rem 0 0.1rem;
}

.crm-hbars li {
  display: grid;
  grid-template-columns: 5.6rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.66rem;
  color: #4b5563;
}

.crm-hbar {
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f5;
}

.crm-hbar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b50321 0%, #2f6fed 100%);
}

.crm-hbars b {
  color: #111;
}

.brain__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
  position: relative;
  z-index: 2;
}

.brain__dots span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.35s ease, background 0.35s ease;
  cursor: pointer;
}

.brain__dots span.is-active {
  width: 1.35rem;
  background: var(--accent-orange);
}

@media (max-width: 900px) {
  .brain {
    padding: clamp(3.25rem, 7vw, 5rem) var(--hero-inline, 1.25rem) clamp(3.5rem, 8vw, 5.5rem);
  }

  .brain__intro {
    margin-bottom: 1.75rem;
  }

  .brain__heading {
    font-size: clamp(1.55rem, 6.8vw, 2.6rem);
  }

  .brain__window {
    padding-top: 0.25rem;
    width: min(100%, 96vw);
  }

  .brain__stack {
    height: 100%;
    aspect-ratio: auto;
    max-height: none;
  }

  .brain__app {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .crm-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.5rem;
  }

  .crm-nav__brand,
  .crm-nav__footer,
  .crm-nav__label {
    display: none;
  }

  .crm-nav__list {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.25rem;
  }

  .crm-nav__list button {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.38rem 0.55rem;
  }

  .crm-nav__list button.is-active::before {
    display: none;
  }

  .crm-kpis,
  .crm-kpis--3,
  .crm-kpis--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-analytics {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .crm-split,
  .crm-split--home,
  .crm-sales,
  .crm-ticket__grid {
    grid-template-columns: 1fr;
  }

  .crm-nav__list button {
    flex-direction: row;
  }

  .crm-nav__row {
    flex-direction: row;
    gap: 0.35rem;
  }

  .crm-nav__name {
    font-size: 0.62rem;
  }

  .crm-board,
  .crm-board--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-week {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brain__sheet[data-depth="1"],
  .brain__sheet[data-depth="2"],
  .brain__sheet[data-depth="3"],
  .brain__sheet[data-depth="4"] {
    transform: none;
  }
}

@media (max-width: 767px) {
  .brain__window {
    width: 100%;
    padding-top: 0;
  }

  .crm-laptop {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .crm-laptop__glow,
  .crm-laptop__frame,
  .crm-laptop__glass {
    display: none;
  }

  .crm-laptop__screen {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: min(78dvh, 42rem);
    min-height: 28rem;
    border-radius: 1.15rem;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  }

  .crm-sticker {
    position: static;
    order: -1;
    top: auto;
    right: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.7rem 0.9rem;
    font-size: 0.82rem;
    border-radius: 0.85rem;
    transform: none;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  }

  .brain__dots {
    display: none;
  }
}

@media (max-width: 640px) {
  .brain__stack {
    height: 100%;
    aspect-ratio: auto;
    max-height: none;
  }

  .crm-week {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-top__right .crm-search {
    display: none;
  }

  .crm-kpis--3 .crm-kpi:last-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brain__sheet {
    transition: none !important;
  }
}

/* Workforce showcase (section 5) */
.workforce {
  width: 100%;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 5rem);
  background: #fff;
  font-family: "Schibsted Grotesk", var(--font-sans);
}

.workforce__inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
}

.workforce__intro {
  max-width: min(72rem, 100%);
  margin: 0 auto 2.75rem;
  text-align: center;
}

.workforce__heading {
  margin: 0;
  font-size: clamp(2.35rem, 5.2vw, 4.15rem);
  color: #111;
  white-space: normal;
}

.workforce__heading.inline-heading {
  justify-content: center;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.workforce__sub {
  margin: 1.25rem auto 0;
  max-width: 40rem;
  color: #687280;
  font-family: "Schibsted Grotesk", var(--font-sans);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 400;
  line-height: 1.5;
}

.workforce #workforce-grid h3,
.workforce #workforce-grid p,
.workforce-tabs,
.w-tab-btn,
#workforce-popover {
  font-family: "Schibsted Grotesk", var(--font-sans);
}

.workforce-tabs {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-top: 1px solid rgba(13, 22, 47, 0.08);
}

.w-tab-btn {
  --tab-color: #6056ff;
  display: block;
  width: 100%;
  margin: 0;
  padding: 1.1rem 0.15rem;
  border: 0;
  border-bottom: 1px solid rgba(13, 22, 47, 0.08);
  border-radius: 0;
  background: transparent;
  color: #0d162f;
  font-family: "Schibsted Grotesk", var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease;
}

.w-tab-btn:hover {
  background: rgba(13, 22, 47, 0.015);
}

.w-tab-btn__head {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2rem;
  padding-left: 2.75rem; /* keeps title x-position stable with/without icon */
}

.w-tab-btn__icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  color: var(--tab-color);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, color 220ms ease;
}

.w-tab-btn__icon svg {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
}

.w-tab-btn__title {
  font-family: "Schibsted Grotesk", var(--font-sans);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: #1f2937;
  transition: color 220ms ease;
}

.workforce-card__title,
.workforce-card__desc {
  font-family: "Schibsted Grotesk", var(--font-sans);
}

.w-tab-btn__content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 300ms ease, opacity 300ms ease;
}

.w-tab-btn__content > p {
  margin: 0;
  padding: 0.55rem 0 0.15rem 2.75rem;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
  color: #0d162f;
}

.w-tab-btn.is-active .w-tab-btn__icon {
  opacity: 1;
  color: var(--tab-color);
}

.w-tab-btn.is-active .w-tab-btn__title {
  font-weight: 600;
  color: var(--tab-color);
}

.w-tab-btn.is-active .w-tab-btn__content {
  opacity: 1;
}

@media (max-width: 1023px) {
  .workforce {
    padding: clamp(3rem, 7vw, 4.5rem) clamp(1rem, 4vw, 1.5rem);
  }

  .workforce__intro {
    margin-bottom: 1.35rem;
  }

  .workforce__heading {
    font-size: clamp(1.85rem, 6.5vw, 2.75rem);
    white-space: normal;
  }

  .workforce__heading .inline-heading__row {
    flex-wrap: wrap;
  }

  .workforce__sub {
    margin-top: 0.75rem;
    font-size: 0.95rem;
  }

  .workforce__layout {
    flex-direction: column !important;
    gap: 1.1rem !important;
  }

  .workforce__sidebar {
    width: 100% !important;
    max-width: none !important;
    position: static !important;
  }

  .workforce-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.45rem;
    border-top: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
    margin-bottom: 0.15rem;
  }

  .workforce-tabs::-webkit-scrollbar {
    display: none;
  }

  .w-tab-btn {
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(13, 22, 47, 0.1);
    border-radius: 999px;
    background: #f4f4f2;
  }

  .w-tab-btn__head {
    padding-left: 0;
    min-height: 0;
  }

  .w-tab-btn__icon {
    display: none;
  }

  .w-tab-btn__title {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .w-tab-btn__content {
    display: none !important;
  }

  .w-tab-btn.is-active {
    border-color: color-mix(in srgb, var(--tab-color) 55%, transparent);
    background: color-mix(in srgb, var(--tab-color) 12%, #ffffff);
  }

  .w-tab-btn.is-active .w-tab-btn__title {
    color: var(--tab-color);
  }

  #workforce-grid > * {
    min-width: 0;
  }

  #workforce-grid .sm\\:max-w-\\[280px\\],
  #workforce-grid .card-inner {
    max-width: none !important;
  }

  #workforce-grid h3,
  #workforce-grid .workforce-card__title {
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
  }

  #workforce-grid p,
  #workforce-grid .workforce-card__desc {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }
}

@media (max-width: 639px) {
  #workforce-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0.75rem !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.1rem;
    margin-inline: -0.15rem;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #workforce-grid::-webkit-scrollbar {
    display: none;
  }

  #workforce-grid > * {
    flex: 0 0 min(78vw, 18.5rem);
    width: min(78vw, 18.5rem);
    scroll-snap-align: start;
  }

  #workforce-grid .card-inner {
    height: auto !important;
    min-height: 7.25rem;
    border-radius: 1rem !important;
    padding: 1rem !important;
  }

  #workforce-grid .workforce-card__title {
    margin-top: 0.7rem !important;
    margin-bottom: 0.2rem !important;
  }

  #workforce-grid .workforce-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #workforce-popover {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .w-tab-btn,
  .w-tab-btn__content,
  .w-tab-btn__icon,
  .w-tab-btn__title {
    transition: none;
  }
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 6. How we work */
.process {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1.25rem, 4vw, 5rem);
  background: #000;
  font-family: "Schibsted Grotesk", var(--font-sans);
}

.process--stage {
  padding-left: 0;
  padding-right: 0;
  background: #000;
}

.process--stage .process__bg {
  display: block;
  background:
    radial-gradient(72% 88% at 0% 50%, rgba(196, 52, 25, 0.72) 0%, transparent 58%),
    radial-gradient(72% 88% at 100% 50%, rgba(196, 52, 25, 0.72) 0%, transparent 58%),
    #000;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 100%);
}

.process--stage .process__inner {
  width: 100%;
  max-width: none;
}

.process--stage .process__heading,
.process--stage .process__sub {
  padding-inline: clamp(1.25rem, 4vw, 5rem);
}

.process-stage__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 1.6rem;
  padding-inline: clamp(1.25rem, 4vw, 5rem);
}

.process-stage__tabs button {
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Schibsted Grotesk", var(--font-sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.process-stage__tabs button.is-on {
  background: #fff;
  border-color: #fff;
  color: #111;
}

.process-stage {
  position: relative;
  width: 100%;
}

.process-stage__viewport {
  overflow: hidden;
  width: 100%;
}

.process-stage__track {
  display: flex;
  gap: 1rem;
  will-change: transform;
}

.process-stage__track.is-ready {
  transition: transform 0.55s ease;
}

.process-stage__track .process-stage__slide {
  flex: 0 0 76%;
  cursor: pointer;
  opacity: 0.58;
  transition: opacity 0.45s ease;
}

.process-stage__track .process-stage__card {
  height: 100%;
}

.process-stage__track .process-stage__slide.is-on {
  cursor: default;
  opacity: 1;
}

.process-stage__track.is-moving .process-stage__slide {
  opacity: 1;
}

.process-stage__card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: min(68vh, 36rem);
  border-radius: 2rem;
  overflow: hidden;
  background: #111;
}

.process-stage__pane {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(1.5rem, 3.5vw, 2.8rem);
}

.process-stage__body {
  margin-top: auto;
  margin-bottom: auto;
}

.process-stage__shot {
  min-height: 100%;
  background: #0a0a0a center / cover no-repeat;
}

.process-stage__kicker {
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.process-stage__title {
  margin: 0 0 0.85rem;
  font-family: "Schibsted Grotesk", var(--font-sans);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-transform: uppercase;
}

.process-stage__copy {
  margin: 0 0 1.25rem;
  max-width: 28rem;
  font-size: 0.98rem;
  line-height: 1.5;
}

.process-stage__label {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.62;
}

.process-stage__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.process-stage__chip {
  display: inline-flex;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.74rem;
  font-weight: 650;
  text-decoration: none;
  color: inherit;
  opacity: 0.88;
}

.process-stage__card--advisory,
.process-stage__card--training,
.process-stage__card--execution,
.process-stage__card--monitoring {
  position: relative;
  grid-template-columns: 1fr;
  background: #000;
  color: #fff;
}

.process-stage__card--training::before {
  content: "";
  position: absolute;
  inset: 8% 4% 8% 38%;
  background: radial-gradient(ellipse at 55% 42%, rgba(196, 184, 255, 0.72) 0%, rgba(61, 82, 234, 0.42) 38%, rgba(12, 18, 56, 0.12) 68%, transparent 78%);
  pointer-events: none;
}

.process-stage__card--advisory .process-stage__shot,
.process-stage__card--training .process-stage__shot,
.process-stage__card--execution .process-stage__shot,
.process-stage__card--monitoring .process-stage__shot {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.process-stage__card--training .process-stage__shot {
  background-color: transparent;
  background-size: contain;
  background-position: 78% 50%;
  background-repeat: no-repeat;
}

.process-stage__card--execution .process-stage__shot {
  background-position: 58% 40%;
}

.process-stage__card--monitoring .process-stage__shot {
  background-position: 58% 38%;
}

.process-stage__card--advisory .process-stage__pane,
.process-stage__card--training .process-stage__pane,
.process-stage__card--execution .process-stage__pane,
.process-stage__card--monitoring .process-stage__pane {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 62%, rgba(0, 0, 0, 0.12) 88%, transparent 100%);
}

.process-stage__card--advisory .process-stage__title,
.process-stage__card--advisory .process-stage__copy,
.process-stage__card--advisory .process-stage__label,
.process-stage__card--advisory .process-stage__chip,
.process-stage__card--training .process-stage__title,
.process-stage__card--training .process-stage__copy,
.process-stage__card--training .process-stage__label,
.process-stage__card--training .process-stage__chip,
.process-stage__card--execution .process-stage__title,
.process-stage__card--execution .process-stage__copy,
.process-stage__card--execution .process-stage__label,
.process-stage__card--execution .process-stage__chip,
.process-stage__card--monitoring .process-stage__title,
.process-stage__card--monitoring .process-stage__copy,
.process-stage__card--monitoring .process-stage__label,
.process-stage__card--monitoring .process-stage__chip {
  color: #fff;
}

.process-stage__card--advisory .process-stage__chip,
.process-stage__card--training .process-stage__chip,
.process-stage__card--execution .process-stage__chip,
.process-stage__card--monitoring .process-stage__chip {
  border-color: rgba(255, 255, 255, 0.32);
}

.process-stage__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: #000;
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}

.process-stage__nav svg {
  width: 1.15rem;
  height: 1.15rem;
}

.process-stage__nav--prev { left: 0.85rem; }
.process-stage__nav--next { right: 0.85rem; }

@media (max-width: 991px) {
  .process-stage__tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.15rem;
  }

  .process-stage__tabs::-webkit-scrollbar {
    display: none;
  }

  .process-stage__tabs button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0.5rem 0.85rem;
    font-size: 0.74rem;
  }

  .process-stage__title {
    font-size: clamp(1.45rem, 4.2vw, 2.35rem);
  }

  .process-stage__copy {
    font-size: 0.92rem;
  }

  .process-stage__card {
    min-height: min(58vh, 30rem);
  }
}

@media (max-width: 767px) {
  .process-stage__track .process-stage__slide {
    flex-basis: 86%;
  }

  .process-stage__card {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 1.35rem;
  }

  .process-stage__shot {
    min-height: 14rem;
    order: -1;
  }

  .process-stage__nav {
    top: auto;
    bottom: -3.4rem;
    transform: none;
  }

  .process-stage__nav--prev { left: calc(50% - 4rem); }
  .process-stage__nav--next { right: calc(50% - 4rem); }

  .process--stage {
    padding-bottom: 6.5rem;
  }
}

/* Radial glow: black core â†’ brand orange (same pattern as the Tailwind snippet) */
.process__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(125% 125% at 50% 10%, #000 40%, #C43419 100%);
}

.process__inner {
  position: relative;
  z-index: 1;
  width: min(1400px, 100%);
  margin: 0 auto;
}

.process__heading {
  margin: 0;
  text-align: center;
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  color: #f3f6fb;
  text-shadow: 0 0 28px rgba(180, 210, 255, 0.16);
}

.process__heading.inline-heading {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.28em 0.32em;
}

.process__sub {
  margin: 0.85rem auto clamp(2.5rem, 5vw, 3.5rem);
  max-width: 36rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 400;
  line-height: 1.5;
}

.process__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

/* Two-zone card: white title panel over soft detail panel */
.process__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #e7e4de;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.35rem;
  padding: 0.6rem;
  overflow: hidden;
  min-height: 100%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.process__head {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 1.05rem;
  padding: 1.35rem 1.2rem 1.3rem;
  box-shadow:
    0 1px 0 rgba(17, 17, 17, 0.04),
    0 14px 32px rgba(17, 17, 17, 0.1);
  overflow: hidden;
  min-height: 7.75rem;
}

.process__step {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(17, 17, 17, 0.38);
}

.process__icon {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  opacity: 0.9;
  pointer-events: none;
}

.process__icon--blue { color: #2f6fed; }
.process__icon--purple { color: #8b5cf6; }
.process__icon--teal { color: #0d9488; }
.process__icon--red { color: #c43419; }

.process__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.process__title {
  position: relative;
  z-index: 2;
  margin: 0 0 0.3rem;
  max-width: 78%;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #111;
}

.process__lede {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 78%;
  color: rgba(17, 17, 17, 0.55);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.35;
}

.process__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 0.9rem 0.95rem;
}

.process__copy {
  margin: 0 0 1.15rem;
  color: #4b5563;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.5;
  flex: 1;
}

.process__label {
  margin: 0 0 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.42);
}

.process__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.process__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(196, 52, 25, 0.14);
  background: rgba(196, 52, 25, 0.08);
  color: #8a2e14;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.process__chip:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

@media (max-width: 1099px) {
  .process {
    padding: clamp(3.25rem, 7vw, 5.5rem) clamp(1.1rem, 3.5vw, 2.5rem);
  }

  .process__sub {
    margin-bottom: 1.75rem;
  }

  .process__head {
    min-height: 6.75rem;
    padding: 1.1rem 1rem 1.05rem;
  }

  .process__copy {
    font-size: 0.84rem;
    margin-bottom: 0.85rem;
  }
}

@media (max-width: 639px) {
  .process__track {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.1rem;
    gap: 0.75rem;
    margin-inline: -1.1rem;
    padding-inline: 1.1rem;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .process__track::-webkit-scrollbar {
    display: none;
  }

  .process__heading {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .process__card {
    flex: 0 0 min(80vw, 20rem);
    width: min(80vw, 20rem);
    min-height: 0;
    padding: 0.45rem;
    border-radius: 1.05rem;
    scroll-snap-align: start;
  }

  .process__head {
    min-height: 6.1rem;
    padding: 0.95rem 0.85rem 0.9rem;
    border-radius: 0.9rem;
  }

  .process__icon {
    width: 2.2rem;
    height: 2.2rem;
    top: 0.75rem;
    right: 0.75rem;
  }

  .process__title {
    font-size: 1rem;
    max-width: 72%;
  }

  .process__lede {
    font-size: 0.78rem;
  }

  .process__body {
    padding: 0.9rem 0.65rem 0.7rem;
  }

  .process__copy {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
  }

  .process__label {
    font-size: 0.62rem;
    margin-bottom: 0.4rem;
  }

  .process__chip {
    font-size: 0.68rem;
    padding: 0.32rem 0.55rem;
  }
}

@media (min-width: 1100px) {
  .process__track {
    position: relative;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    align-items: stretch;
  }

  /* Thin connector line behind the four cards */
  .process__track::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 8%;
    right: 8%;
    height: 1px;
    background: rgba(255, 255, 255, 0.55);
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
  }

  .process__card {
    z-index: 1;
    margin: 0 0.75rem;
    border-radius: 1.35rem;
    padding: 0.65rem;
  }

  .process__card:first-child {
    margin-left: 0;
  }

  .process__card:last-child {
    margin-right: 0;
  }

  .process__head {
    min-height: 8.25rem;
    padding: 1.4rem 1.25rem 1.3rem;
  }

  .process__icon {
    width: 2.85rem;
    height: 2.85rem;
  }

  .process__title {
    font-size: 1.28rem;
  }

  .process__body {
    padding: 1.2rem 0.95rem 0.95rem;
  }

  /* Dots where the line meets each card edge */
  .process__card:not(:last-child)::after,
  .process__card:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
    z-index: 2;
  }

  .process__card:not(:last-child)::after {
    right: -0.75rem;
  }

  .process__card:not(:first-child)::before {
    left: -0.75rem;
  }
}

/* 7. Who we are — horizontal copy rail + scroll-scrubbed earth */
.about {
  position: relative;
  height: 480vh;
  background: #fff;
  color: #111;
  font-family: "Schibsted Grotesk", var(--font-sans);
}

.about__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #fff;
}

.about__rail {
  position: absolute;
  /* Clear the solid navbar + a little breathing room */
  inset: calc(clamp(5rem, 9vh, 6.75rem) + 20px) 0 auto;
  z-index: 4;
  width: 100%;
  overflow: visible;
  pointer-events: none;
}

.about__track {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  width: max-content;
  /* Desktop: start further in — similar energy to wearecheck’s 70vw stats inset */
  padding-left: max(8vw, calc(46vw - 14rem));
  padding-right: 40vw;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.about__panel {
  flex: 0 0 auto;
  opacity: 0;
  transform: translate3d(22px, 0, 0);
  transition: none;
  contain: layout style;
  backface-visibility: hidden;
}

.about__panel.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.about__panel--lead {
  /* Wider paragraph like wearecheck (~500px), not a skinny word stack */
  width: min(40rem, 58vw);
  max-width: 40rem;
}

/* Space after first line — keep next beat close, not far right */
.about__panel--lead:first-child {
  margin-right: clamp(2.5rem, 5vw, 4.5rem);
}

.about__panel--stat {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: none;
  padding-top: 0.35rem;
}

.about__stat-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about__panel--arrow {
  display: flex;
  align-items: center;
  align-self: center;
  margin-top: 0.35rem;
  flex: 0 0 auto;
}

.about__arrow {
  display: block;
  height: auto;
  color: #ff8300;
  overflow: visible;
}

.about__arrow path {
  fill: none;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about__arrow--a {
  width: clamp(11rem, 18vw, 16rem);
  color: #b60525;
}

.about__arrow--b {
  width: clamp(11rem, 18vw, 16rem);
  color: #2f6fed;
}

.about__arrow--c {
  width: clamp(14rem, 24vw, 22rem);
  color: #c43419;
}

.about__panel--copy {
  width: min(26rem, 42vw);
  max-width: 26rem;
  padding-top: 0.5rem;
}

.about__panel--copy p {
  margin: 0;
  color: rgba(17, 17, 17, 0.55);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.5;
}

.about__mark {
  display: inline;
  padding: 0.12em 0.38em 0.1em;
  margin: 0 0.08em;
  background: #fff;
  color: #111;
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: nowrap;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.about__headline .about__mark,
.about__stat-lede .about__mark {
  font-family: Inter, var(--font-sans);
  font-style: normal;
}

.about__headline .about__mark-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.about__headline .about__mark-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
}

.about__headline .about__amp {
  font-family: var(--font-serif);
  font-size: 1em;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: none;
  color: inherit;
  background: none;
  margin-right: 10px;
  transform: translateY(0.18em);
}

.about__headline .about__mark {
  padding: 0.22em 0.5em;
  margin: 0;
  background: #fff;
  color: #111;
  font-size: clamp(0.8125rem, 0.55em, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  vertical-align: baseline;
  white-space: nowrap;
}

.about__panel--display {
  padding-top: 0.35rem;
  display: flex;
  align-items: center;
  min-height: 4.5rem;
}

.about__panel--end {
  padding-right: 8vw;
}

.about__headline {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 4.2vw, 3.65rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: none;
  color: #111;
}

.about__headline-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.about__display {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: none;
  color: #111;
}

/* About-rail display size for the shared inline heading */
.about__inline-heading.inline-heading {
  margin: 0;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 48px;
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  font-weight: 400;
  line-height: 1;
  color: #111;
  white-space: nowrap;
}

.about__inline-heading .inline-heading__media {
  width: 1.85em;
  height: 0.86em;
}

.about__stat-lede {
  margin: 0;
  max-width: 16ch;
  color: rgba(17, 17, 17, 0.55);
  font-size: clamp(0.82rem, 1.05vw, 0.95rem);
  font-weight: 400;
  line-height: 1.45;
  padding-top: 0.55rem;
}

.about__stat-num {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(5rem, 10vw, 8.5rem);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: #111;
}

.about__stat-label {
  margin: 0.15rem 0 0;
  font-family: "Schibsted Grotesk", var(--font-sans);
  font-size: clamp(0.82rem, 1.05vw, 0.95rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #111;
  line-height: 1.3;
}

.about__globe {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 64%;
  pointer-events: none;
  overflow: visible;
}

.about__canvas {
  display: none;
}

.about__globe-labels {
  display: none;
}

.about__video {
  display: block;
  width: min(1240px, 98vw);
  height: auto;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  transform: translate3d(0, 10%, 0);
}

/* Tablet — wearecheck-style: still horizontal, tighter start, smaller globe */
@media (max-width: 991px) {
  .about {
    height: 420vh;
  }

  .about__rail {
    inset: calc(5.25rem + 16px) 0 auto;
  }

  .about__track {
    gap: 1.5rem;
    padding-left: 14vw;
    padding-right: 32vw;
  }

  .about__panel--lead:first-child {
    margin-right: clamp(1.5rem, 4vw, 3rem);
  }

  .about__panel {
    transform: translate3d(16px, 6px, 0);
  }

  .about__panel--lead {
    width: min(22rem, 62vw);
    max-width: 22rem;
  }

  .about__panel--copy {
    width: min(20rem, 56vw);
    max-width: 20rem;
  }

  .about__panel--stat {
    flex-direction: column;
    gap: 0.35rem;
  }

  .about__stat-lede {
    max-width: 28ch;
    padding-top: 0;
  }

  .about__headline {
    font-size: clamp(1.85rem, 4.4vw, 2.65rem);
  }

  .about__headline .about__mark {
    letter-spacing: 0.06em;
    padding: 0.2em 0.42em;
  }

  .about__headline .about__amp {
    margin-right: 8px;
  }

  .about__display {
    font-size: clamp(2.6rem, 9vw, 4rem);
  }

  .about__inline-heading.inline-heading {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
    gap: 40px;
  }

  .about__stat-num {
    font-size: clamp(3.75rem, 12vw, 5.5rem);
  }

  .about__arrow--a,
  .about__arrow--b {
    width: 10rem;
  }

  .about__arrow--c {
    width: 13.5rem;
  }

  .about__arrow path {
    stroke-width: 4;
  }

  .about__globe {
    height: 58%;
  }

  .about__video {
    width: min(1080px, 96vw);
  }
}

/* Mobile phone — readable copy, earth sits lower like wearecheck sketches */
@media (max-width: 767px) {
  .about {
    height: 340vh;
  }

  .about__rail {
    inset: calc(4.6rem + 12px) 0 auto;
  }

  .about__track {
    gap: 1.15rem;
    /* Start near the left edge so the first beat is readable immediately */
    padding-left: 1.25rem;
    padding-right: 48vw;
  }

  .about__panel--lead:first-child {
    margin-right: 1.25rem;
  }

  .about__panel--lead {
    width: min(20rem, 88vw);
    max-width: 20rem;
  }

  .about__panel--copy {
    width: min(17rem, 84vw);
    max-width: 17rem;
  }

  .about__panel--copy p {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .about__headline {
    font-size: clamp(1.7rem, 6.6vw, 2.15rem);
    line-height: 1.12;
  }

  .about__headline .about__mark {
    font-size: clamp(0.78rem, 3.6vw, 0.95rem);
    letter-spacing: 0.05em;
    padding: 0.18em 0.38em;
  }

  .about__headline .about__amp {
    margin-right: 6px;
    transform: translateY(0.12em);
  }

  .about__headline .about__mark-stack {
    gap: 0.32rem;
    margin-top: 0.55rem;
  }

  .about__inline-heading.inline-heading {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
    white-space: nowrap;
    gap: 14px;
  }

  .about__stat-num {
    font-size: clamp(3.25rem, 18vw, 4.5rem);
  }

  .about__stat-label {
    font-size: 0.68rem;
  }

  .about__arrow--a,
  .about__arrow--b {
    width: 7.5rem;
  }

  .about__arrow--c {
    width: 10rem;
  }

  .about__arrow path {
    stroke-width: 3.5;
  }

  .about__globe {
    height: 70%;
  }

  .about__video {
    width: min(960px, 110vw);
    max-height: 58vh;
    transform: translate3d(0, 2%, 0);
  }

  .about__panel--end {
    padding-right: 12vw;
  }
}

/* Small phones */
@media (max-width: 479px) {
  .about {
    height: 320vh;
  }

  .about__rail {
    inset: calc(4.35rem + 10px) 0 auto;
  }

  .about__track {
    padding-left: 1rem;
    padding-right: 42vw;
    gap: 1rem;
  }

  .about__panel--lead {
    width: min(17.5rem, 90vw);
    max-width: 17.5rem;
  }

  .about__panel--copy {
    width: min(15.5rem, 86vw);
    max-width: 15.5rem;
  }

  .about__headline {
    font-size: 1.55rem;
  }

  .about__headline .about__mark {
    font-size: 0.78rem;
    letter-spacing: 0.045em;
  }

  .about__headline .about__mark-row {
    flex-wrap: wrap;
    row-gap: 0.28rem;
  }

  .about__inline-heading.inline-heading {
    font-size: clamp(1.4rem, 8vw, 1.85rem);
    gap: 10px;
  }

  .about__globe {
    height: 68%;
  }

  .about__video {
    width: min(900px, 120vw);
    max-height: 56vh;
    transform: translate3d(0, 1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about {
    height: auto;
  }

  .about__pin {
    position: relative;
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .about__rail {
    position: relative;
    inset: auto;
    padding: 5rem 1.25rem 1rem;
  }

  .about__track {
    flex-direction: column;
    width: 100%;
    max-width: 40rem;
    padding: 0;
    gap: 2rem;
    transform: none !important;
  }

  .about__globe {
    position: relative;
    height: 42vh;
    margin-top: 1rem;
  }

  .about__canvas {
    transform: translate3d(0, 0, 0);
  }
}

/* ========== THEME TOGGLE ========== */
.theme-toggle {
  position: fixed;
  right: max(1.1rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle__track {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.theme-toggle__opt {
  display: grid;
  place-items: center;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.55);
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.theme-toggle__opt svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

html[data-theme="dark"] .theme-toggle__opt--dark,
html[data-theme="light"] .theme-toggle__opt--light {
  background: #ff8300;
  color: #111;
  box-shadow: 0 0 0 1px rgba(255, 131, 0, 0.35);
}

html[data-theme="light"] .theme-toggle__track {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(17, 17, 17, 0.1);
  box-shadow:
    0 10px 28px rgba(17, 17, 17, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .theme-toggle__opt {
  color: rgba(17, 17, 17, 0.4);
}

html[data-theme="light"] .theme-toggle__opt--light {
  color: #111;
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle__opt {
    transition: none;
  }
}

.theme-circle {
  position: fixed;
  left: var(--theme-x);
  top: var(--theme-y);
  z-index: 100000;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition:
    width 0.9s cubic-bezier(0.76, 0, 0.24, 1),
    height 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

::view-transition-old(root) {
  animation: none;
  z-index: 1;
  mix-blend-mode: normal;
}

::view-transition-new(root) {
  animation: theme-circle-in 0.9s cubic-bezier(0.76, 0, 0.24, 1) both;
  z-index: 2;
  mix-blend-mode: normal;
}

@keyframes theme-circle-in {
  from {
    clip-path: circle(0px at 100% 100%);
  }
  to {
    clip-path: circle(150% at 100% 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* ========== DARK THEME (default) ========== */
html[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #000;
  --muted: rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] body {
  background: #000;
  color: #f3f4f6;
}

html[data-theme="dark"] body.crm-live-page,
html[data-theme="light"] body.crm-live-page {
  background: #f3eee6;
}

html[data-theme="dark"] .hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(5rem, 18vh, 10rem);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 42%,
    rgba(0, 0, 0, 0.82) 78%,
    #000 100%
  );
}

html[data-theme="dark"] .hero__nav-wrap.is-solid {
  background: #000;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .hero__nav-wrap.is-solid .hero__nav,
html[data-theme="dark"] .hero__nav-wrap.is-solid .apple-glass {
  background: #000;
}

html[data-theme="dark"] .hero__nav-wrap.is-solid .hero__links a {
  color: rgba(255, 255, 255, 0.88);
}

html[data-theme="dark"] .hero__nav-wrap.is-solid .hero__links a:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

html[data-theme="dark"] .hero__nav-wrap.is-solid .hero__signin {
  background: #050505;
  color: #fff;
}

html[data-theme="dark"] .hero__nav-wrap.is-solid .hero__signin:hover {
  background: #050505;
  color: #fff;
}

html[data-theme="dark"] .hero__nav-wrap.is-solid .hero__menu-btn span {
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .hero__nav-wrap.is-solid .hero__mobile-menu {
  background: #111;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .hero__nav-wrap.is-solid .hero__mobile-menu a {
  color: rgba(255, 255, 255, 0.82);
}

html[data-theme="dark"] .hero__nav-wrap.is-solid .hero__mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

html[data-theme="dark"] .hero__nav-wrap.is-solid .hero__brand-logo--white {
  display: block;
}

html[data-theme="dark"] .hero__nav-wrap.is-solid .hero__brand-logo--color {
  display: none;
}

html[data-theme="dark"] .brands {
  background: #000;
}

html[data-theme="dark"] .brands__fade--left {
  background: linear-gradient(to right, #000, transparent);
}

html[data-theme="dark"] .brands__fade--right {
  background: linear-gradient(to left, #000, transparent);
}

html[data-theme="dark"] .brands__logo {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

html[data-theme="dark"] .brands__badge {
  background: #000;
}

html[data-theme="dark"] .brands__badge-text {
  color: #fff;
}

html[data-theme="dark"] .areas {
  background: #000;
}

html[data-theme="dark"] .areas__heading,
html[data-theme="dark"] .areas__heading.inline-heading {
  color: #f4f4f2;
}

html[data-theme="dark"] .areas__sub {
  color: rgba(255, 255, 255, 0.58);
}

html[data-theme="dark"] .areas__nav {
  background: #161616;
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

html[data-theme="dark"] .areas__nav:hover:not(:disabled) {
  background: #ff8300;
  border-color: #ff8300;
  color: #111;
}

html[data-theme="dark"] .quote {
  margin: 0;
}

html[data-theme="dark"] .pains {
  z-index: 2;
  content-visibility: visible;
  margin-top: 0;
  padding: clamp(5.5rem, 12vh, 9rem) var(--hero-inline, 1.5rem);
  padding-bottom: clamp(3.5rem, 8vh, 5.5rem);
  background: #000;
  color: #f4f4f2;
}

html[data-theme="dark"] .pains::before,
html[data-theme="dark"] .pains::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

html[data-theme="dark"] .pains::before {
  top: 0;
  height: 48%;
  background: linear-gradient(
    180deg,
    #000 0%,
    #000 10%,
    rgba(0, 0, 0, 0.88) 28%,
    rgba(0, 0, 0, 0.5) 55%,
    rgba(0, 0, 0, 0.18) 78%,
    transparent 100%
  );
}

html[data-theme="dark"] .pains::after {
  bottom: 0;
  height: 28%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.18) 28%,
    rgba(0, 0, 0, 0.55) 58%,
    rgba(0, 0, 0, 0.88) 82%,
    #000 100%
  );
}

html[data-theme="dark"] .pains__glow {
  inset: -38%;
  z-index: 0;
  contain: none;
  background:
    radial-gradient(
      ellipse 50% 58% at 34% 50%,
      rgba(181, 3, 33, 0.56) 0%,
      rgba(181, 3, 33, 0.36) 18%,
      rgba(181, 3, 33, 0.18) 40%,
      rgba(181, 3, 33, 0.07) 62%,
      rgba(181, 3, 33, 0.02) 80%,
      transparent 94%
    ),
    radial-gradient(
      ellipse 54% 56% at 66% 52%,
      rgba(47, 111, 237, 0.52) 0%,
      rgba(47, 111, 237, 0.34) 20%,
      rgba(47, 111, 237, 0.16) 42%,
      rgba(47, 111, 237, 0.06) 64%,
      rgba(47, 111, 237, 0.02) 82%,
      transparent 94%
    );
}

html[data-theme="dark"] .pains__card {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .pains__heading,
html[data-theme="dark"] .pains__heading-accent {
  color: #f4f4f2;
}

html[data-theme="dark"] .pains__sub {
  color: rgba(255, 255, 255, 0.58);
}

html[data-theme="dark"] .pains__card--soft {
  background: #1a1a1a;
  color: #f4f4f2;
}

html[data-theme="dark"] .pains__card--soft.pains__card--tl {
  background: #B50321;
  color: #fff;
}

html[data-theme="dark"] .pains__card--soft.pains__card--br {
  background: #1a1a1a;
  color: #f4f4f2;
}

html[data-theme="dark"] .workforce {
  position: relative;
  background: #000;
  content-visibility: visible;
  padding-top: clamp(5.5rem, 14vh, 8.5rem);
}

html[data-theme="light"] .workforce {
  position: relative;
}

html[data-theme="dark"] .workforce::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: min(34vh, 18rem);
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 0.82) 28%,
    rgba(0, 0, 0, 0.38) 58%,
    rgba(0, 0, 0, 0.1) 80%,
    transparent 100%
  );
}

html[data-theme="light"] .workforce::before {
  display: none;
}

html[data-theme="dark"] .workforce__heading,
html[data-theme="dark"] .workforce__heading.inline-heading {
  color: #f4f4f2;
}

html[data-theme="dark"] .workforce__sub {
  color: rgba(255, 255, 255, 0.58);
}

html[data-theme="dark"] .workforce-tabs {
  border-top-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .w-tab-btn {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

html[data-theme="dark"] .w-tab-btn__title {
  color: #fff;
}

html[data-theme="dark"] .w-tab-btn__icon {
  isolation: isolate;
  overflow: visible;
  opacity: 1;
  width: 2.15rem;
  height: 2.15rem;
}

html[data-theme="dark"] .w-tab-btn__icon::before {
  content: "";
  position: absolute;
  inset: -0.55rem;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--tab-color) 38%, transparent) 0%,
    transparent 72%
  );
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}

html[data-theme="dark"] .w-tab-btn__icon svg {
  position: relative;
  z-index: 1;
  width: 1.55rem;
  height: 1.55rem;
  filter: none;
}

html[data-theme="dark"] .w-tab-btn.is-active .w-tab-btn__icon {
  opacity: 1;
}

html[data-theme="dark"] .w-tab-btn.is-active .w-tab-btn__icon::before {
  inset: -0.7rem;
  opacity: 0.72;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--tab-color) 48%, transparent) 0%,
    transparent 74%
  );
}

html[data-theme="dark"] .w-tab-btn.is-active .w-tab-btn__icon svg {
  filter: none;
}

@keyframes tab-icon-glow {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="dark"] .w-tab-btn.is-active .w-tab-btn__icon::before {
    animation: none;
  }
}

html[data-theme="dark"] .w-tab-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .w-tab-btn__content > p {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .workforce-card__title,
html[data-theme="dark"] .workforce-card__title a {
  color: #f4f4f2;
}

html[data-theme="dark"] .workforce-card__desc {
  color: #9aa3b2;
}

html[data-theme="dark"] #workforce-grid .card-inner {
  color: #111827;
}

html[data-theme="dark"] #workforce-grid .card-inner .text-\[\#0d162f\] {
  color: #0d162f !important;
}

html[data-theme="dark"] #workforce-grid .card-inner [class*="text-gray"] {
  color: #374151 !important;
}

html[data-theme="dark"] #workforce-grid .card-inner [class*="bg-white"] {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

html[data-theme="dark"] #workforce-popover {
  background: #fff !important;
  border-color: rgba(17, 17, 17, 0.1) !important;
  color: #111;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] #workforce-popover .bg-white,
html[data-theme="dark"] #workforce-popover [class*="bg-white"] {
  background-color: #fff !important;
}

html[data-theme="dark"] #workforce-popover .text-\[\#0d162f\],
html[data-theme="dark"] #workforce-popover [class*="text-gray-9"],
html[data-theme="dark"] #workforce-popover [class*="text-gray-8"],
html[data-theme="dark"] #workforce-popover [class*="text-gray-7"] {
  color: #0d162f !important;
}

html[data-theme="dark"] #workforce-popover [class*="text-gray-5"],
html[data-theme="dark"] #workforce-popover [class*="text-gray-4"] {
  color: #6b7280 !important;
}

html[data-theme="dark"] #workforce-popover [class*="border-gray"] {
  border-color: rgba(17, 17, 17, 0.1) !important;
}

@media (max-width: 1023px) {
  html[data-theme="dark"] .w-tab-btn {
    background: #161616;
    border-color: rgba(255, 255, 255, 0.12);
    color: #f4f4f2;
  }

  html[data-theme="dark"] .w-tab-btn.is-active {
    background: color-mix(in srgb, var(--tab-color) 18%, #000);
  }
}

html[data-theme="dark"] .about,
html[data-theme="dark"] .about__pin {
  background: #000;
  color: #f4f4f2;
}

html[data-theme="dark"] .about__headline,
html[data-theme="dark"] .about__display,
html[data-theme="dark"] .about__inline-heading.inline-heading,
html[data-theme="dark"] .about__stat-num,
html[data-theme="dark"] .about__stat-label {
  color: #f4f4f2;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

html[data-theme="dark"] .about__panel--copy p,
html[data-theme="dark"] .about__stat-lede {
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

html[data-theme="dark"] .about__mark {
  background: #fff;
  color: #111;
  text-shadow: none;
}

html[data-theme="dark"] .about__headline .about__mark {
  background: #fff;
  color: #111;
  text-shadow: none;
}

html[data-theme="dark"] .process {
  padding-bottom: clamp(6.5rem, 14vh, 9.5rem);
  content-visibility: visible;
}

html[data-theme="dark"] .process__bg {
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 14%,
    #000 72%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 14%,
    #000 72%,
    transparent 100%
  );
}

html[data-theme="dark"] .process--stage .process__bg {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 100%);
}

html[data-theme="dark"] .process::before,
html[data-theme="dark"] .process::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 0;
  pointer-events: none;
}

html[data-theme="dark"] .process::before {
  top: 0;
  height: clamp(4.5rem, 12vh, 7.5rem);
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 40%, transparent 100%);
}

html[data-theme="dark"] .process::after {
  bottom: 0;
  height: clamp(7rem, 18vh, 11rem);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 38%, #000 100%);
}

html[data-theme="dark"] .about__globe {
  height: 66%;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

html[data-theme="dark"] .about__globe-stage {
  position: relative;
  z-index: 1;
  width: min(96vh, 88vw);
  height: min(96vh, 88vw);
  flex: 0 0 auto;
  margin-bottom: -16vh;
  background: transparent;
  transform: translate3d(0, 28%, 0);
}

html[data-theme="dark"] .about__globe-labels {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

html[data-theme="dark"] .about__globe-label {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(12, 14, 20, 0.92);
  color: #ffffff;
  font: 600 11px/1 ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 10px 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

html[data-theme="dark"] .about__globe-label.on {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="dark"] .about__globe-label {
    transition: none;
  }
}

@media (max-width: 767px) {
  html[data-theme="dark"] .about__globe-label {
    font: 600 9px/1 ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    letter-spacing: 0.1em;
    padding: 5px 7px 4px;
  }
}

html[data-theme="dark"] .about__globe::before,
html[data-theme="dark"] .about__globe::after {
  display: none;
}

html[data-theme="dark"] .about__video {
  display: none;
}

html[data-theme="dark"] .about__canvas {
  position: relative;
  z-index: 1;
  display: block !important;
  width: 100%;
  height: 100%;
  background: transparent !important;
  pointer-events: none;
  transform: none;
}

@media (max-width: 991px) {
  html[data-theme="dark"] .about__globe {
    height: 58%;
  }

  html[data-theme="dark"] .about__globe-stage {
    width: min(84vh, 92vw);
    height: min(84vh, 92vw);
    margin-bottom: -12vh;
    transform: translate3d(0, 30%, 0);
  }
}

@media (max-width: 767px) {
  html[data-theme="dark"] .about__globe {
    height: 72%;
  }

  html[data-theme="dark"] .about__globe-stage {
    width: min(68vh, 100vw);
    height: min(68vh, 100vw);
    margin-bottom: -4vh;
    transform: translate3d(0, 8%, 0);
  }
}

html[data-theme="dark"] .brain {
  z-index: 1;
  content-visibility: visible;
  margin-top: calc(-1 * clamp(5.5rem, 14vh, 9rem));
  padding-top: calc(clamp(4.5rem, 9vw, 7.5rem) + clamp(5.5rem, 14vh, 9rem));
}

html[data-theme="dark"] .brain::before,
html[data-theme="dark"] .brain::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

html[data-theme="dark"] .brain::before {
  top: 0;
  height: clamp(5.5rem, 16vh, 9rem);
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 42%, transparent 100%);
}

html[data-theme="dark"] .brain::after {
  bottom: 0;
  height: clamp(6rem, 18vh, 10rem);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 48%, #000 100%);
}

html[data-theme="dark"] .brain__sky {
  overflow: hidden;
}

html[data-theme="dark"] .brain__sky::before,
html[data-theme="dark"] .brain__sky::after {
  inset: -6%;
  background-repeat: unset;
  background-position: unset;
  background-size: unset;
  -webkit-mask-image: none;
  mask-image: none;
}

html[data-theme="dark"] .brain__sky::before {
  background-image:
    radial-gradient(1.2px 1.2px at 6% 8%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.35px 1.35px at 14% 22%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.15px 1.15px at 22% 6%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.4px 1.4px at 31% 18%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.2px 1.2px at 42% 4%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 58% 11%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.25px 1.25px at 71% 7%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.35px 1.35px at 83% 16%, rgba(255, 255, 255, 1), transparent),
    radial-gradient(1.15px 1.15px at 92% 5%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1.3px 1.3px at 4% 38%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.2px 1.2px at 18% 48%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.45px 1.45px at 88% 36%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.15px 1.15px at 96% 52%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.3px 1.3px at 8% 64%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.2px 1.2px at 12% 82%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.4px 1.4px at 28% 74%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1.25px 1.25px at 76% 68%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.35px 1.35px at 86% 80%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.15px 1.15px at 94% 72%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.3px 1.3px at 48% 88%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.2px 1.2px at 63% 92%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.4px 1.4px at 37% 96%, rgba(255, 255, 255, 0.6), transparent);
  opacity: 0.9;
  animation: quote-star-drift-a 22s linear infinite;
}

html[data-theme="dark"] .brain__sky::after {
  background:
    radial-gradient(1.85px 1.85px at 11% 14%, rgba(255, 255, 255, 1), transparent),
    radial-gradient(1.65px 1.65px at 78% 9%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.7px 1.7px at 91% 28%, rgba(255, 255, 255, 1), transparent),
    radial-gradient(1.55px 1.55px at 7% 58%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.8px 1.8px at 93% 62%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.6px 1.6px at 16% 88%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.7px 1.7px at 84% 91%, rgba(255, 255, 255, 1), transparent);
  opacity: 0.82;
  animation: quote-star-drift-b 14s linear infinite;
}

html[data-theme="dark"] .brain__pattern {
  opacity: 0;
}

/* ========== RESPONSIVE SYSTEM ========== */
@media (max-width: 767px) {
  .inline-heading__row {
    flex-wrap: wrap;
    white-space: normal;
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .inline-heading__text {
    white-space: normal;
  }

  .brain__heading .inline-heading__row,
  .areas__heading .inline-heading__row,
  .workforce__heading .inline-heading__row {
    flex-wrap: wrap;
    white-space: normal;
  }

  .c-home-header-module__slider {
    opacity: 0;
    pointer-events: none;
  }

  .c-home-header-module__slider-wrapper-outside {
    padding-top: 3.25rem;
    margin-top: 0.5rem;
  }

  .c-home-header-module__slider-top {
    width: min(22rem, 90vw);
    max-width: 90vw;
  }

  .c-home-header-module__slider-top .swiper-slide {
    width: min(22rem, 90vw);
    max-width: 90vw;
  }

  .c-home-header-module__slider-overlay {
    width: min(24rem, 94vw);
    max-width: 94vw;
  }

  .theme-toggle__opt {
    width: 2.5rem;
    height: 2.5rem;
  }

  html[data-theme="dark"] .pains {
    padding: clamp(3rem, 7vw, 4.5rem) var(--hero-inline, 1.15rem);
    padding-bottom: clamp(3.25rem, 8vw, 5rem);
  }

  html[data-theme="dark"] .brain {
    margin-top: 0;
    padding: clamp(3.25rem, 7vw, 5rem) var(--hero-inline, 1.15rem) clamp(3.5rem, 8vw, 5.5rem);
  }

  html[data-theme="dark"] .brain--seq {
    margin-top: calc(-1 * clamp(3.25rem, 9vh, 6rem));
    padding: 0;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  html[data-theme="dark"] .pains {
    padding: clamp(3.25rem, 6vw, 5rem) var(--hero-inline, 1.5rem);
    padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  }

  html[data-theme="dark"] .brain {
    margin-top: 0;
    padding: clamp(3.5rem, 6vw, 5.5rem) var(--hero-inline, 1.5rem) clamp(4rem, 8vw, 6rem);
  }

  html[data-theme="dark"] .brain--seq {
    margin-top: calc(-1 * clamp(3.5rem, 10vh, 7rem));
    padding: 0;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .hero__links {
    gap: 0.12rem;
  }

  .hero__links a {
    padding: 0.35rem 0.48rem;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
  }

  .hero__signin {
    padding: 0.38rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  #workforce-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1280px) and (max-width: 1599px) {
  #workforce-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  .pains__stage {
    min-height: clamp(680px, 78vh, 860px);
  }
}

@media (max-width: 1023px) {
  .hero__signin {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ========== SITE FOOTER (dotted field) ========== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: #000;
  color: #f4f4f2;
  font-family: "Schibsted Grotesk", var(--font-sans);
}

.site-footer__inner {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 1.25rem;
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.site-footer__logo {
  display: block;
  height: 2.6rem;
  width: auto;
}

.site-footer__logo--color {
  display: none;
}

.site-footer__brand span {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.75rem 2.5rem;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 7.5rem;
}

.site-footer__col a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  min-height: 1.75rem;
  transition: color 180ms ease;
}

.site-footer__col a:hover {
  color: #fff;
}

.site-footer__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.78rem;
}

.site-footer__dots {
  position: relative;
  width: 100%;
  height: clamp(200px, 30vw, 320px);
  margin-top: 0.5rem;
}

.site-footer__dots canvas {
  display: block;
  width: 100%;
  height: 100%;
}

html[data-theme="light"] .site-footer {
  background: #f4f3ee;
  color: #111;
}

html[data-theme="light"] .site-footer__brand {
  color: #111;
}

html[data-theme="light"] .site-footer__logo--white {
  display: none;
}

html[data-theme="light"] .site-footer__logo--color {
  display: block;
}

html[data-theme="light"] .site-footer__col a {
  color: rgba(17, 17, 17, 0.55);
}

html[data-theme="light"] .site-footer__col a:hover {
  color: #111;
}

html[data-theme="light"] .site-footer__meta {
  color: rgba(17, 17, 17, 0.4);
}

@media (max-width: 899px) {
  .site-footer__top {
    flex-direction: column;
    gap: 2rem;
  }

  .site-footer__nav {
    justify-content: flex-start;
    width: 100%;
    gap: 1.25rem 1.75rem;
  }

  .site-footer__col {
    min-width: 6.5rem;
  }

  .site-footer__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-top: 2rem;
  }
}

@media (max-width: 639px) {
  .site-footer__inner {
    width: min(100% - 2.3rem, 100%);
  }

  .site-footer__brand span {
    font-size: 1.2rem;
  }

  .site-footer__col a {
    font-size: 0.9rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .site-footer__dots {
    height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__col a {
    transition: none;
  }
}

/* ========== CONTACT MODAL ========== */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom));
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contact-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(20rem, 1.08fr);
  width: min(68rem, 100%);
  min-height: min(36rem, 86vh);
  max-height: min(92vh, 46rem);
  overflow: hidden;
  border-radius: 1.6rem;
  background: #fff;
  color: #111;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}

.contact-modal__visual {
  position: relative;
  min-height: 100%;
  background: #f3eee6;
}

.contact-modal__visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 42%;
}

.contact-modal__body {
  overflow: auto;
  padding: 1.85rem 1.9rem 1.7rem;
}

.contact-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  color: #111;
  cursor: pointer;
}

.contact-modal__close svg {
  width: 1.05rem;
  height: 1.05rem;
}

.contact-modal__kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff8300;
}

.contact-modal__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.contact-modal__lead {
  margin: 0.65rem 0 1.25rem;
  max-width: 32ch;
  color: rgba(17, 17, 17, 0.55);
  font-size: 0.95rem;
  line-height: 1.45;
}

.contact-modal__form {
  display: grid;
  gap: 0.75rem;
}

.contact-field {
  display: grid;
  gap: 0.32rem;
}

.contact-field span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.48);
}

.contact-field span em {
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.7;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 0.85rem;
  background: #f7f7f5;
  color: #111;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(255, 131, 0, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 131, 0, 0.16);
}

.contact-modal__submit {
  margin-top: 0.2rem;
  width: 100%;
  min-height: 3rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.contact-modal__note {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: #b50321;
}

.contact-modal__done {
  padding: 0.5rem 0 0.2rem;
}

.contact-modal__done-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff8300;
}

.contact-modal__done-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
}

.contact-modal__done-copy {
  margin: 0 0 1.4rem;
  color: rgba(17, 17, 17, 0.55);
}

body.contact-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .contact-modal {
    padding: 0.75rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    align-items: end;
  }

  .contact-modal__panel {
    grid-template-columns: 1fr;
    min-height: 0;
    max-height: min(94vh, 52rem);
    border-radius: 1.2rem;
    width: 100%;
  }

  .contact-modal__visual {
    height: 9.5rem;
  }

  .contact-modal__body {
    padding: 1.25rem 1.15rem 1.35rem;
  }

  .contact-modal__title {
    font-size: clamp(1.7rem, 6vw, 2.1rem);
  }

  .contact-modal__lead {
    max-width: none;
    font-size: 0.9rem;
  }
}

@media (max-width: 479px) {
  .contact-modal {
    padding: 0;
    align-items: stretch;
  }

  .contact-modal__panel {
    border-radius: 0;
    max-height: 100%;
    min-height: 100%;
  }

  .contact-modal__visual {
    height: 7.5rem;
  }

  .contact-modal__close {
    top: 0.65rem;
    right: 0.65rem;
    width: 2.75rem;
    height: 2.75rem;
  }
}


