:root {
  --color-bg: #faf9f6;
  --color-text: #1a1a1a;
  --color-muted: #6b6b6b;
  --bar-bg: #1a1a1a;
  --bar-text: #faf9f6;
  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", sans-serif;

  /* Top bar colors (overridden on dark hero pages) */
  --header-text: var(--color-text);
  --header-hover-bg: rgba(26, 26, 26, 0.92);
  --header-hover-text: var(--bar-text);

  /* Hero phrase colors (overridden on dark hero pages) */
  --phrase-title-color: var(--color-text);
  --phrase-subtitle-color: var(--color-muted);
}

/* Pages with the animated gradient hero have a dark background,
   so the top bar and phrases need light text by default. */
body.gradient-hero {
  --header-text: #f5f4ee;
  --header-hover-bg: rgba(250, 249, 246, 0.94);
  --header-hover-text: #1a1a1a;
  --phrase-title-color: #f5f4ee;
  --phrase-subtitle-color: #b9bcc9;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

/* Top bar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
  transition:
    background-color 0.4s ease,
    backdrop-filter 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.35s ease;
}

.topbar:hover {
  background-color: var(--header-hover-bg);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Hidden while scrolling down */
.topbar--hidden {
  transform: translateY(-100%);
}

/* Solid white background while scrolling back up */
.topbar--solid,
.topbar--solid:hover {
  background-color: var(--color-bg);
  backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.08);
}

.topbar--solid .topbar-inner,
.topbar--solid:hover .topbar-inner {
  color: var(--color-text);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  color: var(--header-text);
  transition: color 0.4s ease;
}

.topbar:hover .topbar-inner {
  color: var(--header-hover-text);
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-tagline {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}

.topbar nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.topbar nav a {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0.2rem;
}

.topbar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.topbar nav a:hover::after {
  width: 100%;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* Language switcher */
.lang-switcher {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
  padding: 0.4rem 0.2rem;
}

.lang-caret {
  width: 0.6rem;
  height: 0.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.lang-switcher.open .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  list-style: none;
  min-width: 6rem;
  background-color: var(--color-bg);
  color: var(--color-text);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.lang-switcher.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.lang-menu a:hover {
  background-color: rgba(26, 26, 26, 0.06);
}

.lang-menu a.active {
  font-weight: 700;
  color: var(--bar-bg);
}

.is-hidden {
  display: none !important;
}

/* Creating New Connections graphic (standalone embed) */
.connections-graphic {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.connections-graphic-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--color-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-phrases {
  position: absolute;
  left: clamp(2rem, 6vw, 5rem);
  top: 60%;
  transform: translateY(-50%);
  max-width: 90%;
  z-index: 1;
}

.phrase {
  position: absolute;
  left: 0;
  bottom: 0;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 1s ease,
    transform 1s ease;
  white-space: nowrap;
}

.phrase.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.phrase-title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--phrase-title-color);
}

.phrase-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--phrase-subtitle-color);
  margin-top: 0.5rem;
}

/* Connection banner: a plain white section with a single heading,
   crossed by a diagonal dark gold/red light beam (like a streak in space). */
.connection-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32vh;
  padding: 5rem 2rem;
  background-color: var(--color-bg);
  overflow: hidden;
}

.connection-banner-beam {
  position: absolute;
  inset: -30%;
  z-index: 0;
  background: linear-gradient(
    115deg,
    transparent 36%,
    rgba(12, 8, 7, 0.92) 46%,
    rgba(168, 38, 26, 0.8) 50%,
    rgba(231, 187, 95, 0.9) 54%,
    rgba(12, 8, 7, 0.92) 58%,
    transparent 68%
  );
  filter: blur(45px);
  animation: connectionBannerBeam 16s ease-in-out infinite;
  pointer-events: none;
}

@keyframes connectionBannerBeam {
  0%,
  100% {
    transform: translate3d(-6%, -4%, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(6%, 4%, 0) rotate(2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .connection-banner-beam {
    animation: none;
  }
}

.connection-banner-heading {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  text-align: center;
}

/* Connections section */
.connections {
  position: relative;
  background-color: var(--color-bg);
  padding: 8rem 2rem;
  overflow: hidden;
}

.connections-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* Diffused color blobs: a light-blue and a yellow sphere drift around the
   section, occasionally overlapping. mix-blend-mode: multiply makes the
   overlap read as green, so the pair blends and separates as they move. */
.connections-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.connections-blob {
  position: absolute;
  width: clamp(260px, 30vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.85;
  mix-blend-mode: multiply;
  will-change: transform;
}

.connections-blob--blue {
  top: 5%;
  left: 6%;
  background: radial-gradient(circle at 35% 35%, #a9d6ff, #4aa6ff 60%, transparent 75%);
  animation: connectionsBlobBlue 12s ease-in-out infinite;
}

.connections-blob--green {
  top: 28%;
  right: 8%;
  background: radial-gradient(circle at 60% 40%, #c8f5d8, #4ade80 60%, transparent 75%);
  animation: connectionsBlobGreen 12s ease-in-out infinite;
}

/* Both animations share a duration so the blobs reliably swing toward each
   other (and overlap) at the midpoint of every cycle, then drift apart
   again toward the ends. */
@keyframes connectionsBlobBlue {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20vw, 14vh) scale(1.1);
  }
}

@keyframes connectionsBlobGreen {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-20vw, -10vh) scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .connections-blob {
    animation: none;
  }
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2f6bf0;
  margin-bottom: 1.5rem;
}

.connections-heading {
  position: relative;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 3rem;
}

.connections-text {
  position: relative;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 36rem;
  margin-left: auto;
}

/* Stacked service cards */
.stack {
  position: relative;
  background-color: var(--color-bg);
}

.stack-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 2rem;
}

.stack-heading {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
  color: var(--color-text);
}

.stack-item {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}

.stack-item:nth-child(1) {
  z-index: 1;
}
.stack-item:nth-child(2) {
  z-index: 2;
}
.stack-item:nth-child(3) {
  z-index: 3;
}
.stack-item:nth-child(4) {
  z-index: 4;
}

.stack-card {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 4rem 2rem;
  background-color: var(--color-bg);
  box-shadow: 0 -24px 48px rgba(26, 26, 26, 0.05);
}

.stack-graphic {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 1.5rem;
  overflow: hidden;
  background-color: #f4f2ec;
}

.stack-graphic svg {
  display: block;
  width: 100%;
  height: 100%;
}

.stack-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #2f6bf0;
  margin-bottom: 1rem;
}

.stack-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.stack-subtitle {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

.stack-description {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 38rem;
  margin-bottom: 2rem;
}

/* Palettes for the moving "window" backgrounds behind the tags */
.stack-card.palette-1 {
  --tag-c1: #4aa6ff;
  --tag-c2: #8b5cf6;
  --tag-c3: #ffb347;
}
.stack-card.palette-2 {
  --tag-c1: #34d399;
  --tag-c2: #60a5fa;
  --tag-c3: #fde047;
}
.stack-card.palette-3 {
  --tag-c1: #2dd4bf;
  --tag-c2: #f472b6;
  --tag-c3: #fbbf24;
}
.stack-card.palette-4 {
  --tag-c1: #60a5fa;
  --tag-c2: #34d399;
  --tag-c3: #c4b5fd;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.stack-tags li {
  position: relative;
  z-index: 0;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: 999px;
  color: var(--color-text);
}

.stack-tags li::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -16px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    radial-gradient(circle at 30% 30%, var(--tag-c1) 0%, transparent 55%),
    radial-gradient(circle at 75% 65%, var(--tag-c2) 0%, transparent 55%),
    radial-gradient(circle at 40% 85%, var(--tag-c3) 0%, transparent 55%);
  background-size:
    100% 100%,
    200vw 200vh,
    200vw 200vh,
    200vw 200vh;
  background-attachment: local, fixed, fixed, fixed;
  filter: blur(10px) saturate(140%);
  animation: tag-bg-move 18s ease-in-out infinite;
}

@keyframes tag-bg-move {
  0% {
    background-position:
      0 0,
      0% 0%,
      100% 0%,
      50% 100%;
  }
  50% {
    background-position:
      0 0,
      100% 100%,
      0% 100%,
      50% 0%;
  }
  100% {
    background-position:
      0 0,
      0% 0%,
      100% 0%,
      50% 100%;
  }
}

@media (max-width: 860px) {
  .stack-item {
    position: relative;
    height: auto;
    padding: 3rem 0;
  }

  .stack-card {
    grid-template-columns: 1fr;
    box-shadow: none;
    padding: 0 1.5rem;
  }
}

/* Who We Are */
.who-we-are {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url("images/studio_table.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.who-we-are-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 26, 0.65) 0%,
    rgba(10, 14, 26, 0.4) 60%,
    rgba(10, 14, 26, 0.55) 100%
  );
}

.who-we-are-inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem;
}

.who-we-are-heading {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1.1;
  color: #f5f4ee;
  margin-bottom: 2.5rem;
}

.who-we-are-text {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: rgba(245, 244, 238, 0.92);
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

.who-we-are-text:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .who-we-are {
    background-attachment: scroll;
  }
}

/* Simple inner pages */
.page {
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.page h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
}

/* Article pages */
.article-page {
  padding-top: 8rem;
}

.article {
  max-width: 760px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 3rem;
}

.article-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2f6bf0;
  margin-bottom: 1.5rem;
}

.article-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.article-lead {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--color-muted);
}

.article-body h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  line-height: 1.25;
  color: var(--color-text);
  margin: 3rem 0 1.25rem;
}

.article-body h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin: 2rem 0 1rem;
}

.article-body h2:first-child,
.article-body h3:first-child {
  margin-top: 0;
}

.article-body p {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-muted);
  margin: 0 0 1.25rem 1.4rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body strong {
  color: var(--color-text);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: 0.75rem;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.article-body th,
.article-body td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.article-body thead th {
  font-weight: 600;
  color: var(--color-text);
  background-color: #f4f2ec;
}

.article-body td {
  color: var(--color-muted);
}

.article-body tbody tr:last-child td {
  border-bottom: none;
}

.article-disclaimer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Soci (Partners) section */
.soci {
  position: relative;
  background-color: var(--color-bg);
  padding: 6rem 2rem;
  overflow: hidden;
}

.soci-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.soci-header {
  margin-bottom: 3rem;
}

.soci-heading {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
  color: var(--color-text);
  max-width: 32rem;
}

.soci-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.soci-card {
  display: flex;
  flex-direction: column;
}

.soci-photo-wrap {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background-color: #f4f2ec;
  margin-bottom: 1.5rem;
}

.soci-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  transition: opacity 0.5s ease 0.1s;
}

.soci-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #3fb88a 0%, #2f6bf0 52%, #f0a23a 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.soci-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.45s ease 0.3s,
    transform 0.45s ease 0.3s;
}

.soci-photo-wrap:hover .soci-gradient {
  opacity: 1;
}

.soci-photo-wrap:hover .soci-photo {
  opacity: 0;
}

.soci-photo-wrap:hover .soci-overlay {
  opacity: 1;
  transform: translateY(0);
}

.soci-role {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2f6bf0;
  margin-bottom: 0.5rem;
}

.soci-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--color-text);
}

.soci-bio {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 1.25rem;
}

.soci-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.soci-tags li {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #fff;
}

@media (max-width: 860px) {
  .soci-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

/* Insights section */
.insights {
  position: relative;
  background-color: var(--color-bg);
  padding: 6rem 2rem 8rem;
}

.insights-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.insights-header {
  margin-bottom: 3rem;
}

.insights-heading {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
  color: var(--color-text);
  max-width: 32rem;
}

.insights-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  height: clamp(420px, 44vw, 560px);
}

.insights-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.insight-card {
  display: block;
  height: 100%;
  perspective: 1000px;
  text-decoration: none;
  color: inherit;
}

.insights-side .insight-card {
  flex: 1 1 0;
  min-height: 0;
}

.insight-card-inner {
  position: relative;
  height: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  background-color: #0e0f18;
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 20px 50px rgba(26, 26, 26, 0.08);
  transform-style: preserve-3d;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}

.insight-card:hover .insight-card-inner {
  transform: rotateX(4deg) rotateY(-7deg) translateY(-8px) scale(1.02);
  border-color: rgba(47, 107, 240, 0.35);
  box-shadow:
    0 32px 70px rgba(26, 26, 26, 0.18),
    0 0 50px rgba(47, 107, 240, 0.18);
}

.insight-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.insight-card-scrim {
  position: absolute;
  inset: 0;
  background-color: rgba(40, 42, 54, 0.6);
  transition: opacity 0.5s ease;
}

.insight-card:hover .insight-card-scrim {
  opacity: 0.15;
}

.insight-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 26, 0) 35%,
    rgba(10, 14, 26, 0.92) 100%
  );
}

.insight-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.75rem;
  color: #f5f4ee;
}

.insight-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8fb4ff;
  margin-bottom: 0.75rem;
}

.insight-title {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.insight-card--featured .insight-title {
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  max-width: 28rem;
}

.insight-card--small .insight-title {
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-lead {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(245, 244, 238, 0.85);
  margin-bottom: 0.75rem;
  max-width: 30rem;
}

.insight-card--small .insight-lead {
  display: none;
}

.insight-meta {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 244, 238, 0.6);
}

.insight-card--small .insight-meta {
  font-size: 0.7rem;
}

.insights-cta-wrap {
  text-align: center;
  margin-top: 3rem;
}

.insights-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border: 1px solid rgba(26, 26, 26, 0.15);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.insights-cta:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

@media (prefers-reduced-motion: reduce) {
  .insight-card:hover .insight-card-inner {
    transform: translateY(-4px);
  }
}

@media (max-width: 860px) {
  .insights-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .insight-card,
  .insight-card-inner {
    height: auto;
  }

  .insight-card--featured .insight-card-inner {
    aspect-ratio: 16 / 10;
  }

  .insights-side {
    flex-direction: row;
    height: auto;
  }

  .insights-side .insight-card-inner {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 560px) {
  .insights-side {
    flex-direction: column;
  }
}

/* CTA */
.cta {
  padding: 6rem 2rem;
  background-color: var(--color-bg);
}

.cta-card {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 3.5rem clamp(2rem, 5vw, 4.5rem);
  background-color: #f4f2ec;
  border-radius: 24px;
  border-left: 6px solid;
  border-image: linear-gradient(180deg, #2f6bf0, #34d399) 1;
}

.cta-content {
  max-width: 620px;
}

.cta-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2f6bf0;
  margin-bottom: 1.5rem;
}

.cta-eyebrow-line {
  display: inline-block;
  width: 2rem;
  height: 1px;
  background-color: #2f6bf0;
}

.cta-heading {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.cta-text {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  flex-shrink: 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.cta-btn--primary {
  background-color: #2f6bf0;
  color: #fff;
  border-color: #2f6bf0;
}

.cta-btn--primary:hover {
  background-color: #1f4fc4;
  border-color: #1f4fc4;
}

.cta-btn--secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: rgba(52, 211, 153, 0.5);
}

.cta-btn--secondary:hover {
  background-color: #34d399;
  color: #0a3d2e;
  border-color: #34d399;
}

@media (max-width: 760px) {
  .cta-card {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-btn {
    width: 100%;
  }
}

/* Footer */
.site-footer {
  background-color: #0a0e1a;
  color: rgba(245, 244, 238, 0.85);
  padding: 5rem 2rem 2rem;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5f4ee;
  margin-bottom: 0.6rem;
}

.footer-tagline {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c2574c;
  margin-bottom: 1.5rem;
}

.footer-meta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.9;
  color: rgba(245, 244, 238, 0.5);
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 244, 238, 0.4);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col a {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: rgba(245, 244, 238, 0.85);
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: #8fb4ff;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(245, 244, 238, 0.12);
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(245, 244, 238, 0.4);
}

.footer-legal {
  display: flex;
  gap: 1.75rem;
}

.footer-legal a {
  color: rgba(245, 244, 238, 0.4);
  transition: color 0.25s ease;
}

.footer-legal a:hover {
  color: #f5f4ee;
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Scroll-triggered reveal: elements fade up into place once they enter
   the viewport. Pair with an inline `transition-delay` to stagger a
   row/group of elements so they cascade in one after another. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle parallax for images: the element is scaled up slightly so the
   JS-driven translateY (set via --parallax-y) never reveals empty edges
   inside its overflow-hidden container. */
.parallax-img {
  transform: scale(1.15) translateY(var(--parallax-y, 0px));
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .parallax-img {
    transform: none;
  }

  .soci-photo,
  .soci-gradient,
  .soci-overlay {
    transition: none;
  }
}
