/* MacLeod Technologies: design system
   Dark-first glass UI with a full light theme. Media sections (hero, tiles,
   CTA) always sit on dark footage, so they use fixed on-media colours. */

:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --fg: #f3f6ff;
  --fg-2: rgba(222, 230, 252, 0.74);
  --fg-3: rgba(196, 208, 240, 0.52);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --glass: rgba(16, 22, 40, 0.5);
  --glass-soft: rgba(255, 255, 255, 0.04);
  --glass-hi: rgba(255, 255, 255, 0.14);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.65);
  --input: rgba(255, 255, 255, 0.05);
  --btn-bg: #f5f7ff;
  --btn-fg: #05070d;
  --aurora-1: rgba(59, 108, 255, 0.22);
  --aurora-2: rgba(34, 211, 238, 0.12);
  --aurora-3: rgba(139, 92, 246, 0.14);

  --blue: #3b6cff;
  --aqua: #22d3ee;
  --violet: #8b5cf6;
  --grad: linear-gradient(120deg, #4f7bff 0%, #22d3ee 55%, #a78bfa 100%);
  --on-media: #ffffff;
  --on-media-2: rgba(236, 242, 255, 0.8);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --r-xl: 36px;
  --r-l: 28px;
  --r: 20px;
  --r-s: 14px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-2: #ffffff;
  --fg: #0a0f1c;
  --fg-2: rgba(20, 30, 56, 0.74);
  --fg-3: rgba(30, 44, 80, 0.52);
  --line: rgba(10, 20, 50, 0.08);
  --line-2: rgba(10, 20, 50, 0.14);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-soft: rgba(255, 255, 255, 0.55);
  --glass-hi: rgba(255, 255, 255, 0.85);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(10, 20, 50, 0.06);
  --shadow: 0 30px 70px -30px rgba(20, 40, 90, 0.28);
  --input: rgba(255, 255, 255, 0.8);
  --btn-bg: #0a0f1c;
  --btn-fg: #ffffff;
  --aurora-1: rgba(59, 108, 255, 0.14);
  --aurora-2: rgba(34, 211, 238, 0.12);
  --aurora-3: rgba(139, 92, 246, 0.1);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f6fb;
    --bg-2: #ffffff;
    --fg: #0a0f1c;
    --fg-2: rgba(20, 30, 56, 0.74);
    --fg-3: rgba(30, 44, 80, 0.52);
    --line: rgba(10, 20, 50, 0.08);
    --line-2: rgba(10, 20, 50, 0.14);
    --glass: rgba(255, 255, 255, 0.62);
    --glass-soft: rgba(255, 255, 255, 0.55);
    --glass-hi: rgba(255, 255, 255, 0.85);
    --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(10, 20, 50, 0.06);
    --shadow: 0 30px 70px -30px rgba(20, 40, 90, 0.28);
    --input: rgba(255, 255, 255, 0.8);
    --btn-bg: #0a0f1c;
    --btn-fg: #ffffff;
    --aurora-1: rgba(59, 108, 255, 0.14);
    --aurora-2: rgba(34, 211, 238, 0.12);
    --aurora-3: rgba(139, 92, 246, 0.1);
    color-scheme: light;
  }
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vw at 10% 20%, var(--aurora-1), transparent 60%),
    radial-gradient(50vw 40vw at 90% 30%, var(--aurora-2), transparent 60%),
    radial-gradient(60vw 50vw at 50% 110%, var(--aurora-3), transparent 60%);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

address {
  font-style: normal;
}

::selection {
  background: rgba(34, 211, 238, 0.35);
}

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

.sr-only,
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

[data-region="uk"] [data-only="org"] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow {
  max-width: 880px;
}

section {
  position: relative;
}

/* ------------------------------------------------------------ primitives */

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow: var(--glass-edge), var(--shadow);
  border: 1px solid var(--line);
}

.glass-soft {
  background: var(--glass-soft);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--line);
  box-shadow: var(--glass-edge);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font: 600 12px/1 var(--font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--grad);
}

.display {
  font-size: clamp(2.8rem, 7.6vw, 7.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 700;
}
.display--md {
  font-size: clamp(2.6rem, 6.4vw, 5.8rem);
}

.display-sub {
  margin-top: 18px;
  font: 600 clamp(1.3rem, 2.6vw, 2.1rem) / 1.2 var(--display);
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 24ch;
}

.headline {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.04;
}
.headline--sm {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 60ch;
}

.muted {
  color: var(--fg-3);
  font-size: 0.95rem;
  margin-top: 18px;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--fg);
}
.link svg {
  width: 18px;
  transition: transform 0.4s var(--ease-out);
}
a:hover .link svg,
.link:hover svg {
  transform: translateX(4px);
}

.sec-head {
  margin-bottom: clamp(36px, 5vw, 64px);
  max-width: 820px;
}
.sec-head .lead {
  margin-top: 18px;
}
.sec-head--center {
  text-align: center;
  margin-inline: auto;
}
.sec-head--center .lead {
  margin-inline: auto;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  --pad: 15px 24px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad);
  border-radius: 999px;
  font: 600 15px/1 var(--font);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.5s var(--ease-out), background-color 0.3s, box-shadow 0.4s, color 0.3s;
  will-change: transform;
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease-out);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn:active {
  transform: scale(0.97);
}
.btn--sm {
  --pad: 10px 16px;
  font-size: 14px;
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 10px 30px -10px rgba(59, 108, 255, 0.55);
}
.btn--primary:hover {
  box-shadow: 0 16px 44px -12px rgba(34, 211, 238, 0.6);
}

.btn--glass {
  color: var(--on-media);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.btn--glass:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn--ghost {
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn--ghost:hover {
  background: var(--glass-soft);
}

.btn--glow {
  color: var(--fg);
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box;
  border: 1px solid transparent;
}
.btn--glow:hover {
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12), 0 10px 30px -10px rgba(34, 211, 238, 0.5);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--fg);
  transition: background-color 0.25s, transform 0.3s var(--ease-out);
}
.icon-btn:hover {
  background: var(--glass-soft);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.cta-row--center {
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--on-media);
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  margin-bottom: 28px;
}
.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34f5c5;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #34f5c5;
  animation: ping 2s var(--ease-out) infinite;
}

/* The Mac AI orb: a slowly turning conic sphere. */
.orb {
  --s: 26px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  flex: none;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  isolation: isolate;
  box-shadow: 0 0 calc(var(--s) * 0.7) rgba(34, 211, 238, 0.45);
}
.orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #3b6cff, #22d3ee, #a78bfa, #f472b6, #3b6cff);
  animation: spin 7s linear infinite;
  filter: saturate(1.2);
}
.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 70% 80%, rgba(5, 7, 13, 0.35), transparent 60%);
}
.orb--xs {
  --s: 16px;
}
.orb--md {
  --s: 34px;
}
.orb--xl {
  --s: 84px;
  margin-bottom: 28px;
  animation: float 6s ease-in-out infinite;
}

/* ------------------------------------------------------------------- nav */

.nav {
  position: fixed;
  inset: 12px 0 auto;
  z-index: 50;
  padding-inline: 12px;
  pointer-events: none;
  transition: transform 0.5s var(--ease-out);
}
.nav.is-hidden {
  transform: translateY(-120%);
}
.nav__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  height: var(--nav-h);
  margin-inline: auto;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  background: rgba(10, 14, 26, 0.35);
  color: var(--on-media);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 50px -20px rgba(0, 0, 0, 0.5);
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.nav.is-solid .nav__bar {
  background: var(--glass);
  color: var(--fg);
  border-color: var(--line);
}
.nav__bar .icon-btn {
  color: inherit;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand img {
  width: 32px;
  height: 32px;
}
.brand__word {
  display: grid;
  line-height: 1;
}
.brand__word b {
  font: 800 18px/1 "Montserrat", var(--font);
  letter-spacing: -0.02em;
}
.brand__word small {
  font: 600 8.5px/1 "Montserrat", var(--font);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.75;
}
.brand--lg img {
  width: 44px;
  height: 44px;
}
.brand--lg .brand__word b {
  font-size: 24px;
}
.brand--lg .brand__word small {
  font-size: 10px;
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.nav__links a {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.82;
  transition: opacity 0.2s, background-color 0.25s;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}
.nav.is-solid .nav__links a:hover,
.nav.is-solid .nav__links a[aria-current="page"] {
  background: var(--glass-soft);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__cta {
  color: inherit;
  background: linear-gradient(rgba(10, 14, 26, 0.6), rgba(10, 14, 26, 0.6)) padding-box, var(--grad) border-box;
}
.nav.is-solid .nav__cta {
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box;
}

.i-moon {
  display: none;
}
:root[data-theme="light"] .i-sun {
  display: none;
}
:root[data-theme="light"] .i-moon {
  display: block;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .i-sun {
    display: none;
  }
  :root:not([data-theme="dark"]) .i-moon {
    display: block;
  }
}

.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.nav__burger span:first-child {
  top: 16px;
}
.nav__burger span:last-child {
  top: 23px;
}
.nav__burger[aria-expanded="true"] span:first-child {
  top: 19.5px;
  transform: rotate(45deg);
}
.nav__burger[aria-expanded="true"] span:last-child {
  top: 19.5px;
  transform: rotate(-45deg);
}

.mobile-menu {
  pointer-events: auto;
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 18px;
  border-radius: var(--r-l);
  display: grid;
  gap: 16px;
  animation: drop 0.45s var(--ease-out);
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu nav {
  display: grid;
}
.mobile-menu nav a {
  padding: 14px 8px;
  font: 600 1.4rem/1.1 var(--display);
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
}

/* ------------------------------------------------------------------ hero */

.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + 60px) 0 clamp(120px, 16vh, 170px);
  color: var(--on-media);
  isolation: isolate;
  overflow: hidden;
  background: #05070d;
}
.hero--page {
  min-height: 82svh;
  padding-bottom: clamp(56px, 10vh, 100px);
}
.hero--short {
  min-height: 64svh;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.bg-video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media .bg-video {
  transform: scale(calc(1.06 + var(--hero-p, 0) * 0.08)) translateY(calc(var(--hero-p, 0) * 6%));
  transform-origin: center 30%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.62) 0%, rgba(5, 7, 13, 0.2) 55%, transparent 80%),
    radial-gradient(120% 80% at 20% 100%, rgba(5, 7, 13, 0.85), transparent 60%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.55) 0%, rgba(5, 7, 13, 0.15) 35%, rgba(5, 7, 13, 0.55) 70%, #05070d 100%);
}
.hero__scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__content {
  position: relative;
}
.hero__content .display {
  max-width: 13ch;
}
.hero--page .hero__content .display {
  max-width: 16ch;
}
.hero__content .lead {
  color: var(--on-media-2);
  margin-top: 26px;
}
.hero__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--on-media-2);
}
.crumbs a:hover {
  color: var(--on-media);
}
.crumbs > * + *::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}

/* Word-by-word title reveal */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.w > span {
  display: inline-block;
  background: linear-gradient(180deg, #fff 40%, #c9d6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.js [data-split] .w > span {
  transform: translateY(108%) rotate(4deg);
  transform-origin: left bottom;
  transition: transform 1.2s var(--ease-out) calc(var(--i) * 55ms + 0.1s);
}
.js [data-split].is-in .w > span {
  transform: none;
}

/* Marquee */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee__track > div {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}
.marquee span {
  font: 500 13px/1 var(--font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-media-2);
  white-space: nowrap;
}
.marquee i {
  font-style: normal;
  font-size: 10px;
  color: var(--aqua);
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* ------------------------------------------------------------- statement */

.statement {
  padding: clamp(100px, 16vw, 200px) 0;
}
.statement__text {
  font: 600 clamp(1.7rem, 4.1vw, 3.5rem) / 1.14 var(--display);
  letter-spacing: -0.035em;
  max-width: 30ch;
}
.statement__text .sw {
  opacity: 0.16;
  transition: opacity 0.35s linear;
}
.statement__text .sw.on {
  opacity: 1;
}

/* ----------------------------------------------------------------- bento */

.services-home,
.research-home,
.engage,
.outcomes,
.faq-sec,
.related,
.index-list,
.library,
.contact,
.pillars {
  padding: clamp(60px, 9vw, 120px) 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}
.bento--three {
  grid-auto-rows: 180px;
}

.tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-l);
  background: #0b1120;
  color: var(--on-media);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  transform: translateZ(0);
}
.tile--lg {
  grid-column: span 7;
  grid-row: span 3;
}
.tile--md {
  grid-column: span 5;
  grid-row: span 3;
}
.tile--half {
  grid-column: span 6;
  grid-row: span 3;
}
.tile--sm {
  grid-column: span 4;
  grid-row: span 2;
}
.tile__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.tile__media img,
.tile__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease-out), filter 0.6s;
}
.tile:hover .tile__media img,
.tile:hover .tile__media video {
  transform: scale(1.08);
}
.tile__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.05) 15%, rgba(5, 7, 13, 0.62) 55%, rgba(5, 7, 13, 0.95) 100%);
}
.tile__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(20px, 2.4vw, 32px);
}
.tile__kicker {
  display: inline-block;
  font: 600 11.5px/1 var(--font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 12px;
}
.tile h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
}
.tile--sm h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
}
.tile p {
  margin-top: 10px;
  color: var(--on-media-2);
  max-width: 40ch;
  font-size: 0.98rem;
}
/* Spotlight that follows the pointer on glass and tiles */
[data-spotlight] {
  --mx: 50%;
  --my: 50%;
}
[data-spotlight]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.12), transparent 45%);
}
[data-spotlight]:hover::after {
  opacity: 1;
}

/* ----------------------------------------------------------------- story */

.story {
  padding: clamp(60px, 9vw, 120px) 0;
}
.story__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.story__stage {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
  height: min(72vh, 640px);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #0b1120;
}
.story__media {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.9s var(--ease), transform 1.6s var(--ease-out);
}
.story__media.is-active {
  opacity: 1;
  transform: none;
}
.story__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story__progress {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.story__progress span {
  display: block;
  height: 100%;
  width: calc(var(--story-p, 0) * 100%);
  background: var(--grad);
  border-radius: inherit;
}
.story__steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.story__step {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.28;
  transition: opacity 0.6s var(--ease);
}
.story__step.is-active {
  opacity: 1;
}
.story__n {
  font: 600 13px/1 var(--font);
  letter-spacing: 0.2em;
  color: var(--aqua);
  margin-bottom: 18px;
}
.story__step h3 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 18px;
}
.story__step p {
  color: var(--fg-2);
  font-size: 1.15rem;
  max-width: 42ch;
}

/* -------------------------------------------------------------- showcase */

.showcase {
  padding: clamp(60px, 9vw, 120px) 0;
}
.showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.showcase .lead {
  margin-top: 22px;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--fg-2);
}
.ticks li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E") center/contain, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.device {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 50px 100px -40px rgba(34, 211, 238, 0.35);
}
.device__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.device__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.1), rgba(5, 7, 13, 0.6));
}
.device__screen {
  position: absolute;
  inset: auto 22px 22px 22px;
  padding: 18px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 62%;
  justify-content: flex-end;
  background: rgba(10, 14, 26, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--on-media);
}
.demo-msg {
  max-width: 86%;
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.demo-msg.show {
  opacity: 1;
  transform: none;
}
.demo-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #3b6cff, #2a8cff);
  border-bottom-right-radius: 6px;
}
.demo-msg--ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.12);
  border-bottom-left-radius: 6px;
}
.no-js .demo-msg,
:root:not(.js) .demo-msg {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------- pillars */

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pillar {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--r-l);
  display: grid;
  gap: 10px;
  align-content: start;
}
.pillar strong {
  font: 700 clamp(2.2rem, 3.6vw, 3.2rem) / 1 var(--display);
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pillar span {
  color: var(--fg-2);
  font-size: 0.98rem;
}

/* ---------------------------------------------------------------- engage */

.engage__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.engage__card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 30px 28px 32px;
  border-radius: var(--r-xl);
  overflow: hidden;
}
.engage__card--lead {
  box-shadow: var(--glass-edge), inset 0 0 0 1px color-mix(in srgb, var(--blue) 60%, transparent);
}
.engage__tag {
  justify-self: start;
  font: 600 0.72rem / 1 var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.engage__card h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  letter-spacing: -0.02em;
}
.engage__card > p {
  color: var(--fg-2);
}
.engage__card ul {
  list-style: none;
  padding: 14px 0 0;
  margin: 4px 0 0;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line-2);
  font-size: 0.95rem;
}
.engage__card li {
  display: flex;
  gap: 10px;
}
.engage__card li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}
.engage__note {
  margin-top: 28px;
  color: var(--fg-2);
  text-align: center;
}

.flag {
  --f: 44px;
  margin-top: -52px;
  margin-bottom: 10px;
}
.place__body h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}
.place__body p {
  color: var(--fg-2);
}

.flag {
  --f: 36px;
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--f);
  height: var(--f);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 0 3px rgba(10, 20, 50, 0.12), 0 8px 18px -6px rgba(0, 0, 0, 0.45);
}
.flag svg {
  width: 100%;
  height: 100%;
}
.flag::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 50%);
}

/* ---------------------------------------------------------------- papers */

.papers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.paper {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.paper__media {
  aspect-ratio: 16 / 8;
  overflow: hidden;
}
.paper__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.paper:hover .paper__media img {
  transform: scale(1.05);
}
.paper__body {
  padding: 26px 28px 30px;
  display: grid;
  gap: 12px;
}
.paper__body .tile__kicker {
  margin: 0;
}
.paper__body h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}
.paper__body p {
  color: var(--fg-2);
}

/* ------------------------------------------------------------------- faq */

.faq {
  display: grid;
  gap: 12px;
}
.faq__item {
  border-radius: var(--r);
  overflow: hidden;
  transition: background-color 0.3s;
}
.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item h3 {
  flex: 1;
  font: 600 1.1rem/1.35 var(--font);
  letter-spacing: -0.01em;
}
.faq__icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  translate: -50% -50%;
}
.faq__icon::after {
  rotate: 90deg;
  transition: rotate 0.4s var(--ease-out);
}
.faq__item[open] .faq__icon {
  transform: rotate(180deg);
  background: var(--glass-soft);
}
.faq__item[open] .faq__icon::after {
  rotate: 0deg;
}
.faq__a {
  padding: 0 24px 24px;
  color: var(--fg-2);
  max-width: 70ch;
}
.faq__item[open] .faq__a {
  animation: fade-up 0.5s var(--ease-out);
}

/* ------------------------------------------------------------------- cta */

.cta {
  min-height: 86svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--on-media);
  overflow: hidden;
  isolation: isolate;
  padding: 120px 0;
  background: #05070d;
}
.cta__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cta__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 50%, rgba(5, 7, 13, 0.35), rgba(5, 7, 13, 0.92)), linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, #05070d 100%);
}
.cta__inner .lead {
  margin: 24px auto 0;
  color: var(--on-media-2);
}
.cta__inner .display {
  max-width: 14ch;
  margin-inline: auto;
}
.cta__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 40px;
  color: var(--on-media-2);
  font-size: 15px;
}
.cta__contact a,
.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
}
.cta__contact a:hover {
  color: var(--on-media);
}
.cta__contact svg,
.footer__contact svg {
  width: 18px;
  height: 18px;
}

/* ------------------------------------------------------- cards and lists */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  position: relative;
  padding: 30px 26px 32px;
  border-radius: var(--r-l);
  display: grid;
  gap: 14px;
  align-content: start;
  transition: transform 0.6s var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
}
.card__n {
  font: 600 12px/1 var(--font);
  letter-spacing: 0.2em;
  color: var(--aqua);
}
.card h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.card p {
  color: var(--fg-2);
  font-size: 0.98rem;
}

.split {
  padding: clamp(60px, 9vw, 120px) 0;
}
.split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.split__media {
  position: relative;
  margin: 0;
  aspect-ratio: 5 / 6;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: 0;
}
.split__media img,
.split__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split .lead {
  margin-top: 20px;
}
.split .btn {
  margin-top: 30px;
}
.deliverables {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.deliverables li {
  padding: 14px 16px;
  border-radius: var(--r-s);
  background: var(--glass-soft);
  box-shadow: var(--glass-edge);
  font-size: 0.95rem;
  font-weight: 500;
}

.rows {
  border-top: 1px solid var(--line);
}
.row {
  display: grid;
  grid-template-columns: 70px 1fr 48px;
  align-items: center;
  gap: 16px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s, padding 0.5s var(--ease-out);
}
.row:hover {
  background: var(--glass-soft);
  padding-inline: 20px;
}
.row__n {
  font: 600 13px/1 var(--font);
  letter-spacing: 0.16em;
  color: var(--fg-3);
}
.row__t {
  display: grid;
  gap: 4px;
}
.row__t strong {
  font: 600 clamp(1.3rem, 2.2vw, 1.8rem) / 1.15 var(--display);
  letter-spacing: -0.025em;
}
.row__t small {
  color: var(--fg-2);
  font-size: 0.98rem;
}
.row__go {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.row__go svg {
  width: 18px;
}
.row:hover .row__go {
  background: var(--btn-bg);
  color: var(--btn-fg);
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------------ tiles: go arrow */

.tile__go {
  position: absolute;
  top: clamp(16px, 2vw, 24px);
  right: clamp(16px, 2vw, 24px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.6s var(--ease-out), background-color 0.3s, color 0.3s;
}
.tile__go svg {
  width: 18px;
}
.tile:hover .tile__go {
  transform: rotate(-45deg);
  background: #fff;
  color: #05070d;
}

/* ------------------------------------------------------------------ mac ai page */

.hero--ai {
  align-items: center;
  padding-bottom: 80px;
}
.ai-stage {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.ai-stage__copy .lead {
  margin-top: 22px;
  color: var(--on-media-2);
}
.ai-stage__chat {
  height: min(640px, 72svh);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: rgba(10, 14, 26, 0.5);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--on-media);
  --fg: #f3f6ff;
  --fg-2: rgba(222, 230, 252, 0.74);
  --fg-3: rgba(196, 208, 240, 0.52);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.16);
  --glass-soft: rgba(255, 255, 255, 0.06);
  --input: rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------- research */

.library__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
  align-items: start;
}
.library__list {
  display: grid;
  gap: 12px;
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}
.lib-item {
  display: grid;
  gap: 8px;
  text-align: left;
  padding: 20px;
  border-radius: var(--r);
  transition: transform 0.4s var(--ease-out), box-shadow 0.3s, background-color 0.3s;
}
.lib-item strong {
  font: 600 1.15rem/1.25 var(--display);
  letter-spacing: -0.02em;
}
.lib-item small {
  color: var(--fg-2);
  font-size: 0.9rem;
  line-height: 1.45;
}
.lib-item .tile__kicker {
  margin: 0;
}
.lib-item:hover {
  transform: translateY(-2px);
}
.lib-item.is-active {
  background: linear-gradient(var(--glass-hi), var(--glass-hi)) padding-box, var(--grad) border-box;
  border: 1px solid transparent;
}
:root:not([data-theme="light"]) .lib-item.is-active {
  background: linear-gradient(rgba(20, 28, 50, 0.9), rgba(20, 28, 50, 0.9)) padding-box, var(--grad) border-box;
}
.reader {
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.reader__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 18px 26px;
  border-bottom: 1px solid var(--line);
}
.reader__meta {
  flex: 1;
  min-width: 0;
}
.reader__meta .tile__kicker {
  margin-bottom: 6px;
}
.reader__meta h2 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reader__tools {
  display: flex;
  gap: 4px;
}
.reader__tools [hidden] {
  display: none;
}
.reader__frame {
  position: relative;
  height: 80vh;
  background: #1c2230;
}
.reader__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.reader:fullscreen {
  border-radius: 0;
  background: var(--bg);
}
.reader:fullscreen .reader__frame {
  height: auto;
  flex: 1;
}

/* ---------------------------------------------------------------- contact */

.contact__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  align-items: start;
}
.form {
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--r-xl);
  display: grid;
  gap: 18px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-s);
  border: 1px solid var(--line-2);
  background: var(--input);
  font-size: 16px;
  font-weight: 400;
  color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23889' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.form select option {
  color: #0a0f1c;
}
.form textarea {
  resize: vertical;
  min-height: 140px;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--aqua);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15);
}
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.form__status {
  font-size: 14px;
  color: var(--fg-2);
}
.form__status.is-ok {
  color: #34d399;
}
.form__status.is-err {
  color: #fb7185;
}

.contact__side {
  display: grid;
  gap: 12px;
}
.contact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--r-l);
  text-align: left;
  transition: transform 0.5s var(--ease-out);
}
.contact-card:hover {
  transform: translateY(-3px);
}
.contact-card > svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--aqua);
}
.contact-card span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.contact-card small {
  color: var(--fg-3);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.contact-card strong {
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
.contact__offices {
  padding: 24px;
  border-radius: var(--r-l);
  display: grid;
  gap: 22px;
}

.office {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.office__body {
  display: grid;
  gap: 2px;
  font-size: 0.95rem;
  color: var(--fg-2);
}
.office__body strong {
  color: var(--fg);
  font-weight: 600;
  margin-bottom: 4px;
}

/* ----------------------------------------------------------------- footer */

.footer {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 110px) 0 36px;
  border-top: 1px solid var(--line);
}
.footer__glow {
  position: absolute;
  inset: -40% 10% auto;
  height: 400px;
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(59, 108, 255, 0.16), transparent 70%);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 0.8fr;
  gap: 48px;
}
.footer__brand p {
  margin-top: 22px;
  color: var(--fg-2);
  max-width: 44ch;
}
.footer__contact {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  font-weight: 500;
}
.footer__contact a:hover {
  color: var(--aqua);
}
.footer__col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 10px 20px;
}
.footer__col:last-child {
  grid-template-columns: 1fr;
}
.footer__col h2 {
  grid-column: 1 / -1;
  font: 600 12px/1 var(--font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 8px;
}
.footer__col a {
  color: var(--fg-2);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer__col a:hover {
  color: var(--fg);
}
.footer__offices {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 56px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.footer__offices .flag {
  --f: 40px;
}
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 40px;
  font-size: 13px;
  color: var(--fg-3);
}
.footer__domains {
  display: flex;
  gap: 18px;
}
.footer__domains a:hover {
  color: var(--fg);
}

/* ------------------------------------------------------------- mac ai chat */

.mac-ai {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
}
.mac-ai__launcher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
  animation: rise 0.9s var(--ease-out) 1.2s both;
}
.mac-ai__launcher .orb {
  --s: 34px;
}
.mac-ai__launcher:hover {
  transform: translateY(-2px) scale(1.02);
}
.mac-ai.is-open .mac-ai__launcher {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}
.mac-ai__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(420px, calc(100vw - 32px));
  height: min(660px, calc(100svh - 110px));
  border-radius: var(--r-xl);
  overflow: hidden;
  transform-origin: bottom right;
  animation: pop 0.55s var(--ease-out);
}
.mac-ai__panel[hidden] {
  display: none;
}

.chat {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 18px;
  border-bottom: 1px solid var(--line);
}
.chat__title {
  flex: 1;
  display: grid;
  line-height: 1.2;
}
.chat__title strong {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: -0.01em;
}
.chat__title small {
  color: var(--fg-3);
  font-size: 12px;
}
.chat__log {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.msg {
  max-width: 88%;
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  animation: fade-up 0.45s var(--ease-out);
}
.msg p + p,
.msg ul {
  margin-top: 8px;
}
.msg ul {
  padding-left: 18px;
  margin-bottom: 0;
}
.msg a {
  color: var(--aqua);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.msg--user {
  align-self: flex-end;
  color: #fff;
  background: linear-gradient(135deg, #3b6cff, #2a8cff);
  border-bottom-right-radius: 6px;
}
.msg--ai {
  align-self: flex-start;
  background: var(--glass-soft);
  box-shadow: var(--glass-edge);
  border-bottom-left-radius: 6px;
}
.msg--note {
  align-self: center;
  max-width: 100%;
  font-size: 12.5px;
  color: var(--fg-3);
  background: none;
  text-align: center;
}
.typing {
  display: inline-flex;
  gap: 5px;
  padding: 16px 18px;
}
.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg-3);
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
.chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 12px;
}
.chat__chips[hidden] {
  display: none;
}
.chat__chips button {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color 0.2s, color 0.2s;
}
.chat__chips button:hover {
  background: var(--glass-soft);
  color: var(--fg);
}
.chat__form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 12px;
  padding: 8px 8px 8px 16px;
  border-radius: 24px;
  background: var(--input);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.2s;
}
.chat__form:focus-within {
  box-shadow: inset 0 0 0 1px var(--aqua), 0 0 0 4px rgba(34, 211, 238, 0.12);
}
.chat__form textarea {
  flex: 1;
  resize: none;
  border: 0;
  outline: 0;
  background: none;
  padding: 8px 0;
  max-height: 140px;
  font-size: 15px;
  line-height: 1.45;
}
.chat__send {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.chat__send svg {
  width: 18px;
}
.chat__send:disabled {
  opacity: 0.45;
  cursor: default;
}
.chat__send:not(:disabled):hover {
  transform: scale(1.06);
}
.chat__note {
  padding: 10px 18px 14px;
  font-size: 11.5px;
  color: var(--fg-3);
  text-align: center;
}
.chat__note a {
  text-decoration: underline;
}
.handover {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: var(--glass-soft);
  box-shadow: var(--glass-edge);
  animation: fade-up 0.45s var(--ease-out);
}
.handover strong {
  font-size: 14px;
}
.handover input,
.handover textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--input);
  font-size: 14px;
}
.handover textarea {
  min-height: 70px;
  resize: vertical;
}
.handover .btn {
  justify-self: start;
}

/* -------------------------------------------------------------- motion */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  filter: blur(8px);
  transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.2s var(--ease-out) var(--d, 0s), filter 1s var(--ease-out) var(--d, 0s);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}
.bento [data-reveal]:nth-child(3n + 2) {
  --d: 0.08s;
}
.bento [data-reveal]:nth-child(3n) {
  --d: 0.16s;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ping {
  75%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}
@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal],
  .js [data-split] .w > span {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .statement__text .sw {
    opacity: 1;
  }
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .nav__links {
    display: none;
  }
  .nav__burger {
    display: block;
  }
  .nav__actions {
    margin-left: auto;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .pillars__grid,
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .library__grid {
    grid-template-columns: 1fr;
  }
  .library__list {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .tile,
  .tile--lg,
  .tile--md,
  .tile--half,
  .tile--sm {
    grid-column: span 2;
    grid-row: auto;
    min-height: 380px;
  }
  .tile--sm {
    grid-column: span 1;
    min-height: 320px;
  }
  .story__grid,
  .showcase__grid,
  .split__grid,
  .ai-stage,
  .contact__grid,
  .engage__grid,
  .papers {
    grid-template-columns: 1fr;
  }
  .story__stage {
    top: calc(var(--nav-h) + 24px);
    height: 44vh;
    z-index: 1;
  }
  .story__step {
    min-height: 56vh;
  }
  .split__media {
    aspect-ratio: 4 / 3;
  }
  .ai-stage__chat {
    height: 70svh;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 56px;
  }
  .nav__cta {
    display: none;
  }
  .nav__bar {
    padding-left: 14px;
  }
  .tile--sm {
    grid-column: span 2;
  }
  .pillars__grid,
  .cards,
  .cards--3,
  .form__row,
  .deliverables,
  .library__list {
    grid-template-columns: 1fr;
  }
  .footer__top {
    grid-template-columns: 1fr;
  }
  .row {
    grid-template-columns: 40px 1fr 40px;
    gap: 12px;
  }
  .hero {
    padding-bottom: 120px;
  }
  .hero__scrim {
    background: linear-gradient(180deg, rgba(5, 7, 13, 0.55) 0%, rgba(5, 7, 13, 0.45) 40%, rgba(5, 7, 13, 0.8) 75%, #05070d 100%);
  }
  .cta-row .btn {
    flex: 1 1 auto;
  }
  .mac-ai__launcher span:last-child {
    display: none;
  }
  .mac-ai__launcher {
    padding: 10px;
  }
  .mac-ai__panel {
    position: fixed;
    inset: auto 8px 8px 8px;
    width: auto;
    height: min(78svh, 640px);
  }
  .reader__frame {
    height: 70vh;
  }
}
