:root {
  --bg: #f2f2f6;
  --site-header-height: 72px;
  --bg-deep: #e6e7ee;
  --text: #3b4052;
  --muted: #434859;
  --line: rgba(52, 60, 75, 0.12);
  --red: #8b2f2f;
  --blue: #4e536c;
  --blue-strong: #6a6f8a;
  --blue-deep: #343850;
  --lavender: #7a7f98;
  --peach: #c98686;
  --grey: #d9dbe2;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.6);
  --shadow: 0 24px 80px rgba(21, 30, 48, 0.18);
  --radius: 0;
  --accent-font: "Sora", "Manrope", sans-serif;
  /* Aliases to support legacy portfolio styles */
  --primary-color: var(--blue-deep);
  --box-shadow: var(--shadow);
}

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

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
p,
span,
li,
a,
label {
  -webkit-text-stroke: 0.2px rgba(255, 255, 255, 0.5);
  paint-order: stroke fill;
}

h1,
h2,
h3,
h4 {
  color: var(--muted);
  -webkit-text-stroke: 0.4px rgba(255, 255, 255, 0.7);
  paint-order: stroke fill;
}

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.bg-effects {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(
      circle at 18% 20%,
      rgba(150, 170, 230, 0.55),
      transparent 52%
    ),
    radial-gradient(
      circle at 82% 78%,
      rgba(232, 120, 120, 0.45),
      transparent 55%
    ),
    linear-gradient(140deg, #f3f6ff 0%, #e9eefc 48%, #f4e9f0 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.85;
  mix-blend-mode: screen;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 620px;
  height: 620px;
  background: radial-gradient(
    circle,
    rgba(232, 120, 120, 0.6),
    rgba(232, 120, 120, 0.18)
  );
  top: -220px;
  left: -180px;
}

.orb-2 {
  width: 560px;
  height: 560px;
  background: radial-gradient(
    circle,
    rgba(140, 165, 240, 0.85),
    rgba(140, 165, 240, 0.25)
  );
  bottom: -240px;
  right: -180px;
  animation-delay: 1.5s;
}

.orb-3 {
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(170, 185, 230, 0.65),
    rgba(170, 185, 230, 0.22)
  );
  top: 32%;
  right: 10%;
  animation-delay: 3.5s;
}

.shape {
  position: absolute;
  opacity: 0.85;
  filter: drop-shadow(0 18px 30px rgba(16, 22, 44, 0.18));
  animation: drift 22s ease-in-out infinite;
  mix-blend-mode: screen;
}

.shape-1 {
  width: 160px;
  height: 160px;
  top: 12%;
  left: 8%;
  border-radius: 32px;
  background: conic-gradient(
    from 140deg,
    rgba(140, 165, 240, 0.95),
    rgba(170, 185, 230, 0.92),
    rgba(232, 150, 150, 0.9)
  );
}

.shape-2 {
  width: 130px;
  height: 130px;
  top: 70%;
  left: 12%;
  border-radius: 42% 58% 55% 45%;
  background: linear-gradient(
    140deg,
    rgba(175, 190, 230, 0.95),
    rgba(140, 165, 240, 0.92)
  );
  animation-delay: 3s;
}

.shape-3 {
  width: 150px;
  height: 130px;
  top: 18%;
  right: 18%;
  background: linear-gradient(
    160deg,
    rgba(238, 170, 170, 0.95),
    rgba(232, 120, 120, 0.85)
  );
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  animation-delay: 2s;
}

.shape-4 {
  width: 180px;
  height: 180px;
  top: 56%;
  right: 8%;
  border-radius: 50%;
  border: 3px solid rgba(170, 185, 230, 0.8);
  background: transparent;
  animation: drift 22s ease-in-out infinite, spin 60s linear infinite;
}

.shape-5 {
  width: 90px;
  height: 90px;
  top: 36%;
  left: 48%;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(201, 134, 134, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 30px rgba(16, 22, 44, 0.2);
  animation-delay: 1s;
}

.shape-5::before,
.shape-5::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(140deg, #8ec5fc, #d26ce6);
}

.shape-5::before {
  top: 22px;
  left: 22px;
  box-shadow: 32px 0 0 rgba(106, 111, 138, 0.95), 0 32px 0 rgba(139, 47, 47, 0.9),
    32px 32px 0 rgba(201, 134, 134, 0.9);
}

.shape-5::after {
  inset: 10px;
  border-radius: 20px;
  border: 1px solid rgba(106, 111, 138, 0.35);
  background: transparent;
}

.shape-6 {
  width: 110px;
  height: 110px;
  bottom: 18%;
  left: 58%;
  border-radius: 18px;
  background: linear-gradient(
    130deg,
    rgba(140, 165, 240, 0.95),
    rgba(232, 120, 120, 0.88)
  );
  transform: rotate(45deg);
  animation: drift 24s ease-in-out infinite, spin 50s linear infinite;
}

.icon {
  position: absolute;
  width: 84px;
  height: 84px;
  opacity: 1;
  background: linear-gradient(135deg, rgba(140, 165, 240, 0.98), rgba(232, 120, 120, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.6);
  filter: drop-shadow(0 18px 28px rgba(16, 22, 44, 0.22));
  animation: drift 22s ease-in-out infinite, spin 40s linear infinite;
  mix-blend-mode: normal;
}

.icon::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  background-color: rgba(22, 24, 36, 0.88);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 72% 72%;
}

.icon::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.icon-code {
  top: 22%;
  left: 66%;
  animation-delay: 1s;
}

.icon-code::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path fill='white' d='M24 18L8 32l16 14 4-5-11-9 11-9-4-5zm16 0l-4 5 11 9-11 9 4 5 16-14-16-14z'/></svg>");
}

.icon-briefcase {
  top: 62%;
  left: 72%;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, rgba(238, 170, 170, 0.98), rgba(232, 120, 120, 0.92));
  animation-delay: 2.5s;
}

.icon-briefcase::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path fill='white' d='M22 16h20v6h10a4 4 0 0 1 4 4v20a8 8 0 0 1-8 8H16a8 8 0 0 1-8-8V26a4 4 0 0 1 4-4h10v-6zm4 6h12v-2H26v2zm-12 8v16a4 4 0 0 0 4 4h28a4 4 0 0 0 4-4V30H14z'/></svg>");
}

.icon-cpu {
  top: 16%;
  left: 18%;
  width: 78px;
  height: 78px;
  background: linear-gradient(135deg, rgba(170, 185, 230, 0.95), rgba(140, 165, 240, 0.9));
  animation-delay: 0.5s;
}

.icon-cpu::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path fill='white' d='M20 20h24v24H20V20zm-8 12h4v8h-4v-8zm40 0h4v8h-4v-8zM28 12h8v4h-8v-4zm0 36h8v4h-8v-4zM12 28h4v8h-4v-8zm36 0h4v8h-4v-8zM22 12h4v4h-4v-4zm16 0h4v4h-4v-4zM22 48h4v4h-4v-4zm16 0h4v4h-4v-4z'/></svg>");
}

.icon-chart {
  top: 68%;
  left: 26%;
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, rgba(175, 190, 230, 0.95), rgba(238, 170, 170, 0.88));
  animation-delay: 3.2s;
}

.icon-chart::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path fill='white' d='M14 50h36v4H10V10h4v40zm6-6h6V30h-6v14zm10 0h6V22h-6v22zm10 0h6V26h-6v18z'/></svg>");
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      transparent 94%,
      rgba(255, 255, 255, 0.18) 94%
    ),
    linear-gradient(90deg, transparent 94%, rgba(255, 255, 255, 0.18) 94%);
  background-size: 90px 90px;
  opacity: 0.35;
}

.glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 30% 18%,
      rgba(170, 185, 230, 0.65),
      transparent 55%
    ),
    radial-gradient(
      circle at 70% 72%,
      rgba(232, 120, 120, 0.5),
      transparent 60%
    );
  animation: pulse 12s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(30px, -40px, 0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(24px, -32px, 0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: rgba(246, 242, 244, 0.85);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  padding-top: env(safe-area-inset-top);
}

.site-header-video-popover {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  top: calc(var(--site-header-height, 72px) + 24px);
  width: min(720px, min(94vw, calc(100vw - 24px)));
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.24s ease;
}

.site-header-video-popover.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.site-header-video-popover-inner {
  padding: 12px;
  background: rgba(252, 250, 251, 0.98);
  border: 1px solid rgba(86, 98, 184, 0.35);
  box-shadow: 0 20px 48px rgba(32, 40, 58, 0.22);
}

.approach-video--header-popover {
  margin: 0;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}

.approach-video-shell--header-popover {
  position: relative;
  max-height: none;
  overflow: visible;
  background: #1a1d28;
}

.approach-video--header-popover .approach-video-ply {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(60vh, 620px);
  object-fit: contain;
  vertical-align: middle;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 1.2rem;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
}

.logo-tagline {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a {
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:hover {
  color: var(--blue-deep);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
  transition: width 0.2s ease;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: rgba(86, 98, 184, 0.12);
  color: var(--blue-deep);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(86, 98, 184, 0.2);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: 999px;
  background: var(--blue-deep);
  color: var(--white);
  font-weight: 700;
  border: 2px solid rgba(52, 60, 75, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
  box-shadow: 0 18px 36px rgba(86, 98, 184, 0.22);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(154, 63, 63, 0.22);
  background: var(--red);
  color: var(--white);
}

.button-ghost {
  background: transparent;
  color: var(--blue-deep);
  border: 2px solid rgba(86, 98, 184, 0.55);
  box-shadow: none;
}

.button-ghost-white {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  border-color: rgba(52, 56, 80, 0.5);
  font-weight: 700;
}

.button-ghost-white:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.hero {
  padding: 90px 0 60px;
}

/* Full-bleed photo hero (home) */
.hero.hero--splash {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(560px, 78vh);
  padding: clamp(88px, 11vh, 120px) 0 clamp(72px, 9vh, 96px);
}

.hero--splash .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #151824;
  background-image: url("images/hero-main.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 72% center;
}

.hero--splash .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(10, 12, 20, 0.93) 0%,
    rgba(10, 12, 20, 0.82) 34%,
    rgba(10, 12, 20, 0.42) 56%,
    rgba(10, 12, 20, 0.22) 100%
  );
}

.hero--splash .hero-inner {
  position: relative;
  z-index: 2;
}

.hero--splash .hero-text {
  max-width: min(560px, 100%);
  text-shadow: none;
}

/* Hero spotlight deck (splash home — replaces accordion) */
.hero-spotlight-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.hero--splash .hero-spotlight-wrap {
  filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.32));
}

.hero-spotlight {
  position: relative;
  border-radius: var(--radius);
  padding: 3px;
  background: linear-gradient(
    125deg,
    var(--red),
    #4a5688,
    var(--peach),
    #6a3030,
    var(--red)
  );
  background-size: 320% 320%;
  animation: hero-spot-border 9s ease infinite;
}

@keyframes hero-spot-border {
  0%,
  100% {
    background-position: 0% 45%;
  }
  50% {
    background-position: 100% 55%;
  }
}

.hero-spotlight-panel {
  position: relative;
  overflow: hidden;
  border-radius: max(0px, calc(var(--radius) - 3px));
  background: linear-gradient(168deg, #ffffff 0%, #eef1fa 52%, #faf7fb 100%);
  padding: 22px 22px 24px;
}

.hero-spotlight-panel::before {
  content: "";
  position: absolute;
  right: -30%;
  top: -45%;
  width: 70%;
  height: 95%;
  background: radial-gradient(circle at 30% 40%, rgba(140, 165, 240, 0.35), transparent 62%);
  pointer-events: none;
}

.hero-spotlight-panel::after {
  content: "";
  position: absolute;
  left: -25%;
  bottom: -40%;
  width: 65%;
  height: 80%;
  background: radial-gradient(circle at 70% 60%, rgba(232, 120, 120, 0.22), transparent 58%);
  pointer-events: none;
}

.hero-spotlight-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-spotlight-card {
  margin: 0;
  padding: 14px 14px 16px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(32, 40, 58, 0.1);
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  animation: hero-spot-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.hero-spotlight-card:nth-child(1) {
  animation-delay: 0.06s;
}
.hero-spotlight-card:nth-child(2) {
  animation-delay: 0.14s;
}
.hero-spotlight-card:nth-child(3) {
  animation-delay: 0.22s;
}
.hero-spotlight-card:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes hero-spot-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-spotlight-card:not(.hero-spotlight-card--feature):hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 36px rgba(86, 98, 184, 0.18),
    0 0 0 1px rgba(140, 165, 240, 0.35);
  border-color: rgba(140, 165, 240, 0.45);
}

.hero-spotlight-card--feature {
  grid-column: 1 / -1;
  text-align: left;
  padding: 18px 20px 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 249, 255, 0.88));
  border: 1px solid rgba(52, 56, 80, 0.08);
  box-shadow: 0 14px 36px rgba(32, 40, 58, 0.12);
}

.hero-spotlight-card--feature:hover {
  transform: none;
}

.hero-spotlight-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.hero-spotlight-live {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(139, 47, 47, 0.45);
  animation: hero-spot-live 2.2s ease-out infinite;
}

@keyframes hero-spot-live {
  65%,
  100% {
    box-shadow: 0 0 0 14px rgba(139, 47, 47, 0);
  }
}

.hero-spotlight .hero-spotlight-title {
  font-family: var(--accent-font);
  font-size: clamp(1.32rem, 2.1vw, 1.78rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--blue-deep);
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.hero-spotlight-lede {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 42em;
}

.hero-spotlight-video-slot {
  margin: 0;
}

.hero-spotlight-video-hoverzone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 42em;
}

.hero-learn-more-trigger {
  margin-top: 4px;
  align-self: flex-start;
  font-size: 0.95rem;
  padding: 10px 20px;
  min-height: 44px;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.hero-learn-more-trigger .fa-play {
  font-size: 0.72em;
  opacity: 0.95;
  transform: translateX(1px);
}

.hero-spotlight-card:not(.hero-spotlight-card--feature) i {
  display: block;
  margin: 0 auto 4px;
  font-size: 1.45rem;
  color: var(--blue-deep);
  background: linear-gradient(145deg, rgba(140, 165, 240, 0.35), rgba(232, 120, 120, 0.25));
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
  border-radius: 0;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-spotlight-card:not(.hero-spotlight-card--feature):hover i {
  transform: scale(1.08) rotate(-4deg);
  filter: saturate(1.15);
}

.hero-spotlight .hero-spotlight-card h3 {
  margin: 6px 0 4px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--blue-deep);
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.hero-spotlight-card:not(.hero-spotlight-card--feature) p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .hero-spotlight,
  .hero-spotlight-live {
    animation: none;
  }

  .hero-spotlight {
    background-position: 50% 50%;
  }

  .hero-spotlight-card {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.hero--splash .hero-visual {
  margin-top: 0;
}

.hero--splash .hero-tagline {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: rgba(232, 189, 189, 0.55);
  text-underline-offset: 5px;
  transition:
    text-decoration-color 0.2s ease,
    text-decoration-style 0.2s ease,
    color 0.2s ease;
}

.hero--splash .hero-tagline:hover,
.hero--splash .hero-text--lead-open .hero-tagline {
  text-decoration-style: solid;
  text-decoration-color: #f0c4c4;
}

.hero--splash .hero-tagline:focus {
  outline: none;
}

.hero--splash .hero-tagline:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 5px;
  border-radius: 4px;
}

.hero--splash .hero-lead-shell {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 4px;
  transition: grid-template-rows 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.hero--splash .hero-text--lead-open .hero-lead-shell {
  grid-template-rows: 1fr;
}

.hero--splash .hero-lead-inner {
  min-height: 0;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .hero--splash .hero-lead-shell {
    grid-template-rows: 1fr;
  }
}

.hero--splash .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.hero--splash .lead {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 249, 255, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 1);
  border-left: 4px solid var(--red);
  color: var(--text);
  font-size: clamp(1.08rem, 1.35vw, 1.24rem);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.01em;
  padding: 22px 26px 22px 24px;
  border-radius: 0;
  box-shadow:
    0 3px 0 rgba(139, 47, 47, 0.14),
    0 22px 56px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.hero-text {
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.9),
    0 0 24px rgba(255, 255, 255, 0.6),
    0 1px 2px rgba(255, 255, 255, 0.8);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.4rem, 3.2vw, 3.6rem);
  line-height: 1.3;
  margin: 0 0 16px;
  -webkit-text-stroke: 1px #ffffff;
  color: var(--muted);
  text-shadow:
    0 0 16px rgba(255, 255, 255, 0.95),
    0 0 32px rgba(255, 255, 255, 0.7),
    0 1px 3px rgba(255, 255, 255, 0.9);
  paint-order: stroke fill;
}

.hero h1 span {
  color: var(--red);
  display: block;
  font-weight: 700;
  -webkit-text-stroke: 1px #ffffff;
  text-shadow:
    0 0 16px rgba(255, 255, 255, 0.95),
    0 0 32px rgba(255, 255, 255, 0.7),
    0 1px 3px rgba(255, 255, 255, 0.9);
  paint-order: stroke fill;
}

.hero.hero--splash h1 {
  color: #f7f8fc;
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.hero.hero--splash h1 span {
  color: #e8bdbd;
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
  padding: 20px 24px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 40px rgba(32, 40, 58, 0.1);
  backdrop-filter: blur(10px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 26px 0 28px;
  flex-wrap: wrap;
}

.hero-actions--side {
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.hero-actions-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-intro-bubble {
  margin: 20px 0 24px;
}

.hero-intro-bubble p + p {
  margin-top: 14px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hero-stat-bubble {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.65));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 0;
  padding: 12px 18px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(32, 40, 58, 0.12);
  backdrop-filter: blur(8px);
}

.hero-stat-bubble strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.hero-stat-bubble span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.hero-visual .hero-stat-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  overflow: hidden;
}

.hero-stat-icon {
  font-size: 1.8rem;
  color: var(--blue-deep);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-stat-text {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, max-height 0.3s ease, transform 0.3s ease;
}

.hero-visual .hero-stat-bubble:hover .hero-stat-icon {
  transform: translateY(-4px) scale(0.9);
  opacity: 0.6;
}

.hero-visual .hero-stat-bubble:hover .hero-stat-text {
  opacity: 1;
  max-height: 80px;
  transform: translateY(0);
}

/* Blue connector lines from brain to each stat bubble on hover */
.hero-visual .hero-stat-bubble {
  position: relative;
}

.hero-visual .hero-stat-bubble::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 50%;
  width: 32px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140, 165, 240, 0.0), rgba(140, 165, 240, 0.95));
  transform-origin: right center;
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

.hero-visual .hero-stat-bubble:hover::before {
  transform: scaleX(1);
  opacity: 1;
}

.hero-visual:has(.hero-brain-wrapper:hover) .hero-stat-bubble::before {
  /* legacy brain hover connector no longer used */
}

/* Pulsing electric glow around stat bubbles when JS adds .bubble-zap */
.hero-visual .hero-stat-bubble.bubble-zap {
  animation: bubble-zap-pulse 220ms ease-out;
}

@keyframes bubble-zap-pulse {
  0% {
    box-shadow:
      0 0 0 rgba(140, 165, 240, 0.0),
      0 0 0 rgba(232, 120, 120, 0.0);
  }
  40% {
    box-shadow:
      0 0 22px rgba(140, 165, 240, 0.9),
      0 0 14px rgba(232, 120, 120, 0.7);
  }
  100% {
    box-shadow:
      0 0 8px rgba(140, 165, 240, 0.5),
      0 0 4px rgba(232, 120, 120, 0.3);
  }
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
  position: relative;
}

.hero-brain-wrapper {
  /* legacy brain wrapper no longer used */
}

.hero-brain-icon {
  /* legacy icon no longer used */
}

/* Stack hero stat bubbles vertically to the right of the brain */
.hero-visual .hero-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Hover electricity effects for hero brain + stat bubbles */
.hero-brain-wrapper,
.hero-stat-bubble {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-brain-wrapper:hover,
.hero-stat-bubble:hover {
  box-shadow:
    0 0 32px rgba(140, 165, 240, 0.9),
    0 0 18px rgba(232, 120, 120, 0.7),
    0 16px 40px rgba(32, 40, 58, 0.4);
  transform: translateY(-4px);
}

.hero-visual::before,
.hero-visual::after {
  /* removed electric beams on the right edge */
  display: none;
}

/* Hero accordion section: accordion + buttons with value prop text */
.hero-accordion-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.hero-accordion {
  width: 100%;
  overflow: hidden;
}

.hero-accordion-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 16px;
}

.hero-accordion-item {
  position: relative;
  height: 450px;
  min-width: 60px;
  width: 60px;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  transition: width 0.7s ease-in-out, min-width 0.7s ease-in-out;
  flex-shrink: 0;
  scroll-snap-align: start;
  touch-action: manipulation;
}

.hero-accordion-item.is-active {
  width: 280px;
  min-width: 280px;
}

.hero-accordion-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-accordion-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-accordion-caption {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center center;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.3s ease-in-out, bottom 0.3s ease-in-out, top 0.3s ease-in-out;
}

.hero-accordion-item.is-active .hero-accordion-caption {
  top: auto;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) rotate(0);
  white-space: normal;
  text-align: center;
  max-width: 90%;
}

.hero-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 22px 60px rgba(32, 40, 58, 0.22);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 90px;
  background: rgba(232, 210, 210, 0.96);
  border-radius: 0;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card h2 {
  font-family: var(--accent-font);
  letter-spacing: 0.4px;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.hero-card li {
  padding: 10px 0;
  padding-left: 26px;
  border-bottom: 1px solid rgba(52, 60, 75, 0.1);
  position: relative;
}

.hero-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue-deep);
}

.hero-card li:last-child {
  border-bottom: none;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: #3f445a;
}

.card-footer a {
  color: var(--red);
}

/* Portfolio hero: rotating work gallery (replaces capabilities card) */
.portfolio-hero-slideshow {
  position: relative;
  width: 100%;
  max-width: min(640px, 100%);
  margin-inline: auto;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 44px rgba(32, 40, 58, 0.2);
  background: #1a1d28;
}

.portfolio-hero-slideshow-inner {
  position: absolute;
  inset: 0;
}

.portfolio-hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  z-index: 1;
  animation: portfolioHeroSlide 24s ease-in-out infinite;
  will-change: opacity, transform;
}

.portfolio-hero-slide:nth-of-type(1) {
  animation-delay: 0s;
}
.portfolio-hero-slide:nth-of-type(2) {
  animation-delay: -4s;
}
.portfolio-hero-slide:nth-of-type(3) {
  animation-delay: -8s;
}
.portfolio-hero-slide:nth-of-type(4) {
  animation-delay: -12s;
}
.portfolio-hero-slide:nth-of-type(5) {
  animation-delay: -16s;
}
.portfolio-hero-slide:nth-of-type(6) {
  animation-delay: -20s;
}

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

@keyframes portfolioHeroSlide {
  0% {
    opacity: 0;
    transform: scale(1.08);
  }
  2.5% {
    opacity: 1;
    transform: scale(1);
  }
  14% {
    opacity: 1;
    transform: scale(1.05);
  }
  16.667% {
    opacity: 0;
    transform: scale(1.08);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-hero-slide {
    animation: none !important;
    opacity: 0;
  }

  .portfolio-hero-slide:first-of-type {
    opacity: 1;
  }
}

.section {
  padding: 80px 0;
}

.hero--about {
  padding-bottom: 20px;
}

.hero.hero--about .hero-content {
  grid-template-columns: 1fr;
}

.hero.hero--about h1 span {
  display: inline;
}

.hero.hero--portfolio .hero-content {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.hero.hero--portfolio .hero-actions {
  margin: 0;
  justify-content: center;
  align-items: center;
}

.about-main {
  padding-top: 20px;
}

.about-skills {
  padding-top: 40px;
}

.about-profile-art-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 760px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .about-profile-art-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 28px;
  }
}

.about-profile-art-col {
  min-width: 0;
}

.about-profile-art-heading {
  font-family: var(--accent-font);
  letter-spacing: 0.4px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--muted);
  -webkit-text-stroke: 1px #ffffff;
  text-shadow:
    0 0 16px rgba(255, 255, 255, 0.95),
    0 0 32px rgba(255, 255, 255, 0.7),
    0 1px 3px rgba(255, 255, 255, 0.9);
  paint-order: stroke fill;
  line-height: 1.35;
  text-align: center;
  margin: 0 0 14px;
}

@media (min-width: 768px) {
  .about-profile-art-heading {
    font-size: 1.75rem;
  }
}

.section-title {
  display: grid;
  gap: 12px;
  max-width: 620px;
  margin-bottom: 36px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-title h2 {
  font-family: var(--accent-font);
  letter-spacing: 0.4px;
}

.portfolio .section-title {
  margin-bottom: 10px;
}

.portfolio .section-title h2 {
  font-size: 2.4rem;
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.95),
    0 0 28px rgba(255, 255, 255, 0.65),
    0 1px 3px rgba(255, 255, 255, 0.85);
}

.section-title p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* Services section title: small oval that grows on hover, blurb animates in */
.services-title-card {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 0;
  padding: 14px 32px 14px;
  box-shadow: 0 8px 28px rgba(32, 40, 58, 0.08);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition:
    padding 0.4s ease,
    border-radius 0.4s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    max-width 0.4s ease;
  max-width: 420px;
  text-align: center;
}

.services-title-card:hover {
  padding: 26px 44px 24px;
  border-radius: 0;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 48px rgba(32, 40, 58, 0.14);
}

.services-title-card h2 {
  margin: 0;
  white-space: nowrap;
}

.services-title-blurb {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
  transform: translateY(6px) scale(0.98);
  transform-origin: top center;
  transition:
    max-height 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.08s,
    margin 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.06s;
}

.services-title-card:hover .services-title-blurb {
  max-height: 6em;
  opacity: 1;
  margin-top: 14px;
  transform: translateY(0) scale(1);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

/* Services cards – Calcreate1-style with icons */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Extra space between a grid and the next title bubble */
.services-grid + .services-title-card {
  margin-top: 2.5rem;
}

.service-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78));
  padding: 28px 24px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(32, 40, 58, 0.14);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 52px rgba(32, 40, 58, 0.18);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--blue-deep);
  margin-bottom: 18px;
  flex-shrink: 0;
}

.service-card h3 {
  font-family: var(--accent-font);
  font-size: 1.25rem;
  margin: 0 0 12px;
  letter-spacing: 0.3px;
}

.service-card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.5;
}

.portfolio-section .section-title p {
  font-weight: 600;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.filter-btn {
  border: 2px solid rgba(86, 98, 184, 0.45);
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue-deep);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.is-active {
  background: var(--blue-deep);
  color: var(--white);
  border-color: rgba(86, 98, 184, 0.6);
}

.portfolio-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* When only one item is visible (e.g. Documentation), show a small card instead of full width */
.portfolio-grid.portfolio-grid--single-item {
  grid-template-columns: minmax(200px, 280px);
  justify-content: center;
}

.portfolio-grid.portfolio-grid--single-item .portfolio-item {
  max-width: 280px;
  height: 200px;
  min-height: 200px;
}

/* Legacy-style portfolio grid from Calcreate1 */
.portfolio {
  padding: 30px 0;
}

.portfolio-item {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 220px;
  min-height: 220px;
}

.portfolio-item--hidden {
  display: none !important;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  /* Stay below overlay when focused/hover scales the image (transform stacking) */
  z-index: 0;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 14px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  /* Exclude from page color rules – explicit card colors */
  color: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

/* Mobile: tap-to-focus - show overlay when card is focused (first tap) */
.portfolio-item.portfolio-item-focused .portfolio-overlay {
  opacity: 1;
}

.portfolio-item.portfolio-item-focused img {
  transform: scale(1.1);
}

/* Visible category tag on each card – excluded from page color rules */
.portfolio-overlay .portfolio-item-tag {
  color: #ffffff !important;
  background: rgba(37, 99, 235, 0.9);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: clamp(0.65rem, 1.1vw, 0.8rem);
  font-weight: 600;
  flex-shrink: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portfolio-overlay h3 {
  color: #ffffff !important;
  margin: 0 0 6px;
  font-size: clamp(0.8rem, 2.2vw, 1.35rem);
  line-height: 1.25;
  max-height: 2.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.portfolio-overlay p {
  color: #ffffff !important;
  margin: 0 0 8px;
  font-size: clamp(0.65rem, 1.4vw, 0.9rem);
  line-height: 1.3;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Link = blue oval button; excluded from page color rules */
.portfolio-overlay .portfolio-link {
  color: #2563eb !important;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #2563eb;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: clamp(0.7rem, 1.2vw, 0.9rem);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.portfolio-overlay .portfolio-link:hover {
  background: #2563eb;
  color: #ffffff !important;
}

/* Exclude all portfolio card text from global text-stroke */
.portfolio-item *,
.portfolio-overlay *,
.portfolio-card * {
  -webkit-text-stroke: 0;
}

.portfolio-item.design {
  background-color: #f8f9fa;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  min-height: 220px;
  cursor: pointer;
  text-align: center;
}

/* Centered image preview: logo contained and centered in the card */
.portfolio-item.design img {
  position: absolute;
  inset: 0;
  margin: auto;
  object-fit: contain;
  object-position: center;
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  display: block;
}

.portfolio-item.design .portfolio-overlay {
  opacity: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.portfolio-item.design:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item.design.portfolio-item-focused .portfolio-overlay {
  opacity: 1;
}

/* Image modal for portfolio card click (outside link) */
.portfolio-image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
  align-items: center;
  justify-content: center;
}

.portfolio-image-modal.is-open {
  display: flex;
}

.portfolio-image-modal .portfolio-modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.portfolio-image-modal .portfolio-modal-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #f1f1f1;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.portfolio-image-modal .portfolio-modal-close:hover {
  color: #ffffff;
}

.portfolio-card {
  padding: 24px;
  border-radius: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 44px rgba(32, 40, 58, 0.14);
  position: relative;
}

.portfolio-tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(86, 98, 184, 0.12);
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.portfolio-card h3 {
  font-family: var(--accent-font);
  margin-bottom: 8px;
}

.portfolio-note {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.portfolio-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--red);
  font-weight: 600;
}

.info-card {
  padding: 26px;
  border-radius: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 48px rgba(32, 40, 58, 0.18);
  transition: transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  display: block;
  height: 110px;
  border-radius: 0;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(120, 132, 175, 0.6), rgba(182, 86, 86, 0.45));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.info-card h3 {
  font-family: var(--accent-font);
  letter-spacing: 0.3px;
  text-align: center;
}

.info-card p {
  text-align: center;
}
.info-card:hover {
  transform: translateY(-6px);
}

.accent {
  background: linear-gradient(135deg, rgba(122, 127, 152, 0.35), rgba(201, 134, 134, 0.25));
}

.approach-bubble {
  background: rgba(220, 224, 245, 0.96);
  border-radius: 0;
  padding: 28px 32px;
  border: 1px solid rgba(86, 98, 184, 0.25);
  box-shadow: 0 12px 36px rgba(52, 56, 80, 0.08);
}

.about-photo {
  display: block;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(32, 40, 58, 0.25);
}

.approach-bubble a:not(.button) {
  color: var(--blue-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.approach-bubble a:not(.button):hover {
  color: var(--red);
}

.about-cert {
  margin-top: 20px;
  padding: 10px 18px;
  display: inline-block;
  background: rgba(86, 98, 184, 0.15);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--blue-deep);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.approach-heading {
  margin-top: 24px;
  font-family: var(--accent-font);
  letter-spacing: 0.4px;
}

.approach-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 24px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.approach-list li {
  position: relative;
  padding-left: 24px;
  font-weight: 500;
}

.approach-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue-deep);
}

.pill-row span {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-size: 0.98rem;
  font-weight: 500;
}

.timeline {
  display: grid;
  gap: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75));
  padding: 24px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 48px rgba(32, 40, 58, 0.18);
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.timeline-item > div {
  margin-top: -4px;
}

.timeline-item h4 {
  font-family: var(--accent-font);
  letter-spacing: 0.3px;
  margin-top: 0;
}

.timeline-item .timeline-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: var(--blue-deep);
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 26px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7));
  box-shadow: 0 18px 44px rgba(32, 40, 58, 0.14);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  display: block;
  height: 90px;
  border-radius: 0;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(150, 158, 192, 0.6), rgba(182, 86, 86, 0.5));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.feature-card:has(i)::before {
  display: none;
}

.feature-card i {
  display: block;
  font-size: 2.25rem;
  color: var(--blue-deep);
  margin-bottom: 18px;
  text-align: center;
}

.feature-card h3 {
  font-family: var(--accent-font);
  letter-spacing: 0.3px;
  text-align: center;
}

.feature-card p {
  text-align: center;
}

.testimonials {
  padding-top: 40px;
  padding-bottom: 24px;
  margin-top: 0;
  margin-bottom: 0;
}

.testimonials .container {
  display: block;
}

/* Revamped testimonials: header + scrolling columns */
.testimonials-container {
  position: relative;
  z-index: 1;
}

.testimonials-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.9),
    0 0 24px rgba(255, 255, 255, 0.6),
    0 1px 2px rgba(255, 255, 255, 0.8);
}

.testimonials-pill {
  display: inline-flex;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 6px 16px;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.9),
    0 0 16px rgba(255, 255, 255, 0.5),
    0 1px 2px rgba(255, 255, 255, 0.75);
}

.testimonials-title {
  font-family: var(--accent-font);
  font-size: clamp(1.25rem, 2.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 20px 0 0;
  color: var(--muted);
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.95),
    0 0 28px rgba(255, 255, 255, 0.65),
    0 1px 3px rgba(255, 255, 255, 0.85);
}

.testimonials-subtitle {
  margin: 20px 0 0;
  opacity: 0.75;
  color: var(--muted);
  font-size: 1rem;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(255, 255, 255, 0.5),
    0 1px 2px rgba(255, 255, 255, 0.75);
}

.testimonials-columns-wrap {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  max-height: 740px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}

.testimonials-column {
  flex-shrink: 0;
  width: 100%;
  max-width: 320px;
}

.testimonials-column--md {
  display: none;
}

.testimonials-column--lg {
  display: none;
}

@media (min-width: 768px) {
  .testimonials-column--md {
    display: block;
  }
}

@media (min-width: 1024px) {
  .testimonials-column--lg {
    display: block;
  }
}

.testimonials-column-track {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
  animation: testimonials-scroll linear infinite;
  animation-duration: var(--scroll-duration, 15s);
}

.testimonials-column-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-shrink: 0;
}

@keyframes testimonials-scroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-column-track {
    animation: none;
  }
}

.testimonial-card {
  padding: 40px;
  border-radius: 0;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(32, 40, 58, 0.12), 0 0 0 1px rgba(86, 98, 184, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88));
  max-width: 320px;
  width: 100%;
}

.testimonial-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text);
  -webkit-text-stroke: 0.2px rgba(255, 255, 255, 0.5);
  paint-order: stroke fill;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.testimonial-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-author > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.9rem;
  opacity: 0.6;
  letter-spacing: -0.01em;
  color: var(--muted);
}

/* Legacy: section in its own bubble (e.g. other pages) */
.testimonials-bubble {
  background: rgba(232, 210, 210, 0.96);
  border: 1px solid rgba(201, 134, 134, 0.35);
  border-radius: 0;
  padding: 36px 28px 40px;
  box-shadow: 0 20px 56px rgba(32, 40, 58, 0.14);
}

.testimonials-bubble .section-title {
  margin-bottom: 28px;
}

.testimonials-bubble .quote + .quote {
  margin-top: 24px;
}

/* Each comment as a speech bubble */
.quote.speech-bubble {
  padding: 20px 24px 28px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid rgba(52, 60, 75, 0.18);
  box-shadow:
    0 4px 6px rgba(32, 40, 58, 0.08),
    0 12px 32px rgba(32, 40, 58, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  position: relative;
}

.quote.speech-bubble::before {
  content: """;
  position: absolute;
  top: 10px;
  right: 20px;
  font-family: var(--accent-font);
  font-size: 2.5rem;
  color: rgba(154, 63, 63, 0.4);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);
  paint-order: stroke fill;
}

.quote.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 32px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 14px solid rgba(255, 255, 255, 0.98);
  filter: drop-shadow(0 3px 8px rgba(32, 40, 58, 0.18));
}

.quote.speech-bubble p {
  color: rgba(78, 83, 108, 0.95);
  font-weight: 600;
  -webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  paint-order: stroke fill;
  margin: 0 0 10px;
  padding-right: 2rem;
}

.quote.speech-bubble span {
  color: rgba(139, 47, 47, 0.95);
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  font-family: var(--accent-font);
  -webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.6);
  display: block;
  padding-left: 0;
  paint-order: stroke fill;
}

.quote.speech-bubble span::before {
  content: "— ";
}

.quote {
  padding: 12px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
}

.quote:not(.speech-bubble)::before {
  content: """;
  position: absolute;
  top: -12px;
  right: 0;
  font-family: var(--accent-font);
  font-size: 3.2rem;
  color: rgba(154, 63, 63, 0.85);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);
  paint-order: stroke fill;
}

.quote:not(.speech-bubble)::after {
  content: "“";
  position: absolute;
  top: -12px;
  left: 0;
  font-family: var(--accent-font);
  font-size: 3.2rem;
  color: rgba(78, 83, 108, 0.85);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);
  paint-order: stroke fill;
}

.quote:not(.speech-bubble) p {
  color: rgba(78, 83, 108, 0.95);
  font-weight: 600;
  -webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  paint-order: stroke fill;
}

.quote:not(.speech-bubble) span {
  color: rgba(139, 47, 47, 0.95);
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  font-family: var(--accent-font);
  -webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.6);
  display: inline-block;
  padding-left: 10px;
  paint-order: stroke fill;
}

.quote:not(.speech-bubble) span::before {
  content: "— ";
}

.cta {
  padding-top: 24px;
  padding-bottom: 110px;
}

.cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78));
  padding: 32px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 60px rgba(32, 40, 58, 0.2);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-contact {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.cta-contact-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-contact-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  background: rgba(246, 242, 244, 0.9);
}

.footer-content {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-links {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 1rem;
}

.footer-links span {
  font-weight: 700;
  color: var(--text);
}

.tag {
  display: inline-flex;
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #3a3f55;
}

.footer-bottom {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 26px;
}

.contact-footer {
  margin: 32px auto 0;
  padding: 28px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
  box-shadow: 0 20px 60px rgba(32, 40, 58, 0.18);
}

.contact-footer-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contact-footer-header h3 {
  margin: 0 0 6px;
}

.contact-footer-body {
  display: none;
  margin-top: 18px;
}

.contact-footer.is-open .contact-footer-body {
  display: block;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-form input,
.contact-form select {
  min-height: 44px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 12px 14px;
  border-radius: 0;
  border: 1px solid rgba(120, 132, 175, 0.35);
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid rgba(120, 132, 175, 0.45);
  border-color: rgba(120, 132, 175, 0.45);
}

.contact-form button {
  justify-self: start;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-info h3 {
  margin: 0 0 6px;
}

.contact-info h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.contact-info p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-info .info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.contact-info .info-item i {
  color: var(--blue-deep);
  width: 1.25em;
}

.contact-info .info-item a {
  font-weight: 500;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group label {
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .hero-accordion-item {
    height: 380px;
  }

  .hero-accordion-item.is-active {
    width: 220px;
    min-width: 220px;
  }
}

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

  .hero-spotlight-wrap {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 900px) {
  body.nav-drawer-open {
    overflow: hidden;
  }

  .site-header .nav {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }

  .logo {
    order: 1;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .logo-tagline {
    font-size: 0.8rem;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .logo img {
    height: 44px;
  }

  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    flex: none;
    order: 3;
    width: 100%;
    padding: 12px 0 20px;
    margin: 0;
    background: rgba(252, 250, 251, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(40, 48, 72, 0.12);
    border-radius: 0;
    max-height: min(72vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.22s ease,
      visibility 0.22s ease,
      transform 0.22s ease;
  }

  .nav-open .nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    font-size: 1.05rem;
  }

  .nav-links a {
    padding: 14px 18px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 0;
    font-size: 1rem;
    margin: 0 8px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover {
    background: rgba(86, 98, 184, 0.1);
    color: var(--blue-deep);
  }

  .nav-cta {
    margin: 14px 12px 4px;
    width: calc(100% - 24px);
    justify-content: center;
    min-height: 48px;
  }

  .nav-links a[data-contact-open] {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .hero.hero--splash {
    min-height: min(480px, 72vh);
    padding-top: clamp(64px, 16vw, 96px);
    padding-bottom: clamp(44px, 10vw, 72px);
  }

  .hero--splash .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 12, 20, 0.9) 0%,
      rgba(10, 12, 20, 0.58) 52%,
      rgba(10, 12, 20, 0.38) 100%
    );
  }

  .hero--splash .hero-bg {
    background-position: center 28%;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-visual {
    margin-top: 16px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .hero.hero--splash h1 {
    font-size: clamp(1.85rem, 6.2vw, 2.35rem);
  }

  .lead {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-actions--side .hero-actions-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions--side .hero-actions-buttons .button {
    width: 100%;
  }

  .hero-actions .button {
    min-height: 48px;
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-stat-bubble {
    padding: 14px 20px;
  }

  .hero-spotlight-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-spotlight-card--feature {
    grid-column: 1;
  }

  .hero-spotlight-panel {
    padding: 16px 16px 18px;
  }

  .hero-accordion {
    margin: 0 -4%;
    overflow: hidden;
  }

  .hero-accordion-track {
    gap: 5px;
    padding: 8px 4%;
    justify-content: center;
    scroll-padding-inline: 4%;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .hero-accordion-track::-webkit-scrollbar {
    display: none;
  }

  .hero-accordion-item {
    height: 260px;
    min-width: 44px;
    width: 44px;
  }

  .hero-accordion-item.is-active {
    width: 140px;
    min-width: 140px;
  }

  .hero-accordion-caption {
    font-size: 0.8rem;
  }

  .hero-accordion-item.is-active .hero-accordion-caption {
    font-size: 0.85rem;
    bottom: 1rem;
  }

  /* Hide last accordion item on mobile for better viewing */
  .hero-accordion-item:nth-last-child(1) {
    display: none;
  }

  .hero-card {
    padding: 24px 20px;
  }

  .card-footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .section {
    padding: 48px 0;
  }

  .container {
    width: min(1180px, calc(100% - 24px));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .card-grid,
  .services-grid,
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 22px 20px;
    min-height: auto;
  }

  .service-card i {
    font-size: 2.25rem;
    margin-bottom: 14px;
  }

  .service-card h3 {
    font-size: 1.15rem;
  }

  .cta-card {
    padding: 24px 20px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cta-actions {
    justify-content: center;
  }

  /* Bubble-style sections on small screens */
  .services-title-card {
    max-width: 100%;
    padding: 14px 18px;
  }

  .services-title-card:hover {
    max-width: 100%;
  }

  .services-title-card h2 {
    white-space: normal;
    text-align: center;
  }

  .testimonials-columns-wrap {
    max-height: 520px;
    margin-top: 28px;
  }

  .testimonial-card {
    padding: 28px 24px;
    max-width: 100%;
  }

  .hero-intro-bubble,
  .approach-bubble,
  .testimonials-bubble {
    margin-left: auto;
    margin-right: auto;
    padding: 22px 18px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    justify-items: center;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 16px;
    min-height: 48px;
  }

  .contact-form textarea {
    min-height: 120px;
  }

  .contact-form label {
    font-size: 0.95rem;
  }

  .button {
    min-height: 48px;
    padding: 14px 24px;
  }
}

/* Portfolio mobile */
@media (max-width: 900px) {
  .portfolio {
    padding: 30px 0;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }

  .portfolio-item {
    height: 200px;
    min-height: 200px;
  }

  .portfolio-item.design {
    height: 200px;
    min-height: 200px;
  }

  .portfolio-filters {
    gap: 10px;
    margin-bottom: 20px;
  }

  .filter-btn {
    padding: 10px 14px;
    min-height: 44px;
    font-size: 0.9rem;
  }

  .portfolio-grid.portfolio-grid--single-item {
    grid-template-columns: minmax(180px, 260px);
  }

  .portfolio-grid.portfolio-grid--single-item .portfolio-item {
    max-width: 260px;
    height: 180px;
    min-height: 180px;
  }
}

@media (max-width: 600px) {
  .portfolio {
    padding: 28px 0;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .portfolio-grid.portfolio-grid--single-item {
    grid-template-columns: minmax(0, 240px);
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .portfolio-grid.portfolio-grid--single-item .portfolio-item {
    max-width: 100%;
    height: 180px;
    min-height: 180px;
  }

  .portfolio-item {
    height: 150px;
    min-height: 150px;
  }

  .portfolio-item.design {
    height: 140px;
    min-height: 140px;
  }

  .portfolio-filters {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .filter-btn {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .portfolio-overlay {
    padding: 8px;
  }

  .portfolio-overlay .portfolio-item-tag {
    font-size: 0.55rem;
    padding: 3px 8px;
    margin-bottom: 4px;
  }

  .portfolio-overlay h3 {
    font-size: clamp(0.68rem, 2.8vw, 0.95rem);
  }

  .portfolio-overlay p {
    font-size: 0.58rem;
    -webkit-line-clamp: 2;
  }

  .portfolio-overlay .portfolio-link {
    padding: 6px 12px;
    min-height: 40px;
    font-size: clamp(0.58rem, 2.2vw, 0.78rem);
  }

  .portfolio-image-modal .portfolio-modal-close {
    top: 12px;
    right: 16px;
    font-size: 1.75rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .portfolio-image-modal .portfolio-modal-content {
    max-width: 95%;
    max-height: 85vh;
  }
}

/* Reduce decorative elements on small screens for performance and clarity */
@media (max-width: 600px) {
  .orb,
  .shape,
  .icon {
    opacity: 0.5;
  }

  .grid {
    opacity: 0.2;
  }
}

