/* ==========================================================================
   Gregory Muryn-Mukha — Portfolio
   Single stylesheet: tokens, reset, layout, components, interactions
   ========================================================================== */

/* ---------- @font-face: UCity Pro ---------- */
@font-face {
  font-family: 'UCity Pro';
  src: url('fonts/UCityProWeb-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'UCity Pro';
  src: url('fonts/UCityProWeb-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: block;
}
@font-face {
  font-family: 'UCity Pro';
  src: url('fonts/UCityProWeb-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'UCity Pro';
  src: url('fonts/UCityProWeb-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: block;
}
@font-face {
  font-family: 'UCity Pro';
  src: url('fonts/UCityProWeb-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'UCity Pro';
  src: url('fonts/UCityProWeb-SemiboldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: block;
}
@font-face {
  font-family: 'UCity Pro';
  src: url('fonts/UCityProWeb-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'UCity Pro';
  src: url('fonts/UCityProWeb-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: block;
}
@font-face {
  font-family: 'UCity Pro';
  src: url('fonts/UCityProWeb-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'UCity Pro';
  src: url('fonts/UCityProWeb-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: block;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Motion: spring-inspired easing curves
     - --ease-out-spring: gentle settle, no overshoot, for hover lifts and reveals
     - --ease-out-back: small overshoot for tactile responses (icons, scale)
     - --ease-out-back-soft: very subtle overshoot for sub-pixel tactility
     - --ease-out-quart: smooth, fast ramp to rest, for fades and opacity */
  --ease-out-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-back-soft: cubic-bezier(0.32, 1.2, 0.5, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);

  --bg: #FFFFFF;
  --text: #181212;
  --text-body: #211B1C;
  --text-muted: #837D7D;
  --border: #E5E5E5;
  /* Accent (Perceptually adapted to your primary #450DD5) */
  --accent-900: #12003c;
  --accent-800: #230074;
  --accent-700: #3400ad;
  --accent-600: #3d05df;
  --accent-500: #450DD5;
  --accent-400: #6c3fed;
  --accent-300: #9371f2;
  --accent-200: #b9a2f7;
  --accent-100: #dfd4fb;
  --accent-50: #efe9fd;
  --accent-25: #f7f4fe;
  --accent: #450DD5;
  --accent-hover: #3d05df;

  /* Neutral — warm gray, OKLAB perceptually uniform */
  --neutral-950: #0F0A0A;
  --neutral-900: #181212;
  --neutral-850: #211B1C;
  --neutral-800: #2B2525;
  --neutral-750: #352F2F;
  --neutral-700: #3F393A;
  --neutral-650: #4A4444;
  --neutral-600: #554F4F;
  --neutral-550: #605A5A;
  --neutral-500: #6B6666;
  --neutral-450: #777171;
  --neutral-400: #837D7D;
  --neutral-350: #8F8989;
  --neutral-300: #9B9596;
  --neutral-250: #A7A2A2;
  --neutral-200: #B4AFAF;
  --neutral-150: #C1BBBB;
  --neutral-100: #CDC8C8;
  --neutral-75: #DAD6D6;
  --neutral-50: #E8E3E3;
  --neutral-25: #F5F0F0;
  --neutral-0: #FFFEFE;

  --font: 'UCity Pro', system-ui, -apple-system, sans-serif;
  --sidebar-width: 192px;
  --content-max: 1200px;
}

/* ---------- Shiny Hover Animation ---------- */
@keyframes shiny-sweep {
  0%   { background-position: 100% center; }
  100% { background-position: -100% center; }
}

.shiny-hover {
  background-image: linear-gradient(
    90deg,
    var(--text) 0%,
    var(--text) 46%,
    var(--accent-400) 49%,
    var(--accent-500) 50%,
    var(--accent-400) 51%,
    var(--text) 54%,
    var(--text) 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0s;
}

.shiny-hover:hover {
  animation: shiny-sweep 1.5s ease-in-out;
}

.cta-block__content:hover .shiny-hover {
  animation: shiny-sweep 1.2s ease-in-out;
}

.shiny-hover--blue {
  background-image: linear-gradient(
    90deg,
    var(--text-body) 0%,
    var(--text-body) 46%,
    #5c21f0 49%,
    #450DD5 50%,
    #2d0592 51%,
    var(--text-body) 54%,
    var(--text-body) 100%
  );
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-body);
  background: var(--bg);
}

body.menu-open {
  overflow: hidden;
}

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

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

hr {
  border: none;
}

strong {
  font-weight: 600;
}

blockquote {
  margin: 0;
}

/* ---------- Mobile Header ---------- */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--bg);
  transition: transform 0.3s ease;
}

.mobile-logo {
  display: flex;
  align-items: center;
}

.mobile-logo img {
  display: block;
  height: 38px;
  width: auto;
}

/* Inline nav in mobile header — hidden by default */
.mobile-header__nav {
  display: none;
}

.mobile-header__link {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.mobile-header__link:hover {
  color: var(--text);
}

.mobile-header__link.active {
  color: var(--text);
}

/* Show inline nav and hide hamburger at 800px+ (still mobile header) */
@media (min-width: 800px) and (max-width: 1295px) {
  .mobile-header__nav {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-left: auto;
  }
  .menu-toggle {
    display: none !important;
  }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Mobile Menu Overlay ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 120px;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-link {
  font-family: var(--font);
  font-size: 24px;
  color: var(--text);
  transition: color 0.2s ease;
}

.mobile-menu-link:hover {
  color: var(--accent);
}

.mobile-menu-divider {
  width: 40px;
  border-top: 1px solid var(--border);
}

.mobile-menu-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-bottom: 64px;
}

.mobile-menu-bottom .mobile-menu-link {
  color: var(--neutral-550);
}

/* ---------- Sidebar & Mobile Header Hidden (Bottom Floating Navbar Used) ---------- */
.sidebar {
  display: none !important;
}
.mobile-header {
  display: none !important;
}
.mobile-menu {
  display: none !important;
}

/* ---------- Bottom Floating Nav Dock ---------- */
.floating-nav-wrapper {
  position: fixed;
  bottom: 24px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
}
.floating-nav {
  pointer-events: auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 8px 6px 12px;
  background: rgba(255, 254, 254, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 229, 229, 0.6);
  border-radius: 100px;
  box-shadow: 0 12px 40px rgba(24, 18, 18, 0.08);
  width: auto;
  max-width: 95%;
  transition: transform 0.4s var(--ease-out-spring), opacity 0.4s var(--ease-out-spring);
}

.floating-nav--hidden {
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  pointer-events: none;
}

.floating-nav__logo {
  display: flex;
  align-items: center;
  padding: 0 12px 0 6px;
  border-right: 1px solid var(--border);
}

.floating-nav__logo img {
  height: 26px;
  width: auto;
  display: block;
}

.floating-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.floating-nav__link {
  font-size: 16px;
  font-weight: 600;
  color: var(--neutral-500);
  padding: 6px 12px;
  border-radius: 100px;
  transition: color 0.2s var(--ease-out-quart), background 0.2s var(--ease-out-quart);
  white-space: nowrap;
}

.floating-nav__link:hover {
  color: var(--text);
  background: var(--neutral-25);
}

.floating-nav__link.active {
  color: var(--neutral-0);
  background: var(--accent);
}

/* ---------- Main Content ---------- */
.content {
  padding: 64px 24px 120px;
}

/* ---------- Centered Block ---------- */
.centered {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Sections ---------- */
.section {
  padding-top: 128px;
}

.section--hero {
  padding-top: 154px;
}

.section--contact {
  padding-bottom: 0;
}

.section-divider {
  border-top: 1px solid var(--border);
  margin-top: 128px;
}

.section-heading {
  font-family: var(--font);
  font-size: 48px;
  font-weight: 600;
  line-height: 57.6px;
  letter-spacing: -2.4px;
  color: var(--text);
  margin-bottom: 48px;
}

/* ---------- Hero / About ---------- */
.hero-name {
  font-family: var(--font);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -3px;
  color: var(--text);
  margin-bottom: 57px;
}

.hero-tagline {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hero-location {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-bio {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 24px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -0.7px;
  color: var(--text-body);
  margin-bottom: 0;
}

.hero-bio p {
  margin: 0;
}

.hero-bio--location {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--neutral-500);
  font-weight: 400;
  perspective: 500px;
}

.flip-text {
  display: inline-block;
}

.flip-char {
  display: inline-block;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: visible;
}

/* Animated Globe Icon */
.globe-wrap {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-flex;
  position: relative;
  top: -1px;
}

.globe-svg {
  width: 22px;
  height: 22px;
  overflow: visible;
}

/* Meridian ellipses animate their rx to simulate rotation */
.globe-meridian {
  transform-origin: 11px 11px;
  will-change: transform;
  transform: scaleX(0.4);
}

.globe-meridian.m2 {
  transform: scaleX(0.4);
}

.globe-spinning .globe-meridian {
  animation: meridian-burst 1.75s ease-out forwards;
}

.globe-spinning .globe-meridian.m2 {
  animation-delay: -0.625s;
}


@keyframes meridian-burst {
  0%    { transform: scaleX(0.4); }
  12.5% { transform: scaleX(1); }
  25%   { transform: scaleX(0.4); }
  37.5% { transform: scaleX(0.15); }
  50%   { transform: scaleX(0.4); }
  62.5% { transform: scaleX(1); }
  75%   { transform: scaleX(0.4); }
  87.5% { transform: scaleX(0.15); }
  100%  { transform: scaleX(0.4); }
}

/* ---------- Social Proof ---------- */
.social-proof {
  display: flex;
  gap: 12px;
  padding-top: 69px;
  align-items: stretch;
}

.social-proof__left {
  flex: 1;
  min-width: 0;
}

.sp-card {
  border-radius: 44px;
  overflow: hidden;
}

/* Testimonial scroll — desktop only, handled in desktop media query */

/* Services Card */
.sp-card--services {
  background: rgba(69, 13, 213, 0.04);
  height: 364px;
  position: relative;
  padding: 20px;
  display: flex;
  align-items: center;
}

.sp-card--services::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 44px;
  box-shadow:
    inset 0 6px 14px 0 rgba(69, 13, 213, 0.03),
    inset 0 -12px 24px 0 rgba(69, 13, 213, 0.03);
  z-index: 3;
  pointer-events: none;
}

.sp-services__wheel {
  position: absolute;
  left: 0;
  top: 0;
  width: 200px;
  height: 100%;
  overflow: hidden;
}

.sp-wheel__track {
  position: absolute;
  inset: 0;
}

.sp-wheel__item {
  position: absolute;
  font-size: 20px;
  font-weight: 400;
  line-height: 25.6px;
  letter-spacing: -1px;
  color: var(--neutral-500);
  opacity: 0.4;
  white-space: nowrap;
  transform-origin: left center;
  will-change: transform, filter, opacity;
}


.sp-services__pill-stack {
  position: absolute;
  left: 220px;
  top: 0;
  bottom: 0;
  width: 272px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-right: 12px;
  z-index: 1;
  box-sizing: border-box;
}

.sp-stack__card {
  flex-shrink: 0;
  overflow: hidden;
}

.sp-stack__card--active {
  font-size: 20px;
  font-weight: 400;
  line-height: 128%;
  letter-spacing: -1px;
  color: var(--text-body);
  display: flex;
  align-items: center;
}

.sp-stack__card--active span {
  display: block;
}

.sp-services__arrow {
  position: absolute;
  left: 22px;
  top: calc(50% - 2px);
  transform: translateY(-50%);
  transform-origin: 0 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Backed-by Card */
.sp-card--backed {
  background: rgba(191, 239, 212, 0.32);
  height: 173px;
  padding: 41px 40px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.sp-backed__title {
  font-size: 20px;
  font-weight: 400;
  line-height: 25.6px;
  letter-spacing: -1px;
  color: var(--neutral-600);
  margin: 0;
  text-align: center;
}

.sp-backed__logos {
  display: flex;
  align-items: center;
  gap: 32px;
}

.sp-backed__logo {
  display: block;
  opacity: 0.88;
}

/* Testimonial Card */
.sp-card--testimonial {
  background: var(--neutral-25);
  flex: 1;
  min-width: 0;
  height: 364px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding-bottom: 33px;
  border: 1px solid rgba(229, 229, 229, 0.6);
}

.sp-testimonial__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
  align-items: center; /* fix */
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: var(--neutral-25);
  z-index: 2;
}

.sp-testimonial__author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sp-testimonial__avatar {
  width: 64px;
  height: 64px;
  border-radius: 32px;
  background: rgba(69, 13, 213, 0.08);
  box-shadow:
    inset 0 2px 0 0 rgba(69, 13, 213, 0.08),
    0 2px 0 0 rgba(255, 255, 255, 0.56);
  padding: 4px;
  flex-shrink: 0;
  box-sizing: border-box;
  position: relative;
}

.sp-testimonial__avatar img {
  width: 56px;
  height: 56px;
  border-radius: 36px;
  object-fit: cover;
  display: block;
}

.sp-testimonial__avatar::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 56px;
  height: 56px;
  border-radius: 36px;
  box-shadow:
    inset 0 2px 0 0 rgba(24, 18, 18, 0.08),
    0 2px 0 0 rgba(255, 255, 255, 0.32);
  pointer-events: none;
}

.avatar-letters {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: 'UCity Pro', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #0b0320;
  background: rgba(69, 13, 213, 0.05);
  box-sizing: border-box;
}

.sp-testimonial__details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 0 5px;
}

.sp-testimonial__name {
  font-size: 20px;
  font-weight: 600;
  line-height: 25.6px;
  letter-spacing: -1px;
  color: var(--neutral-700);
}

.sp-testimonial__role {
  font-size: 17px;
  font-weight: 400;
  line-height: 21.8px;
  letter-spacing: -1px;
  color: var(--neutral-500);
}

.sp-testimonial__nav {
  display: flex;
  gap: 4px;
  background: rgba(209, 227, 255, 0.64);
  box-shadow:
    inset 0 2px 0 0 rgba(193, 197, 240, 0.20),
    0 2px 0 0 rgba(255, 255, 255, 0.40);
  border-radius: 1000px;
  padding: 4px;
  box-sizing: border-box;
}

.sp-testimonial__btn {
  width: 56px;
  height: 56px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s var(--ease-out-quart),
              box-shadow 0.35s var(--ease-out-quart),
              transform 0.4s var(--ease-out-back-soft);
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 2px 0 0 rgba(255, 255, 255, 1),
    0 1px 0 0 rgba(22, 24, 29, 0.02),
    0 0 0 1px rgba(22, 24, 29, 0.02),
    0 1px 8px -4px rgba(22, 24, 29, 0.04),
    0 4px 12px -6px rgba(22, 24, 29, 0.04),
    0 1px 3px 1px rgba(22, 24, 29, 0.01);
}

.sp-testimonial__btn svg {
  display: block;
  opacity: 0.72;
  transition: opacity 0.15s ease;
}

/* Hover */
.sp-testimonial__btn:hover:not(:disabled):not(.sp-testimonial__btn--pressed) {
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 2px 0 0 rgba(255, 255, 255, 1),
    0 0 0 1px rgba(0, 46, 113, 0.05),
    0 2px 8px 0 rgba(0, 46, 113, 0.02),
    0 4px 12px -20px rgba(0, 46, 113, 0.04),
    0 6px 16px -20px rgba(0, 46, 113, 0.06),
    0 8px 20px -20px rgba(0, 46, 113, 0.08),
    0 10px 24px -20px rgba(0, 46, 113, 0.11),
    0 12px 26px -20px rgba(0, 46, 113, 0.13),
    0 14px 28px -20px rgba(0, 46, 113, 0.15);
}

.sp-testimonial__btn:hover:not(:disabled):not(.sp-testimonial__btn--pressed) svg {
  opacity: 1;
}

/* Pressed (mouse down) */
.sp-testimonial__btn--pressed {
  background: rgba(255, 255, 255, 0.48) !important;
  box-shadow: 0 1px 0 0 rgba(0, 46, 113, 0.04) !important;
  transition: none !important;
}

.sp-testimonial__btn--pressed svg {
  opacity: 0.56 !important;
}

/* Disabled */
.sp-testimonial__btn:disabled {
  background: transparent;
  box-shadow: none;
  cursor: not-allowed;
}

.sp-testimonial__btn:disabled svg {
  opacity: 0.32;
}

.sp-testimonial__quote {
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -1px;
  color: var(--text-body);
  padding: 0 40px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.sp-testimonial__quote p:first-child {
  text-indent: -0.36em;
}

.sp-testimonial__quote p {
  margin: 0 0 9px;
}

.sp-testimonial__quote p:last-child {
  margin-bottom: 0;
}

/* Pagination dots — hidden on desktop */
.sp-testimonial__dots {
  display: none;
  gap: 8px;
  justify-content: center;
  padding: 8px 0 4px;
}

.sp-testimonial__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neutral-200);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s var(--ease-out-quart),
              transform 0.4s var(--ease-out-back);
}

.sp-testimonial__dot--active {
  background: var(--accent);
  transform: scale(1.33);
}

/* Testimonial scroll — use container query to only scroll when card is compressed */
.sp-card--testimonial {
  container-type: inline-size;
}

@container (max-width: 533px) {
  .sp-testimonial__quote {
    overflow-y: auto;
    min-height: 0;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #B5D3FF #F1F7FF;
  }
  .sp-testimonial__quote::-webkit-scrollbar {
    width: 6px;
  }
  .sp-testimonial__quote::-webkit-scrollbar-track {
    background: #F1F7FF;
    border-radius: 3px;
  }
  .sp-testimonial__quote::-webkit-scrollbar-thumb {
    background: #B5D3FF;
    border-radius: 3px;
  }
}

/* Lock testimonial height when side by side and compressed */
@media (min-width: 1000px) {
  .social-proof {
    container-type: inline-size;
  }
}

@container (max-width: 1079px) {
  .sp-card--testimonial {
    height: 364px;
    overflow: hidden;
  }
}

/* ---------- Logos Section ---------- */
.logos-section {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 131px 0 127px;
}

.logos-section__divider {
  flex: 1;
  height: 1px;
  display: block;
  overflow: visible;
}

.logos-section__divider line {
  stroke: #F5F0F0;
}

.logos-svg {
  display: block;
  overflow: visible;
}

.logos-svg path {
  fill: #352F2F;
  stroke: #352F2F;
  stroke-width: 0.6;
}

.logos-svg[data-logo="yc"] path[data-logo-y="1"] {
  fill: #FFFEFE;
}

.logos-section__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.logos-section__title {
  font-size: 17px;
  font-weight: 400;
  line-height: 21.8px;
  letter-spacing: -1px;
  color: #352F2F;
  margin: 0;
  white-space: nowrap;
}

.logos-section__logos {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logos-section__logos img {
  display: block;
}

/* ---------- Section Heading 2 ---------- */
.section-heading-2 {
  font-family: var(--font);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -2px;
  color: var(--text);
  margin: 0;
}

/* ---------- Case Studies ---------- */
.case-studies {
  scroll-margin-top: 80px;
  padding-top: 0;
}

.case-study {
  display: flex;
  flex-direction: column;
  gap: 31px;
  position: sticky;
  top: 56px;
  z-index: 1;
  will-change: opacity, filter;
}

.case-study + .case-study {
  background: var(--bg);
  border-radius: 64px 64px 0 0;
  margin-top: 80px;
  padding-top: 72px;
  margin-left: -32px;
  margin-right: -32px;
  padding-left: 32px;
  padding-right: 32px;
}

.case-study__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.case-study__buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.case-study__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-study__title {
  font-family: var(--font);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -2px;
  color: var(--text);
  margin: 0;
}

.case-study__caption {
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.7px;
  margin: 0;
}

.case-study__caption-desc { color: var(--neutral-800); }
.case-study__caption-dot { color: var(--neutral-200); font-weight: 600; }
.case-study__caption-year { color: var(--neutral-500); }

/* Read Case Study Button */
.case-study__btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 16px 17px 16px 22px;
  background: #450DD5;
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  line-height: 21.8px;
  letter-spacing: -0.5px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s var(--ease-out-quart),
              box-shadow 0.4s var(--ease-out-quart),
              transform 0.45s var(--ease-out-back-soft);
  box-shadow:
    0 6px 16px -8px rgba(0, 46, 113, 0.08),
    0 4px 12px -6px rgba(0, 46, 113, 0.06),
    0 3px 8px -4px rgba(0, 46, 113, 0.06),
    0 2px 6px -3px rgba(0, 46, 113, 0.04),
    0 1px 4px -2px rgba(0, 46, 113, 0.04),
    0 1px 3px -1px rgba(0, 46, 113, 0.02),
    0 1px 2px 0 rgba(0, 46, 113, 0.01),
    0 -1px 0 1px rgba(0, 46, 113, 0.16) inset;
}

.work-case__btn {
  display: inline-flex;
  width: auto;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 16px 17px 16px 22px;
  background: #450DD5;
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  line-height: 21.8px;
  letter-spacing: -0.5px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s var(--ease-out-quart),
              box-shadow 0.4s var(--ease-out-quart),
              transform 0.45s var(--ease-out-back-soft);
  box-shadow:
    0 6px 16px -8px rgba(0, 46, 113, 0.08),
    0 4px 12px -6px rgba(0, 46, 113, 0.06),
    0 3px 8px -4px rgba(0, 46, 113, 0.06),
    0 2px 6px -3px rgba(0, 46, 113, 0.04),
    0 1px 4px -2px rgba(0, 46, 113, 0.04),
    0 1px 3px -1px rgba(0, 46, 113, 0.02),
    0 1px 2px 0 rgba(0, 46, 113, 0.01),
    0 -1px 0 1px rgba(0, 46, 113, 0.16) inset;
}

@media (hover: hover) {
  .case-study__btn:hover {
    transform: translateY(-1px);
    background: #1A6FE8;
    box-shadow:
      0 6px 32px -12px rgba(0, 46, 113, 0.16),
      0 4px 24px -12px rgba(0, 46, 113, 0.12),
      0 4px 12px -4px rgba(0, 46, 113, 0.08),
      0 3px 8px -3px rgba(0, 46, 113, 0.06),
      0 2px 4px -2px rgba(0, 46, 113, 0.04),
      0 2px 4px -1px rgba(0, 46, 113, 0.02),
      0 1px 3px 0 rgba(0, 46, 113, 0.01),
      0 -1px 0 1px rgba(0, 46, 113, 0.16) inset,
      0 1px 2px -1px rgba(0, 46, 113, 0.32) inset;
  }
}

.case-study__btn:active {
  background: rgba(45, 128, 253, 0.72);
  box-shadow: none;
  transform: translateY(0) scale(0.985);
  transition: background 0.1s var(--ease-out-quart),
              box-shadow 0.1s var(--ease-out-quart),
              transform 0.12s var(--ease-out-quart);
}

.case-study__btn:active span,
.case-study__btn:active svg {
  opacity: 0.88;
}


/* Website Button */
.case-study__website-btn {
  width: 56px;
  height: 56px;
  border-radius: 100px;
  background: #F5F0F0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--neutral-600);
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  box-shadow: inset 0 2px 0 0 rgba(22, 24, 28, 0.02);
}

.case-study__website-btn:hover {
  background: linear-gradient(rgba(15, 10, 10, 0.04), rgba(15, 10, 10, 0.04)), #F5F0F0;
  color: var(--neutral-700);
}

.case-study__website-btn:active {
  background: linear-gradient(rgba(15, 10, 10, 0.08), rgba(15, 10, 10, 0.08)), #F5F0F0;
  box-shadow: inset 0 2px 0 0 rgba(22, 24, 28, 0.04);
  color: var(--neutral-900);
}

.case-study__website-btn .globe-svg {
  width: 20px;
  height: 20px;
}

.case-study__website-btn:hover .globe-svg {
  animation: none;
}

.case-study__website-btn:hover .globe-meridian {
  animation: meridian-burst 1.75s ease-out forwards;
}

.case-study__website-btn:hover .globe-meridian.m2 {
  animation-delay: -0.625s;
}

.case-study__btn span {
  position: relative;
  top: 0.5px;
}

.case-study__btn svg {
  flex-shrink: 0;
  transform-origin: 5px 12px;
  transition: transform 0.45s var(--ease-out-back);
  will-change: transform;
}

.case-study__btn:hover svg {
  animation: arrow-nudge 0.7s var(--ease-out-back);
}

/* Squash-and-stretch tied to the existing nudge: as the arrow accelerates
   forward it elongates + thins (tips pulled in), then slightly squashes on the
   pull-back overshoot, settling back to neutral. */
@keyframes arrow-nudge {
  0%   { transform: translateX(0) scaleX(1) scaleY(1); }
  35%  { transform: translateX(4.5px) scaleX(1.12) scaleY(0.91); }
  60%  { transform: translateX(-0.8px) scaleX(0.98) scaleY(1.015); }
  100% { transform: translateX(0) scaleX(1) scaleY(1); }
}

/* Mirror of arrow-nudge for left-pointing arrows (testimonial prev button) */
@keyframes arrow-nudge-left {
  0%   { transform: translateX(0) scaleX(1) scaleY(1); }
  35%  { transform: translateX(-4.5px) scaleX(1.12) scaleY(0.91); }
  60%  { transform: translateX(0.8px) scaleX(0.98) scaleY(1.015); }
  100% { transform: translateX(0) scaleX(1) scaleY(1); }
}

/* Squash-and-stretch arrow on click for the testimonial nav buttons.
   Origin matches the arrow's tail so the visible motion is the tip stretching. */
.sp-testimonial__btn--next svg {
  transform-origin: 5px 12px;
  will-change: transform;
}

.sp-testimonial__btn--prev svg {
  transform-origin: 19px 12px;
  will-change: transform;
}

.sp-testimonial__btn--next.is-clicking svg {
  animation: arrow-nudge 0.7s var(--ease-out-back);
}

.sp-testimonial__btn--prev.is-clicking svg {
  animation: arrow-nudge-left 0.7s var(--ease-out-back);
}

/* Case Study Image */
.case-study__image-wrap {
  background: rgba(209, 227, 255, 0.72);
  border-radius: 52px;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.case-study__tilt {
  position: relative;
  will-change: transform;
  border-radius: 14px;
  z-index: 2;
}

.case-study__tilt .tilt-glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-quart);
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
}

.case-study__image-wrap::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg,
      rgba(255, 255, 255, 1) 8deg,
      transparent 16deg,
      transparent 40deg,
      rgba(255, 255, 255, 0.85) 48deg,
      transparent 56deg,
      transparent 90deg,
      rgba(255, 255, 255, 0.95) 98deg,
      transparent 106deg,
      transparent 140deg,
      rgba(255, 255, 255, 0.75) 148deg,
      transparent 156deg,
      transparent 190deg,
      rgba(255, 255, 255, 0.9) 198deg,
      transparent 206deg,
      transparent 250deg,
      rgba(255, 255, 255, 0.8) 258deg,
      transparent 266deg,
      transparent 310deg,
      rgba(255, 255, 255, 0.7) 318deg,
      transparent 326deg,
      transparent 360deg
    );
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
  filter: blur(40px);
  animation: rays-rotate 40s linear infinite;
}

@keyframes rays-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.case-study__image {
  width: 100%;
  display: block;
  border-radius: 14px;
  position: relative;
  z-index: 2;
  box-shadow:
    0 2px 0 0 rgba(11, 72, 158, 0.06),
    0 50px 60px -25px rgba(11, 72, 158, 0.22);
}

video.case-study__image {
  width: 100%;
  height: auto;
}

.case-study__crop-wrap {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow:
    0 2px 0 0 rgba(11, 72, 158, 0.06),
    0 50px 60px -25px rgba(11, 72, 158, 0.22);
}

.case-study__image--crop-top {
  border-radius: 0;
  box-shadow: none;
}

.case-study__image--crop-1 { margin-top: -1px; }
.case-study__image--crop-2 { margin-top: -2px; }

.case-study__video-border {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  z-index: 2;
  box-shadow:
    0 2px 0 0 rgba(11, 72, 158, 0.06),
    0 50px 60px -25px rgba(11, 72, 158, 0.22);
}

.case-study__video-border::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.64);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.case-study__video-border--border-visible::after {
  opacity: 1;
}

.case-study__video-border .case-study__image {
  border-radius: 0;
  box-shadow: none;
}

/* ---------- Experience Section ---------- */
.experience-section {
  padding-top: 156px;
  padding-bottom: 80px;
  scroll-margin-top: 40px;
}

.experience__heading {
  font-family: var(--font);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -2px;
  color: var(--text);
  margin: 0 0 49px;
}

.experience__rows {
  display: flex;
  flex-direction: column;
  gap: 43px;
}

.experience__row {
  display: flex;
  gap: 24px;
  padding: 18px 20px;
  margin: -18px -20px;
  border-radius: 28px;
  transition: background 0.35s var(--ease-out-quart);
}

@media (hover: hover) {
  .experience__row:hover {
    background: rgba(245, 240, 240, 0.48);
  }

  .experience__row:hover .experience__desc,
  .experience__row:hover .experience__caption {
    color: var(--neutral-700);
  }
}

.experience__left {
  display: flex;
  gap: 24px;
  align-items: center;
  width: 360px;
  flex-shrink: 0;
}

.experience__logo {
  width: 56px;
  height: 56px;
  border-radius: 0;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform-origin: center center;
}

.experience__row:hover .experience__logo {
  animation: logo-tilt 2s ease-in-out;
}

@keyframes logo-tilt {
  0%   { transform: perspective(300px) rotateY(0deg) rotateX(0deg) scale(1); }
  10%  { transform: perspective(300px) rotateY(7deg) rotateX(-3.5deg) scale(1.06); }
  25%  { transform: perspective(300px) rotateY(-3deg) rotateX(2deg) scale(1.03); }
  40%  { transform: perspective(300px) rotateY(1.5deg) rotateX(-1deg) scale(1.015); }
  55%  { transform: perspective(300px) rotateY(-0.7deg) rotateX(0.4deg) scale(1.007); }
  70%  { transform: perspective(300px) rotateY(0.3deg) rotateX(-0.15deg) scale(1.003); }
  85%  { transform: perspective(300px) rotateY(-0.1deg) rotateX(0.05deg) scale(1.001); }
  100% { transform: perspective(300px) rotateY(0deg) rotateX(0deg) scale(1); }
}


.experience__details {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 1px;
}

.experience__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 25.6px;
  letter-spacing: -1px;
  color: var(--text-body);
}

.experience__caption {
  font-size: 17px;
  font-weight: 400;
  line-height: 21.8px;
  letter-spacing: -1px;
  color: var(--neutral-600);
}

.experience__caption-dot {
  color: var(--neutral-200);
}

.experience__desc {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -1px;
  color: var(--neutral-600);
  margin: 0;
  width: 680px;
  max-width: 100%;
  flex-shrink: 1;
  padding-top: 1px;
}

/* Experience mobile */
@media (max-width: 999px) {
  .experience__row {
    flex-direction: column;
    gap: 16px;
  }
  .experience__left {
    width: 100%;
    gap: 20px;
  }
  .experience__desc {
    width: 100%;
    font-size: 17px;
  }
  .experience__rows {
    gap: 41px;
  }
  .experience__heading {
    margin-bottom: 29px;
  }
  .experience-section {
    padding-top: 76px;
  }
}

/* ---------- CTA Block ---------- */
.cta-block {
  padding-top: 38px;
  text-align: center;
}

.cta-block__content {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: rgba(239, 246, 255, 1);
  border-radius: 84px;
  padding: 12px 12px 12px 32px;
  box-shadow: inset 0 1.5px 0 0 rgba(11, 72, 158, 0.04);
}

.cta-block__label {
  font-size: 17px;
  font-weight: 600;
  line-height: 21.8px;
  letter-spacing: -1px;
  color: var(--text-body);
}

.cta-block__label--mobile {
  display: none;
}

@media (max-width: 600px) {
  .hero-name {
    margin-bottom: 33px;
  }
  .cta-block__label--desktop {
    display: none;
  }
  .cta-block__label--mobile {
    display: inline;
  }
}

/* ---------- Publications Section ---------- */
.publications-section {
  padding-top: 116px;
  padding-bottom: 80px;
}

.publications__heading {
  font-family: var(--font);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -2px;
  color: var(--text);
  margin: 0 0 51px;
}

.publications__content {
  display: flex;
  gap: 40px;
}

/* Articles */
.publications__articles {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1 1 520px;
  min-width: 0;
}

.pub-article {
  display: flex;
  gap: 24px;
  background: rgba(239, 246, 255, 0.80);
  border-radius: 40px;
  padding: 12px 24px 12px 12px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.pub-article:hover {
  background: rgba(239, 246, 255, 1);
}

.pub-article__image {
  width: 148px;
  height: 148px;
  border-radius: 28px;
  overflow: hidden;
  flex-shrink: 0;
}

.pub-article__image {
  position: relative;
}

.pub-article__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-article:nth-child(2) .pub-article__bg {
  object-position: left top;
}


.pub-article__logo {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  bottom: 0;
  left: 0;
}

.pub-article__tilt {
  transition: transform 0.55s var(--ease-out-back-soft);
  transform-origin: center center;
  will-change: transform;
}

.pub-article__details {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px 0 7px;
}

.pub-article__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 26.6px;
  letter-spacing: -1px;
  color: var(--text-body);
  margin: 0;
}

.pub-article__caption {
  font-size: 17px;
  font-weight: 400;
  line-height: 22.6px;
  letter-spacing: -1px;
  color: var(--neutral-600);
  margin: 0;
}

/* Tools */
.publications__tools {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-left: 40px;
  padding-top: 14px;
  flex: 1 1 480px;
  min-width: 0;
}

.pub-tool {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 12px;
  margin: -12px;
  border-radius: 26px;
  transition: background 0.35s var(--ease-out-quart),
              transform 0.5s var(--ease-out-back-soft);
  text-decoration: none;
  color: inherit;
}

@media (hover: hover) {
  .pub-tool:hover {
    transform: translateY(-1px);
  }
}

.pub-tool__logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.pub-tool__details {
  display: flex;
  flex-direction: column;
  gap: 7.5px;
  padding-top: 1px;
}

.pub-tool__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 25.6px;
  letter-spacing: -1px;
  color: var(--text-body);
}

.pub-tool__dot {
  color: var(--neutral-200);
}

.pub-tool__caption {
  font-size: 17px;
  font-weight: 400;
  line-height: 21.8px;
  letter-spacing: -1px;
  color: var(--neutral-600);
}

.pub-tool:hover {
  background: rgba(239, 246, 255, 0.8);
}

.pub-tool:hover .pub-tool__logo {
  animation: logo-tilt 2s ease-in-out;
}

/* Publications mobile */
@media (max-width: 999px) {
  .publications__content {
    flex-direction: column;
    gap: 48px;
  }
  .publications__articles {
    width: 100%;
  }
  .publications__tools {
    padding-left: 0;
    padding-top: 0;
    flex: none;
    width: 100%;
  }
  .publications__articles {
    flex: none;
  }
  .pub-tool {
    gap: 20px;
  }
  .publications-section {
    padding-top: 76px;
  }
  .publications__heading {
    margin-bottom: 30px;
  }
  .experience-section {
    padding-bottom: 0;
  }
  .cta-block {
    padding-top: 72px;
  }
  .publications-section {
    padding-top: 77px;
  }
}

@media (max-width: 600px) {
  .pub-article {
    flex-direction: column;
    border-radius: 26px;
    padding: 12px;
  }
  .pub-article__details {
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 0;
  }
  .pub-article__logo {
    width: 48px;
    height: 48px;
    border-radius: 100px;
    left: auto;
    right: 12px;
    bottom: auto;
    top: 12px;
  }
  .pub-article__image {
    width: 100%;
    height: 200px;
    border-radius: 14px;
  }
  .pub-article:nth-child(2) .pub-article__bg {
    object-position: center center;
  }
}

/* No sidebar (<1296px) — keep desktop layout, just hide sidebar */
@media (max-width: 1295px) {
  .content {
    margin-left: 0;
    padding: 0 24px 48px;
  }
}

/* Social proof mobile */
@media (max-width: 999px) {
  .social-proof {
    flex-direction: column;
    gap: 24px;
  }
  .social-proof__left {
    width: 100%;
  }
  .sp-card--services {
    height: 300px;
    min-height: 300px;
  }
  .sp-services__pill-stack {
    left: auto;
    right: 12px;
  }
  .sp-card--testimonial {
    width: 100%;
    height: auto;
    overflow: hidden;
    padding-bottom: 16px;
  }
  .sp-testimonial__nav {
    display: none;
  }
  .sp-card--testimonial .sp-testimonial__quote {
    padding: 0 24px 0;
  }
  .sp-testimonial__dots {
    display: flex;
  }
  .sp-stack__card--active {
    padding: 22px 20px 23px;
  }
}

/* Tablet: shift wheel right, center cards in remaining space */
@media (min-width: 700px) and (max-width: 999px) {
  .sp-services__arrow {
    left: 62px;
  }
  .sp-services__wheel {
    left: 48px;
    overflow: visible;
    width: 300px;
  }
  .sp-services__pill-stack {
    left: 50%;
    right: auto;
    transform: translateX(-10%);
  }
}


/* Very narrow mobile: hide cards, show only wheel */
@media (max-width: 553px) {
  .sp-services__pill-stack {
    display: none;
  }
  .sp-card--services {
    height: 240px;
    min-height: 240px;
  }
  .sp-services__arrow {
    left: 54px;
    top: 50%;
  }
  .sp-services__wheel {
    left: 36px;
    width: 320px;
    overflow: visible;
  }
  .sp-wheel__item {
    font-size: 24px;
    line-height: 30px;
  }
}

@media (max-width: 899px) {
  .case-study__website-btn {
    display: none;
  }
}

@media (max-width: 767px) {
  .case-study + .case-study {
    margin-top: 0;
    padding-top: 25px;
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 0;
  }
  .case-study__caption-dot,
  .case-study__caption-year {
    display: none;
  }
  .case-study__btn {
    display: none;
  }
  .cta-block__btn {
    display: inline-flex !important;
    padding-right: 22px;
  }
  .cta-block__btn svg {
    display: none;
  }
  .cta-block__content {
    padding: 12px 12px 12px 28px;
  }
  .cta-block__label {
    white-space: normal;
    text-align: left;
    position: relative;
    top: 1px;
  }
  .case-study {
    cursor: pointer;
  }
  .case-study__image {
    border-radius: 12px;
  }
  .case-study__image-wrap {
    border-radius: 26px;
    padding: 12px;
  }
  .case-study__caption {
    font-size: 17px;
    line-height: 140%;
  }
  .case-study {
    gap: 19px;
  }
}

@media (min-width: 393px) and (max-width: 767px) {
  .cta-block__content {
    padding: 12px 12px 12px 32px;
  }
}

@media (max-width: 619px) {
  .logos-section__divider {
    display: none;
  }
  .logos-section {
    justify-content: center;
  }
}

@media (max-width: 999px) {
  .logos-section {
    padding: 76px 0 77px;
  }
}

@media (max-width: 480px) {
  .hero-bio {
    font-size: 20px;
    line-height: 140%;
  }
  .hero-bio--location {
    font-size: 20px;
    line-height: 140%;
  }
}

@media (max-width: 507px) {
  .pub-tool__title-full,
  .pub-tool__caption-full {
    display: none;
  }
}

@media (min-width: 508px) {
  .pub-tool__title-short,
  .pub-tool__caption-short {
    display: none;
  }
}

@media (max-width: 392px) {
  .cta-block__content {
    gap: 20px;
  }
}

@media (max-width: 379px) {
  .sp-services__arrow {
    left: 30px;
  }
  .sp-services__wheel {
    left: 12px;
  }
}

/* ---------- Skills ---------- */
.skills {
  display: flex;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 12px;
  margin-bottom: 0;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  height: 44px;
  font-size: 15px;
  font-weight: 400;
  line-height: 22.5px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-body);
  background: transparent;
}

/* ---------- GALLERY SECTION ---------- */
.gallery-section {
  padding-bottom: 80px;
}
.gallery-masonry {
  display: block;
  column-count: 1;
  column-gap: 24px;
}
@media (min-width: 768px) {
  .gallery-masonry {
    column-count: 2;
  }
}
@media (min-width: 1024px) {
  .gallery-masonry {
    column-count: 3;
  }
}
.gallery-item {
  display: block;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: 24px;
}
.gallery-item__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover .gallery-item__img {
  transform: scale(1.05);
}
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 2, 39, 0.6);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}
.gallery-item__overlay span {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover .gallery-item__overlay span {
  transform: translateY(0);
}

/* ---------- QUERY DRAWER ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 2, 39, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}
.query-drawer {
  position: fixed;
  top: 40px;
  right: 40px;
  bottom: 40px;
  height: calc(100vh - 80px);
  width: 100%;
  max-width: 500px;
  background: #FCFBFF;
  z-index: 10001;
  transform: translateX(calc(100% + 40px));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 40px rgba(12, 2, 39, 0.1);
  border-radius: 24px;
}
.query-drawer.active {
  transform: translateX(0);
}
.query-drawer__header {
  padding: 24px 32px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.query-drawer__title {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 700;
  color: #450dd5;
}
.query-drawer__close {
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #121316;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.query-drawer__close:hover {
  opacity: 1;
}
.query-drawer__body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}
.query-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #121316;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  padding: 14px 20px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 999px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #121316;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group textarea {
  border-radius: 24px;
  min-height: 100px;
}
.form-group input[type="file"] {
  padding: 10px 20px;
  border: 1px dashed rgba(0,0,0,0.2);
  border-radius: 999px;
  background: #f9f9f9;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #666;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #450dd5;
  box-shadow: 0 0 0 3px rgba(69, 13, 213, 0.1);
}
.query-submit-btn {
  margin-top: 16px;
  background: #450dd5;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}
.query-submit-btn:hover {
  background: #3607af;
  transform: translateY(-2px);
}

/* Query Form AJAX Response States */
.query-form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  animation: fadeInSuccess 0.5s ease forwards;
}

.query-form-success__icon {
  margin-bottom: 24px;
}

.checkmark-svg circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #450dd5;
  fill: none;
  animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-svg path {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

.query-form-success__title {
  font-family: var(--font, 'CabinetGrotesk-Bold', sans-serif);
  font-size: 28px;
  font-weight: 700;
  color: #121316;
  margin: 0 0 12px 0;
}

.query-form-success__text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(18, 19, 22, 0.7);
  margin: 0;
}

.query-form-error {
  margin-top: 16px;
  padding: 14px 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border-radius: 12px;
  text-align: center;
  animation: fadeInSuccess 0.3s ease forwards;
}

@keyframes fadeInSuccess {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes strokeCircle {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes strokeCheck {
  100% {
    stroke-dashoffset: 0;
  }
}

/* ---------- MEGA MENU (Removed duplicate) ---------- */

.logo-bar__logo {
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
  color: var(--text);
  letter-spacing: -0.18px;
}

/* ---------- Work Grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.work-card {
  display: block;
  border-radius: 0;
  overflow: visible;
  text-decoration: none;
  color: inherit;
  border: none;
  transition: transform 0.45s var(--ease-out-back-soft);
  will-change: transform;
}

a.work-card {
  cursor: pointer;
}

@media (hover: hover) {
  a.work-card:hover {
    transform: translateY(-4px);
  }
  a.work-card:active {
    transform: translateY(-1px);
    transition: transform 0.18s var(--ease-out-quart);
  }
}

.work-card--static {
  cursor: default;
  opacity: 0.8;
}

.work-card--static:hover {
  transform: none;
}

.work-card__image {
  width: 100%;
  aspect-ratio: 16 / 13;
  border-radius: 24px;
  overflow: hidden;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}

.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-card__body {
  padding: 16px 0 0;
}

.work-card__company {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--text);
}

.work-card__company em,
.work-card__company i {
  font-style: italic;
  font-weight: 400;
}

.work-card__role {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 24px;
}

/* ---------- Experience ---------- */
.experience-group {
  margin-bottom: 56px;
}

.experience-group-label {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 600;
  line-height: 33.6px;
  letter-spacing: -1.2px;
  color: var(--text);
  margin-bottom: 24px;
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-date {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--text-muted);
}

.timeline-role {
  font-size: 17px;
  font-weight: 600;
  line-height: 25.5px;
  color: var(--text);
}

.timeline-company {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--text-muted);
}

/* ---------- Testimonials ---------- */
.testimonials {
  margin-top: 16px;
}

.testimonial {
  margin-bottom: 48px;
}

.testimonial__quote {
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: -0.96px;
  color: var(--text-body);
  margin-bottom: 16px;
}

.testimonial__quote strong {
  font-weight: 800;
}

.testimonial__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.testimonial__role {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */
.contact-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-body);
  line-height: 30px;
  margin-bottom: 16px;
  margin-bottom: 16px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 32px;
  align-items: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  height: 51px;
  padding: 0 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s ease;
}

.cta-button:hover {
  background: var(--accent-hover);
}

.contact-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-link .arrow {
  display: inline-block;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.contact-link:hover .arrow {
  transform: translate(2px, -2px);
}

.contact-meta {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--text-muted);
  margin-top: 0;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 128px;
  padding: 32px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  color: var(--text-muted);
}

/* ---------- Case Study Pages ---------- */

/* Case nav bar */
.case-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.case-nav .back-link {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.case-nav .back-link:hover {
  color: var(--text);
}

.case-nav__wordmark {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* Case hero */
.case-hero {
  width: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 24px;
  position: relative;
}

.case-hero__company {
  font-family: var(--font);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.case-hero__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.case-hero__role {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* Case metadata */
.case-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  max-width: var(--content-max);
  margin: 0 auto;
}

.case-meta__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.case-meta__value {
  font-size: 16px;
  color: var(--text);
}

/* Case sections */
.case-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

.case-section {
  padding: 48px 0;
}

.case-section__heading {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 16px;
}

.case-section__body {
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.65;
}

.case-section__body p {
  margin-bottom: 12px;
}

.case-section__body p:last-child {
  margin-bottom: 0;
}

.case-section__image {
  width: 100%;
  border-radius: 12px;
  margin: 32px 0;
}

/* Case footer */
.case-footer {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Case Study: Dilara-style ---------- */

/* Floating back button */
.case-back {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--text);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: var(--font);
}

.case-back:hover {
  background: #333;
  transform: scale(1.02);
}

/* Full-bleed hero */
.case-hero--full {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px clamp(24px, 5vw, 64px);
  overflow: hidden;
}

.case-hero--full__company {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  color: #fff;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.case-hero--full__subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.case-hero--full__role {
  position: absolute;
  top: 24px;
  right: clamp(24px, 5vw, 64px);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* Case study sections */
.case-block {
  padding: clamp(48px, 6vw, 96px) clamp(24px, 5vw, 64px);
}

.case-block--white {
  background: #fff;
}

.case-block--light {
  background: #F5F5F3;
}

.case-block--dark {
  background: var(--text);
  color: #fff;
}

.case-block--dark .case-block__heading {
  color: #fff;
}

.case-block--dark .case-block__body {
  color: rgba(255, 255, 255, 0.7);
}

.case-block__inner {
  max-width: 960px;
  margin: 0 auto;
}

.case-block__heading {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
}

.case-block__heading--editorial {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.case-block__body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
}

.case-block__body p {
  margin-bottom: 16px;
}

.case-block__body p:last-child {
  margin-bottom: 0;
}

.case-block__contributions {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 16px;
}

.case-block__contributions strong {
  color: var(--text);
}

/* Objectives vs Outcome grid */
.obj-outcome {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 32px;
}

.obj-outcome__col h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.obj-outcome__col ul {
  list-style: none;
  padding: 0;
}

.obj-outcome__col li {
  padding: 8px 0;
  font-size: 16px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
}

.obj-outcome__col li:last-child {
  border-bottom: none;
}

.obj-outcome__col li strong {
  color: var(--text);
  font-weight: 700;
}

/* 3-column insight/principle cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.card-grid__item {
  padding: 24px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.case-block--dark .card-grid__item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-grid__item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-grid__item p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.55;
}

.case-block--dark .card-grid__item h4 {
  color: #fff;
}

.case-block--dark .card-grid__item p {
  color: rgba(255, 255, 255, 0.6);
}

/* Image showcase */
.case-image {
  width: 100%;
  border-radius: 12px;
  margin: 32px 0;
}

.case-image--no-radius {
  border-radius: 0;
}

.case-caption {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: -20px;
  margin-bottom: 32px;
}

.case-caption strong {
  color: var(--text);
}

.case-block--dark .case-caption strong {
  color: #fff;
}

.case-block--dark .case-caption {
  color: rgba(255, 255, 255, 0.5);
}

/* Screenshot grid (dark sections) */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.screenshot-grid img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* Case study footer */
.case-study-footer {
  padding: 48px clamp(24px, 5vw, 64px);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Publications Page ---------- */
.pub-entry {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.pub-entry__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.pub-entry__meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pub-entry__desc {
  color: var(--text-body);
}

.pub-entry__badge {
  display: inline;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- Signature Draw Animation ---------- */
.signature-wrap {
  position: relative;
  width: 123px;
  height: 48px;
}

.signature-wrap svg {
  width: 123px;
  height: 48px;
  display: block;
}

.signature-wrap svg path {
  transition: opacity 0.08s ease;
}

/* ---------- Cat Cursor Easter Egg ---------- */
.cat-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  display: none;
  width: 96px;
  height: 96px;
}

.cat-cursor--visible {
  display: block;
}

/* The blob canvas is the background "ink blot" */
.cat-cursor .blob-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Cat sits on top of the blob */
.cat-cursor .cat {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  height: 41%;
  width: 46%;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 2;
}

.cat-cursor--cat-visible .cat {
  opacity: 1;
}


.cat-cursor .ear {
  position: absolute;
  top: -30%;
  height: 60%;
  width: 25%;
  background: #fff;
}

.cat-cursor .ear::before,
.cat-cursor .ear::after {
  content: '';
  position: absolute;
  bottom: 24%;
  height: 10%;
  width: 5%;
  border-radius: 50%;
  background: #161616;
}

.cat-cursor .ear::after {
  transform-origin: 50% 100%;
}

.cat-cursor .ear--left {
  left: -7%;
  border-radius: 70% 30% 0% 0% / 100% 100% 0% 0%;
  transform: rotate(-15deg);
}

.cat-cursor .ear--left::before,
.cat-cursor .ear--left::after {
  right: 10%;
}

.cat-cursor .ear--left::after {
  transform: rotate(-45deg);
}

.cat-cursor .ear--right {
  right: -7%;
  border-radius: 30% 70% 0% 0% / 100% 100% 0% 0%;
  transform: rotate(15deg);
}

.cat-cursor .ear--right::before,
.cat-cursor .ear--right::after {
  left: 10%;
}

.cat-cursor .ear--right::after {
  transform: rotate(45deg);
}

.cat-cursor .face {
  position: absolute;
  height: 100%;
  width: 100%;
  background: #161616;
  border-radius: 50%;
}

.cat-cursor .eye {
  position: absolute;
  top: 35%;
  height: 30%;
  width: 31%;
  background: #fff;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.cat-cursor .eye::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 100%;
  border-radius: 0 0 50% 50% / 0 0 40% 40%;
  background: #161616;
  animation: cat-blink 4s infinite ease-in;
}

.cat-cursor .eye::before {
  content: '';
  position: absolute;
  top: 60%;
  height: 10%;
  width: 15%;
  background: #fff;
  border-radius: 50%;
}

.cat-cursor .eye--left {
  left: 0;
}

.cat-cursor .eye--left::before {
  right: -5%;
}

.cat-cursor .eye--right {
  right: 0;
}

.cat-cursor .eye--right::before {
  left: -5%;
}

.cat-cursor .eye-pupil {
  position: absolute;
  top: 25%;
  height: 50%;
  width: 20%;
  background: #161616;
  border-radius: 50%;
  animation: cat-look 4s infinite;
}

.cat-cursor .eye--left .eye-pupil {
  right: 30%;
}

.cat-cursor .eye--right .eye-pupil {
  left: 30%;
}

.cat-cursor .eye-pupil::after {
  content: '';
  position: absolute;
  top: 30%;
  right: -5%;
  height: 20%;
  width: 35%;
  border-radius: 50%;
  background: #fff;
}

.cat-cursor .muzzle {
  position: absolute;
  top: 60%;
  left: 50%;
  height: 6%;
  width: 10%;
  background: #fff;
  transform: translateX(-50%);
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
}

@keyframes cat-blink {
  0% { height: 0; }
  90% { height: 0; }
  92.5% { height: 100%; }
  95% { height: 0; }
  97.5% { height: 100%; }
  100% { height: 0; }
}

@keyframes cat-look {
  0% { transform: translate(0); }
  5% { transform: translate(50%, -25%); }
  10% { transform: translate(50%, -25%); }
  15% { transform: translate(-100%, -25%); }
  20% { transform: translate(-100%, -25%); }
  25% { transform: translate(0, 0); }
  100% { transform: translate(0, 0); }
}

/* ---------- Desktop Breakpoint (1296px+) ---------- */
@media (min-width: 1296px) {

  /* Hide mobile header */
  .mobile-header {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  /* Show sidebar */
  .sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    padding: 40px 0 40px 32px;
    z-index: 50;
  }

  .sidebar-top {
    display: flex;
    flex-direction: column;
  }

  .sidebar-name {
    display: block;
    margin-bottom: 27px;
    position: relative;
    width: 123px;
    height: 48px;
  }

  .sidebar-name img {
    width: 123px;
    height: 48px;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .nav-link {
    font-size: 15px;
    font-weight: 600;
    line-height: 22.5px;
    height: 32px;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    padding: 0;
    transition: color 0.25s var(--ease-out-quart);
  }

  .nav-link:hover {
    color: var(--text);
  }

  .nav-link.active {
    color: var(--text);
    font-weight: 600;
  }

  .sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .sidebar-divider {
    border-top: 1px solid var(--border);
    margin-bottom: 8px;
  }

  .sidebar-external {
    font-size: 14px;
    font-weight: 600;
    line-height: 21px;
    color: var(--text-muted);
    transition: color 0.2s ease;
  }

  .sidebar-external:hover {
    color: var(--text);
  }

  /* Content offset */
  .content {
    margin-left: 0 !important;
    padding: 0 40px 96px;
  }


  /* Work grid on desktop */
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 16px;
    row-gap: 64px;
  }

  /* Timeline grid on desktop */
  .timeline-item {
    grid-template-columns: 140px 1fr;
    gap: 16px;
  }

  /* Case meta 4-col on desktop */
  .case-meta {
    grid-template-columns: repeat(4, 1fr);
  }

  .obj-outcome {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Sidebar: narrower padding at <1328px ---------- */
@media (min-width: 1296px) and (max-width: 1327px) {
  .content {
    padding: 0 24px 48px;
  }
}

/* ---------- Sidebar: narrower at <1400px ---------- */
@media (min-width: 1296px) and (max-width: 1399px) {
  :root {
    --sidebar-width: 160px;
  }
}

/* ---------- Sidebar: compact at <1340px ---------- */
@media (min-width: 1296px) and (max-width: 1339px) {
  :root {
    --sidebar-width: 148px;
  }
  .sidebar {
    padding: 28px 0 28px 20px;
  }
}

/* ---------- Content side padding when sidebar hidden but still desktop ---------- */
@media (min-width: 1000px) and (max-width: 1295px) {
  .content {
    padding: 0 24px 48px;
  }
}

/* ---------- Services widget tighter at <1130px ---------- */
@media (max-width: 1127px) {
  .publications__tools {
    padding-left: 0;
  }
}

@media (min-width: 1000px) and (max-width: 1129px) {
  .sp-services__arrow {
    left: 14px;
  }
  .sp-services__wheel {
    left: -12px;
  }
  .sp-services__pill-stack {
    left: 238px;
  }
}

/* ---------- About Section ---------- */
.about-section {
  padding-top: 77px;
  padding-bottom: 0;
}

/* About Body: text left, photos right on desktop */
/* About Body: text + photos side by side on desktop */
.about__body {
  display: flex;
  gap: 48px;
}

/* About Hero Photo — single portrait, desktop only */
.about__hero-photo {
  flex-shrink: 0;
  width: 350px;
  border-radius: 28px;
  overflow: visible;
  position: relative;
  will-change: transform, opacity;
  opacity: 0;
  translate: 0 20px;
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), translate 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.about__hero-glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 28px;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.about__hero-photo.about__hero-photo--visible {
  opacity: 1;
  translate: 0 0;
}

.about__hero-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* About Photos — mobile only strip */
.about__photos {
  display: none;
}

.about__photo {
  overflow: hidden;
}

.about__photo.about__photo--animated {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.about__photo.about__photo--visible {
  opacity: 1;
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__heading {
  font-size: 40px;
  font-weight: 600;
  line-height: 41.6px;
  letter-spacing: -2px;
  color: #181212;
  margin: 0;
  padding-bottom: 43px;
  text-align: left;
}

.about__content {
  font-size: 24px;
  font-weight: 400;
  line-height: 33.6px;
  letter-spacing: -0.7px;
  color: #211B1C;
}

.about__content p {
  margin: 0 0 21px;
}

.about__content p:last-child {
  margin-bottom: 0;
}

.about__footer {
  display: flex;
  padding-top: 89px;
}

.about__cta-card {
  background: rgba(239, 246, 255, 0.8);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.about__cta-br {
  display: none;
}

.about__cta-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 33.6px;
  letter-spacing: -1px;
  color: #211B1C;
  text-align: center;
}

.about__cta-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.about__email-pill {
  flex: 1;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 20px;
  background: rgba(209, 227, 255, 0.64);
  border: none;
  border-radius: 1000px;
  padding: 4px 4px 4px 24px;
  box-shadow:
    inset 0 1.5px 0 0 rgba(193, 197, 240, 0.2),
    0 1.5px 0 0 rgba(255, 255, 255, 0.40);
}

.about__email-text {
  flex: 1;
  font-size: 17px;
  font-weight: 400;
  line-height: 21.76px;
  letter-spacing: -1px;
  color: #2B2525;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.about__icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.2s ease;
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 2px 0 0 rgba(255, 255, 255, 1),
    0 1px 0 0 rgba(22, 24, 29, 0.02),
    0 0 0 1px rgba(22, 24, 29, 0.02),
    0 1px 8px -4px rgba(22, 24, 29, 0.04),
    0 4px 12px -6px rgba(22, 24, 29, 0.04),
    0 1px 3px 1px rgba(22, 24, 29, 0.01);
}

.about__icon-btn img {
  display: block;
}

#aboutCopyEmail img {
  opacity: 0.72;
  transition: opacity 0.15s ease;
}

#aboutCopyEmail:hover img {
  opacity: 1;
}

.about__icon-btn:hover {
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 2px 0 0 rgba(255, 255, 255, 1),
    0 0 0 1px rgba(0, 46, 113, 0.05),
    0 2px 8px 0 rgba(0, 46, 113, 0.02),
    0 4px 12px -20px rgba(0, 46, 113, 0.04),
    0 6px 16px -20px rgba(0, 46, 113, 0.06),
    0 8px 20px -20px rgba(0, 46, 113, 0.08),
    0 10px 24px -20px rgba(0, 46, 113, 0.11),
    0 12px 26px -20px rgba(0, 46, 113, 0.13),
    0 14px 28px -20px rgba(0, 46, 113, 0.15);
}

.about__icon-btn:active {
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 1px 0 0 rgba(0, 46, 113, 0.04);
  transition: none;
}

.about__icon-btn:active img {
  opacity: 0.56;
}

/* While being dragged, suppress the :active pressed state and force full opacity */
.about__icon-btn.is-dragging,
.about__icon-btn.is-dragging:active {
  background: rgba(255, 255, 255, 0.68) !important;
  box-shadow:
    inset 0 2px 0 0 rgba(255, 255, 255, 1),
    0 1px 0 0 rgba(22, 24, 29, 0.02),
    0 0 0 1px rgba(22, 24, 29, 0.02),
    0 1px 8px -4px rgba(22, 24, 29, 0.04),
    0 4px 12px -6px rgba(22, 24, 29, 0.04),
    0 1px 3px 1px rgba(22, 24, 29, 0.01) !important;
  transition: none !important;
  opacity: 1 !important;
}

.about__icon-btn.is-dragging img,
.about__icon-btn.is-dragging:active img {
  opacity: 1 !important;
}

.about__book-btn {
  flex-shrink: 0;
}

/* Ask AI block */
.about__ask-ai {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px;
  gap: 18px;
}

.about__ask-ai-title {
  font-size: 24px;
  font-weight: 400;
  line-height: 33.6px;
  letter-spacing: -1px;
  color: #352F2F;
  text-align: center;
}

.about__ai-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(232, 227, 227, 0.64);
  border: none;
  border-radius: 1000px;
  padding: 4px;
  box-shadow:
    inset 0 1.5px 0 0 rgba(24, 18, 18, 0.04),
    0 2px 0 0 rgba(255, 255, 255, 0.40);
}


/* ---------- Footer ---------- */
.site-footer {
  padding: 99px 0 0;
  margin-bottom: -8px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  font-size: 17px;
  font-weight: 400;
  line-height: 21.76px;
  letter-spacing: -1px;
  color: #2B2525;
}

.footer__copyright strong {
  font-weight: 600;
}

.footer__socials {
  display: flex;
  gap: 32px;
  align-items: center;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease;
}

.footer__social:hover {
  opacity: 0.7;
}

.footer__social img {
  display: block;
}

/* ---------- About / Footer Responsive ---------- */
@media (max-width: 1110px) {
  .about__body {
    gap: 16px;
  }
}

@media (max-width: 1079px) {
  .about__hero-photo {
    width: 28vw;
  }
}

@media (max-width: 900px) {
  .about-section {
    padding-top: 21px;
  }

  .about__body {
    flex-direction: column;
    gap: 0;
  }

  .about__hero-photo {
    display: none;
  }

  .about__photos {
    display: flex;
    width: 100%;
    flex-direction: row;
    gap: 2px;
    height: 220px;
    margin-bottom: 32px;
    order: -1;
    border-radius: 24px;
    overflow: hidden;
  }

  .about__photo {
    flex: 1;
    min-width: 0;
    border-radius: 0;
    height: 100%;
    opacity: 1;
    translate: none;
  }

  .about__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
  }

  @media (min-width: 700px) {
    .about__photos {
      height: 288px;
    }

    .about__photo img {
      object-position: center 10%;
    }
  }

  .about__heading {
    font-size: 32px;
    line-height: 36px;
    letter-spacing: -1.5px;
    padding-bottom: 32px;
  }

  .about__content {
    font-size: 22px;
    line-height: 32px;
    letter-spacing: -0.5px;
  }

  .about__content p {
    margin-bottom: 16px;
  }

  .about__footer {
    flex-direction: column;
    align-items: center;
    padding-top: 71px;
  }

  .about__cta-card {
    flex: none;
    border-radius: 32px;
    padding: 28px 28px 32px;
  }

  .about__ask-ai {
    padding: 40px 0 32px;
  }

  .about__ask-ai-title {
    font-size: 24px;
  }

  .site-footer {
    padding-top: 48px;
  }
}

@media (max-width: 767px) {
  .about__book-btn {
    display: inline-flex !important;
    padding-right: 22px;
  }

  .about__book-btn svg {
    display: none;
  }
}

@media (max-width: 544px) {
  .about__cta-controls {
    flex-direction: column;
  }

  .about__email-pill {
    width: 100%;
  }

  .about__email-text {
    text-align: center;
  }

  .about__book-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .about__cta-br {
    display: block;
  }
}

@media (max-width: 600px) {
  .about-section {
    padding-top: 0;
  }

  .about__photos {
    height: 180px;
    margin-bottom: 24px;
    border-radius: 20px;
  }

  .about__heading {
    font-size: 28px;
    line-height: 32px;
    padding-bottom: 24px;
  }

  .about__content {
    font-size: 20px;
    line-height: 28px;
    letter-spacing: -0.3px;
  }

  .about__content p {
    margin-bottom: 14px;
  }

  .about__footer {
    padding-top: 52px;
  }

  .about__ask-ai {
    gap: 12px;
  }

  .about__ask-ai-title {
    font-size: 20px;
  }

  .site-footer {
    padding-top: 23px;
  }

  .about__cta-card {
    padding: 20px 20px 24px;
    border-radius: 28px;
    gap: 16px;
  }

  .about__cta-title {
    font-size: 20px;
    line-height: 28px;
    letter-spacing: -0.7px;
  }

  .about__email-pill {
    gap: 12px;
    padding-left: 16px;
  }

  .about__email-text {
    font-size: 17px;
    letter-spacing: -1px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer__copyright {
    font-size: 15px;
    letter-spacing: -0.5px;
  }
}

/* ---------- Page Load & Scroll Reveal ---------- */
/* Spring-easing reveals: short opacity, slightly longer transform with soft overshoot */
.reveal-load {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
}

.reveal-load--active {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.45s var(--ease-out-quart),
              transform 0.7s var(--ease-out-back-soft);
}

.reveal-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease-out-quart),
              transform 0.65s var(--ease-out-back-soft);
}

/* Publications & About sections breathe slower */
.publications__articles.reveal-scroll,
.publications__tools.reveal-scroll,
.about__heading.reveal-scroll,
.about__footer.reveal-scroll {
  transition: opacity 0.5s var(--ease-out-quart),
              transform 0.8s var(--ease-out-back-soft);
}

.publications__tools.reveal-scroll {
  transition-delay: 120ms;
}

.reveal-scroll--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sidebar load — container fades, children stagger */
.sidebar.reveal-load {
  transform: translateY(0);
  opacity: 1;
}

.sidebar.reveal-load--active {
  transform: translateY(0);
}

.sidebar .reveal-load {
  opacity: 0;
  transform: translateY(8px);
}

.sidebar .reveal-load--active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s var(--ease-out-quart),
              transform 0.55s var(--ease-out-back-soft);
}

/* Stagger experience rows */
.experience__row.reveal-scroll:nth-child(1) { transition-delay: 0ms; }
.experience__row.reveal-scroll:nth-child(2) { transition-delay: 40ms; }
.experience__row.reveal-scroll:nth-child(3) { transition-delay: 80ms; }
.experience__row.reveal-scroll:nth-child(4) { transition-delay: 120ms; }
.experience__row.reveal-scroll:nth-child(5) { transition-delay: 160ms; }
.experience__row.reveal-scroll:nth-child(6) { transition-delay: 200ms; }
.experience__row.reveal-scroll:nth-child(7) { transition-delay: 240ms; }
.experience__row.reveal-scroll:nth-child(8) { transition-delay: 280ms; }

/* ---------- Reduced Motion ---------- */

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

  .globe-spinning .globe-meridian {
    animation: none !important;
  }

  .work-card {
    transition: none;
  }

  a.work-card:hover {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }

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

/* ==========================================================================
   transplant custom enhancements: Active Nav link styling, Message CTA button,
   Products and Blogs side-by-side grid columns, and Mega Menu Contact widget
   ========================================================================== */

/* Active tab styling update */
.floating-nav__link.active {
  color: var(--accent) !important;
  background: rgba(69, 13, 213, 0.08) !important;
  border: 1px solid rgba(69, 13, 213, 0.16) !important;
}
.floating-nav__link {
  border: 1px solid transparent;
}

.floating-nav__cta {
  background: var(--accent);
  color: #FFFFFF !important;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
  margin-left: 4px;
}
.floating-nav__cta:hover {
  background: #3909B8;
  transform: scale(1.03);
}
.floating-nav__cta:active {
  transform: scale(0.97);
}

/* Products and Blogs Column Layout */
.products-and-blogs {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.pub-articles, .blog-articles {
  flex: 1;
  min-width: 0;
}

.pub-articles__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

/* Styled Product & Blog Cards */
.pub-article {
  background: var(--neutral-25) !important;
  border: 1px solid rgba(229, 229, 229, 0.6) !important;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease !important;
}

.pub-article:hover {
  background: var(--neutral-50) !important;
  border-color: rgba(69, 13, 213, 0.2) !important;
  transform: translateY(-2px);
}

/* Thumbnail and Badge */
.pub-article__image {
  position: relative;
  width: 148px;
  height: 148px;
  flex-shrink: 0;
  overflow: visible !important;
}

.pub-article__image-inner {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
}

.pub-article__badge {
  position: absolute;
  width: 38px;
  height: 38px;
  background: #000000;
  border-radius: 10px;
  bottom: -6px;
  left: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
  border: 1.5px solid #FFFFFF;
}

@media (max-width: 850px) {
  .products-and-blogs {
    flex-direction: column;
    gap: 48px;
  }
}

/* About me photo scroll reveal fix */
.about__hero-photo.reveal-scroll--visible {
  opacity: 1 !important;
  translate: 0 0 !important;
}

/* ---------- Mega Menu Contact Grid ---------- */
.mega-menu {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 680px;
  max-width: 95vw;
  max-height: 580px;
  background: rgba(255, 255, 255,1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(229, 229, 229, 0.6);
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  z-index: 999;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.mega-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(229, 229, 229, 0.5);
  padding-bottom: 12px;
}

.mega-menu__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-body);
  letter-spacing: -0.5px;
}

.mega-menu__close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--neutral-500);
  transition: color 0.2s ease;
  padding: 0 4px;
}

.mega-menu__close:hover {
  color: var(--text);
}

.mm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 16px;
}

.mm-card {
  background: #f3f3f3;
  border: none;
  border-radius: 24px;
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.2s ease, box-shadow 0.25s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.mm-card:hover {
  transform: translateY(-3px);
  background: var(--neutral-25);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  border-color: rgba(69, 13, 213, 0.12);
}

/* Bento Spans */
.mm-card--cv {
  grid-column: span 2;
  grid-row: span 1;
}

.mm-card--book {
  grid-column: span 2;
  grid-row: span 2;
}

.mm-card--instagram {
  grid-column: span 1;
  grid-row: span 1;
}

.mm-card--linkedin {
  grid-column: span 1;
  grid-row: span 1;
}

.mm-card--x {
  grid-column: span 1;
  grid-row: span 1;
}

.mm-card--span2, .mm-card--email {
  grid-column: span 3;
  grid-row: span 1;
}

.mm-card__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.mm-card__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.mm-card__btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: var(--neutral-700);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.mm-card:hover .mm-card__btn {
  transform: scale(1.05);
}

.mm-card:hover .mm-card__btn {
  transform: scale(1.05);
}

.mm-card__footer {
  display: flex;
  align-items: center;
}

.mm-card__icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  margin-right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.bg-box {
  background: #0061FF;
  color: #FFFFFF;
}

.bg-linkedin {
  background: #0077B5;
  color: #FFFFFF;
}

.bg-gmail {
  background: #EA4335;
  color: #FFFFFF;
}

.bg-black {
  background: #121316;
  color: #FFFFFF;
}

.mm-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-body);
  letter-spacing: -0.5px;
}

.mm-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-body);
  letter-spacing: -0.5px;
}

.mm-card__sphere {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FF8DA1 0%, #FF3366 75%, #990033 100%);
  box-shadow: 0 8px 24px rgba(153, 0, 51, 0.3);
  filter: blur(0.5px);
  pointer-events: none;
}

.mm-card__copied-msg {
  position: absolute;
  top: 16px;
  right: 60px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.mm-card__copied-msg.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 560px) {
  .mm-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .mm-card--span2 {
    grid-column: span 1;
  }
  .mm-card {
    height: 140px;
  }
  .mega-menu {
    bottom: 84px;
    padding: 16px;
    border-radius: 24px;
    max-height: 520px;
  }
}

/* Social Links Hover Colors */
.mm-card--cv:hover {
  background-color: var(--accent);
}
.mm-card--cv:hover .mm-card__label,
.mm-card--cv:hover .mm-card__title,
.mm-card--cv:hover {
  color: #fff !important;

}
.mm-card__btn{
  color: var(--accent);
}

.mm-card--instagram:hover {
  background-color: #E1306C;
}
.mm-card--instagram:hover .mm-card__label,
.mm-card--instagram:hover .mm-card__title,
.mm-card--instagram:hover  {
  color: #fff !important;
}

.mm-card--linkedin:hover {
  background-color: #0A66C2;
}
.mm-card--linkedin:hover .mm-card__label,
.mm-card--linkedin:hover .mm-card__title,
.mm-card--linkedin:hover  {
  color: #fff !important;
}

.mm-card--x:hover {
  background-color: #000000;
}
.mm-card--x:hover .mm-card__label,
.mm-card--x:hover .mm-card__title,
.mm-card--x:hover  {
  color: #fff !important;
}

.mm-card--email:hover {
  background-color: #FF831D; /* secondary orange */
}
.mm-card--email:hover .mm-card__label,
.mm-card--email:hover .mm-card__title,
.mm-card--email:hover .mm-card__btn,
.mm-card--email:hover .mm-card__copied-msg {
  color: #fff !important;
}

.mm-card--book:hover {
  background-color: #FF831D;
}
.mm-card--book:hover .mm-card__label,
.mm-card--book:hover .mm-card__title,
.mm-card--book:hover  {
  color: #fff !important;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2fr, 1fr);
  gap: 32px;
}
.portfolio-card:hover img {
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* Products Bento Grid */
.bento-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.bento-item {
  border-radius: 32px;
  height: 440px;
  width: 90%;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  transition: transform 0.3s ease;
}
.bento-item:hover {
  transform: translateY(-4px);
}
.bento-item--large {
  grid-column: span 2;
  grid-row: span 2;
  color: #fff;
}
.bento-item--medium {
  grid-column: span 1;
  grid-row: span 1;
}
.bento-item--small {
  grid-column: span 1;
  grid-row: span 1;
}
.bento-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255,255,255,0.2);
  margin-bottom: 16px;
  width: fit-content;
}
.bento-badge--dark {
  background: rgba(0,0,0,0.05);
  color: #121316;
}
.bento-badge--blue {
  background: rgba(10, 102, 194, 0.1);
  color: #0A66C2;
}
.bento-item-content{
  width: fit-content;
  padding: 24px;
  gap: 12px;
}
.bento-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.2;
}
.bento-title--dark {
  color: #1e1f23;
}
.bento-desc {
  font-size: 18px;
  line-height: 1.5;
  opacity: 0.8;
  margin: 0;
  max-width: 80%;
}
.bento-desc--dark {
  color: #4b5563;
}
.bento-img--bottom-right {
  width: 60%;
  height: 440px;
}
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .bento-item--large, .bento-item--medium, .bento-item--small {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 240px;
  }
  .bento-img--bottom-right {
    position: relative;
    right: 0;
    bottom: 0;
    width: 100%;
    margin-top: 24px;
  }
}

/* ============================================
   RADILSON-STYLE ABOUT SECTION — BENTO GRID
   ============================================ */
.rad-about {
  padding-top: 80px;
  padding-bottom: 0;
}

.rad-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}

.rad-about__card {
  background: #f5f5f7;
  height: auto;
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rad-about__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

/* ---- Left Column Cards ---- */
.rad-about__col-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Bio intro card */
.rad-about__bio-card {
  padding: 32px;
}

.rad-about__bio-card p {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
  color: #121316;
  margin: 0;
}

.rad-about__bio-card p strong {
  font-weight: 700;
}

.rad-about__bio-socials {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

.rad-about__social-icons {
  display: flex;
  gap: 8px;
}

.rad-about__social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #121316;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.rad-about__social-icon:hover {
  background: #6F47FF;
  color: #fff;
}

.rad-about__resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  color: #121316;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.rad-about__resume-btn:hover {
  background: #121316;
  color: #fff;
  border-color: #121316;
}

/* Background text card */
.rad-about__bg-card {
  flex: 1;
}

.rad-about__bg-card .rad-about__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #6F47FF;
  margin-bottom: 20px;
  display: block;
}

.rad-about__bg-card p {
  font-size: 17px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 14px;
}

.rad-about__bg-card p:last-of-type {
  margin-bottom: 0;
}

.rad-about__bg-card p strong {
  color: #121316;
  font-weight: 600;
}

.rad-about__bg-card p em {
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: rgba(111, 71, 255, 0.3);
  text-underline-offset: 3px;
}

.rad-about__signature {
  margin-top: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-style: italic;
  color: #121316;
  opacity: 0.6;
}

/* Photo Gallery Card (below bg text, left col bottom) */
.rad-about__gallery-card {
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  min-height: 320px;
  position: relative;
}

.rad-gallery__slides {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.rad-gallery__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.rad-gallery__slide.active {
  opacity: 1;
  z-index: 2;
}

.rad-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dots Navigation */
.rad-gallery__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.rad-gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.rad-gallery__dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.rad-gallery__dot.active {
  background: #ffffff;
  transform: scale(1.3);
}

/* ---- Middle Column Cards ---- */
.rad-about__col-mid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Portrait + Chat card */
.rad-about__portrait-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  min-height: 500px;
  justify-content: flex-end;
  position: relative;
}

.rad-about__portrait-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0, 0, 0, 0.15) 55%,
    rgba(0, 0, 0, 0.55) 80%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.rad-about__chat-area {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.rad-about__chat-bubble {
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px 18px 18px 4px;
  width: fit-content;
  max-width: 90%;
  opacity: 0;
  transform: translateY(12px);
  animation: chatFadeIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.rad-about__chat-bubble:nth-child(1) { animation-delay: 0.3s; }
.rad-about__chat-bubble:nth-child(2) { animation-delay: 0.8s; }
.rad-about__chat-bubble:nth-child(3) { animation-delay: 1.3s; }
.rad-about__chat-bubble:nth-child(4) { animation-delay: 1.8s; }

@keyframes chatFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rad-about__chat-bubble--highlight {
  background: rgba(111, 71, 255, 0.25);
  color: #e8deff;
  font-weight: 500;
}

/* Education card */
.rad-about__edu-card {
}

.rad-about__edu-card .rad-about__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #6F47FF;
  margin-bottom: 20px;
  display: block;
}

.rad-about__timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rad-about__timeline-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.rad-about__timeline-date {
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  white-space: nowrap;
  min-width: 100px;
  letter-spacing: 0.03em;
}

.rad-about__timeline-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #121316;
  margin: 0 0 2px;
}

.rad-about__timeline-info p {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

/* ---- Right Column Cards ---- */
.rad-about__col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Experience card */
.rad-about__exp-card {
}

.rad-about__exp-card .rad-about__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #6F47FF;
  margin-bottom: 24px;
  display: block;
}

.rad-about__exp-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.rad-about__exp-item:first-of-type {
  padding-top: 0;
}

.rad-about__exp-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.rad-about__exp-date {
  font-size: 13px;
  color: #9ca3af;
  white-space: nowrap;
  min-width: 120px;
}

.rad-about__exp-info {
  flex: 1;
  text-align: right;
}

.rad-about__exp-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #121316;
  margin: 0 0 4px;
}

.rad-about__exp-info .rad-about__exp-tags {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.rad-about__exp-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(111, 71, 255, 0.08);
  color: #6F47FF;
}

.rad-about__exp-tag--remote {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
}

.rad-about__exp-tag--onsite {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
}

/* Collab strip */
.rad-about__collab-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 0 4px;
  margin-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.rad-about__collab-label {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
}

.rad-about__collab-logo {
  height: 18px;
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.rad-about__collab-logo:hover {
  opacity: 1;
  filter: none;
}

/* Awards card */
.rad-about__awards-card .rad-about__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #6F47FF;
  margin-bottom: 20px;
  display: block;
}

.rad-about__awards-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rad-about__award-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rad-about__award-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(111, 71, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.rad-about__award-info h5 {
  font-size: 13px;
  font-weight: 600;
  color: #121316;
  margin: 0;
}

.rad-about__award-info p {
  font-size: 11px;
  color: #9ca3af;
  margin: 0;
}

/* Tool stack card */
.rad-about__tools-card .rad-about__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #6F47FF;
  margin-bottom: 16px;
  display: block;
}

.rad-about__tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rad-about__tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.2s ease;
}

.rad-about__tool-icon:hover {
  transform: scale(1.15);
}

.rad-about__tool-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ---- Bottom Row (CTA + Ask AI) ---- */
.rad-about__bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 0;
  grid-column: 1 / -1;
}

/* ============================================
   RADILSON-STYLE FOOTER
   ============================================ */
.rad-footer {
  padding: 80px 0 0;
  background: #fff;
  overflow: hidden;
}

.rad-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 48px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.rad-footer__logo {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #121316;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.rad-footer__logo span {
  color: #6F47FF;
}

.rad-footer__scroll-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  color: #121316;
}

.rad-footer__scroll-top:hover {
  background: #121316;
  border-color: #121316;
  color: #fff;
}

.rad-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.rad-footer__copyright {
  font-size: 13px;
  color: #9ca3af;
}

.rad-footer__copyright strong {
  color: #121316;
  font-weight: 600;
}

.rad-footer__meta {
  font-size: 13px;
  color: #9ca3af;
}

.rad-footer__meta .rad-footer__heart {
  color: #ef4444;
}

.rad-footer__giant-text {
  font-family: 'UCity Pro', sans-serif;
  font-size: clamp(80px, 14vw, 220px);
  font-weight: 900;
  text-align: center;
  color: rgba(18, 19, 22, 0.04);
  line-height: 1;
  padding: 40px 0 20px;
  user-select: none;
  letter-spacing: -0.04em;
  position: relative;
}

.rad-footer__sparkle {
  display: block;
  margin: -20px auto 0;
  width: 48px;
  height: 48px;
  color: #6F47FF;
  animation: spin 8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Responsive: Radilson About ---- */
@media (max-width: 1100px) {
  .rad-about__grid {
    grid-template-columns: 1fr 1fr;
  }
  .rad-about__col-right {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .rad-about__grid {
    grid-template-columns: 1fr;
  }
  .rad-about__col-right {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
  }
  .rad-about__bottom-row {
    grid-template-columns: 1fr;
  }
  .rad-about__awards-grid {
    grid-template-columns: 1fr;
  }
  .rad-about__bio-card p {
    font-size: 18px;
  }
  .rad-footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM OVERRIDES (Hero, Nav, Bento, Case Studies, Timeline, Footer)
   ========================================================================== */

/* --- 1. Hero Section Layout Overrides (< 1024px) --- */
@media (max-width: 1023px) {
  #nik-hero {
    height: auto !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 100px 24px 60px !important;
    box-sizing: border-box !important;
  }
  .nik-hero__content-wrap {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  /* Show headshot above text, left-aligned */
  .nik-hero__mobile-headshot {
    display: block !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
    border: 2px solid var(--border) !important;
    flex-shrink: 0 !important;
    order: 1 !important;
  }
  .nik-hero__mobile-headshot img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  /* Subtitle above name */
  .nik-hero__top-left {
    position: static !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--neutral-500) !important;
    margin-bottom: 12px !important;
    text-align: left !important;
    order: 2 !important;
  }
  /* Center row wrapper */
  .nik-hero__center-row {
    position: static !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    margin-bottom: 16px !important;
    order: 3 !important;
  }
  /* Hide the large vertical card */
  .nik-hero__photo-card {
    display: none !important;
  }
  /* Name elements stack on mobile */
  .nik-hero__name-left,
  .nik-hero__name-right {
    font-size: clamp(3.8rem, 15vw, 6.5rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.03em !important;
    font-weight: 800 !important;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
  }
  /* Subtitle below name */
  .nik-hero__bottom-right {
    position: static !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
    color: var(--neutral-600) !important;
    text-align: left !important;
    margin-top: 12px !important;
    line-height: 1.5 !important;
    order: 4 !important;
  }
  /* Hide the giant 480px gap/spacer on mobile */
  .about-intro__spacer {
    height: 0 !important;
    margin: 0 !important;
    display: none !important;
  }
}
@media (min-width: 1024px) {
  .nik-hero__mobile-headshot {
    display: none !important;
  }
}

/* --- 2. Floating Navigation Menu Layout Overrides (< 768px) --- */
@media (max-width: 767px) {
  .floating-nav__links {
    display: none !important; /* Hide menu items to fit screen */
  }
  .floating-nav {
    gap: 12px !important;
    padding: 6px 12px !important;
    max-width: 90% !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  .floating-nav__logo {
    border-right: none !important;
    padding: 0 !important;
  }
  .hide-mobile {
    display: none !important;
  }
}

/* --- 3. Bento Grid / Products Overrides (< 900px) --- */
@media (max-width: 900px) {
  .bento-grid {
    width: 100% !important;
  }
  .bento-item {
    flex-direction: column !important;
    height: auto !important;
    width: 100% !important;
    border-radius: 24px !important;
  }
  .bento-item-content {
    width: 100% !important;
    padding: 24px 20px !important;
    box-sizing: border-box !important;
  }
  .bento-img--bottom-right {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 8px !important;
    padding: 0 16px 16px 16px !important;
    object-fit: contain !important;
    box-sizing: border-box !important;
  }
}

/* --- 4. Case Studies Section Overrides (< 768px) --- */
@media (max-width: 767px) {
  .case-study {
    position: relative !important;
    top: 0 !important;
    z-index: 1 !important;
  }
  .case-study__image-wrap {
    padding: 12px !important;
    aspect-ratio: 4 / 3 !important;
    display: block !important;
    height: auto !important;
  }
  .case-study__tilt {
    height: 100% !important;
  }
  .case-study__image {
    height: 100% !important;
    object-fit: cover !important;
  }
}

/* --- 5. Experience / Timeline Details Overrides (< 768px) --- */
@media (max-width: 767px) {
  .rad-about__exp-item,
  .rad-about__timeline-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 16px 0 !important;
  }
  .rad-about__exp-info,
  .rad-about__timeline-info {
    text-align: left !important;
    width: 100% !important;
  }
  .rad-about__exp-info .rad-about__exp-tags {
    justify-content: flex-start !important;
    margin-top: 6px !important;
  }
  .rad-about__exp-date,
  .rad-about__timeline-date {
    min-width: auto !important;
    color: var(--neutral-500) !important;
  }
}

/* --- 6. Footer Giant Text Overrides (< 768px) --- */
@media (max-width: 767px) {
  .rad-footer__bottom {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
  }
  .rad-footer__giant-text {
    font-size: clamp(45px, 12vw, 85px) !important;
    padding: 20px 0 10px !important;
  }
  .rad-footer__sparkle {
    margin: 10px auto 0 !important;
    width: 36px !important;
    height: 36px !important;
  }
}
.rad-footer__giant-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw;
  margin: 0 auto;
}

/* --- 7. Mega Menu Responsive Layout (< 560px) --- */
@media (max-width: 560px) {
  .mega-menu {
    max-height: 85vh !important;
    overflow-y: auto !important;
    bottom: 84px !important;
    padding: 16px !important;
    border-radius: 24px !important;
  }
  .mm-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: 100px !important;
    gap: 10px !important;
  }
  .mm-card {
    padding: 12px !important;
    height: auto !important;
    border-radius: 16px !important;
  }
  .mm-card--cv {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
  .mm-card--book {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
  .mm-card--instagram {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
  .mm-card--linkedin {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
  .mm-card--x {
    grid-column: span 2 !important;
    grid-row: span 1 !important;
  }
  .mm-card--email, .mm-card--span2 {
    grid-column: span 2 !important;
    grid-row: span 1 !important;
  }
  .mm-card__title {
    font-size: 13px !important;
  }
  .mm-card__label {
    font-size: 9px !important;
  }
  .mm-card__btn {
    width: 24px !important;
    height: 24px !important;
  }
}

/* --- 8. Section Divider & Spacing Overrides (< 768px) --- */
@media (max-width: 767px) {
  .section {
    padding-top: 60px !important;
  }
  .section-divider {
    margin-top: 60px !important;
    padding-top: 60px !important;
    border-top: 1px solid var(--border) !important;
  }
}

/* --- 9. About Me Card Ordering Overrides (< 768px) --- */
@media (max-width: 767px) {
  .rad-about__grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .rad-about__col-left,
  .rad-about__col-mid,
  .rad-about__col-right {
    display: contents !important;
  }
  
  /* Cards order */
  .rad-about__portrait-card {
    order: 1 !important;
  }
  .rad-about__bg-card {
    order: 2 !important;
  }
  .rad-about__edu-card {
    order: 3 !important;
  }
  .rad-about__exp-card {
    order: 4 !important;
  }
  .rad-about__awards-card {
    order: 5 !important;
  }
  .rad-about__tools-card {
    order: 6 !important;
  }
  .about__cta-card {
    order: 7 !important;
  }
  .about__ask-ai {
    order: 8 !important;
  }
  .rad-about__gallery-card {
    order: 9 !important;
  }
}

/* --- 10. Query Drawer Responsive (< 768px) --- */
@media (max-width: 767px) {
  .query-drawer {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    transform: translateX(100%) !important;
    box-shadow: none !important;
  }
  .query-drawer.active {
    transform: translateX(0) !important;
  }
  .query-drawer__header {
    padding: 16px 20px !important;
  }
  .query-drawer__title {
    font-size: 20px !important;
  }
  .query-drawer__body {
    padding: 20px !important;
  }
  .query-form {
    gap: 16px !important;
  }
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group select,
  .form-group textarea {
    padding: 12px 16px !important;
    font-size: 14px !important;
  }
  .query-submit-btn {
    padding: 14px !important;
    font-size: 15px !important;
  }
}
