@font-face {
  font-family: 'Geist';
  src: url('../assets/geist-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist';
  src: url('../assets/geist-latin-ext.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #11142a;
  --navy-800: #0e0a42;
  --muted: #41495b;
  --grey-700: #444c79;
  --grey-500: #bac9dd;
  --grey-400: #d3deed;
  --grey-300: #e9edf6;
  --grey-200: #f3f6fc;
  --indigo-badge: #28204c;
  --blue: #274fe1;
  --blue-bright: #3463fb;
  --violet: #5c409b;
  --cyan: #0ae0ed;
  --white: #ffffff;
  --dark-surface: #08090d;
  --contact-surface: #161619;
  --edge: clamp(20px, 5vw, 88px);
  --ease: cubic-bezier(0.2, 0.72, 0.25, 1);
  color-scheme: light;
}

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

[hidden] {
  display: none !important;
}

html {
  /* The mast is fixed and 66px tall, sitting 10px down. Without this, anything
     the browser scrolls into view by itself, which is what happens when a
     keyboard user tabs to an element just below the fold, lands underneath it.
     Section padding happens to save the anchor links; nothing saves Tab. */
  scroll-padding-top: 96px;

  scroll-behavior: smooth;
  font-size: 16px;
}

/* Smooth scrolling is the one piece of motion on this site that a visitor
   cannot avoid by not hovering anything: it fires on every in-page link and on
   the back-to-top button. It is also the kind that provokes nausea in people
   with a vestibular disorder, so it is the first thing reduced motion should
   switch off, and it was not covered by any of the eight blocks below. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* An infinite pulse while the microphone is recording. The red fill already
     says it is listening, so the motion carries no information of its own. */
  .guide-mic-orb.is-listening {
    animation: none;
  }

  /* Both of these open full-screen and scale up from 0.97 on the way in. A
     transform across the whole viewport is the shape of motion this query
     exists for; the element still appears, it just stops moving to get there. */
  .admission-modal.is-open,
  .shot-lightbox.is-open {
    animation: none;
  }
}

body {
  margin: 0;
  background: var(--grey-300);
  color: var(--ink);
  font: 400 1rem/1.55 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4, p, figure, blockquote {
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  line-height: 1.15;
  text-wrap: balance;
}

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

a {
  color: inherit;
}

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

button, summary {
  cursor: pointer;
}

button {
  border: 0;
}

:focus-visible {
  outline: 2.5px solid #477bff;
  outline-offset: 3px;
}

.skip:not(:focus),
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  position: fixed;
  z-index: 2000;
  left: 16px;
  top: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.wrap {
  width: calc(100% - var(--edge) * 2);
  max-width: 1420px;
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 6.5vw, 104px);
}

.section-intro {
  text-align: center;
  max-width: 820px;
  padding-inline: 20px;
  margin: 0 auto clamp(34px, 4vw, 60px);
}

.section-intro h2 {
  font-size: clamp(1.9rem, 2.5vw, 2.75rem);
  letter-spacing: -0.045em;
  line-height: 1.14;
  font-weight: 560;
}

.section-intro p {
  max-width: 68ch;
  margin: 12px auto 0;
  color: var(--muted);
}

.gradient-accent {
  background: linear-gradient(270deg, #8b82d6 5%, #5c409b 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 520;
  text-decoration: none;
  line-height: 1.3;
  box-shadow: 0 10px 22px rgba(73, 71, 169, 0.22);
  transition: transform 0.22s var(--ease), background 0.22s ease, box-shadow 0.22s ease;
}

.pill:hover {
  transform: translateY(-2px);
}

.dark-pill {
  background: linear-gradient(180deg, #323338 0%, #101014 100%);
  color: var(--white);
  border: 1px solid #2a2b32;
}

.dark-pill:hover {
  background: linear-gradient(180deg, #253358 0%, #11152c 100%);
  box-shadow: 0 14px 28px rgba(39, 79, 225, 0.3);
}

.light-pill {
  background: var(--white);
  color: var(--ink);
}

.light-pill:hover {
  background: #e9eeff;
  color: var(--blue);
}

.under {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  align-self: flex-start;
  text-decoration: none;
  font-weight: 550;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}

.under::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: height 0.18s ease, transform 0.22s ease;
}

.under:has(.arrow-diag)::after {
  width: calc(100% - 18px);
}

.under:hover {
  color: var(--blue);
}

.under:hover::after {
  height: 2px;
}

.arrow-diag {
  display: inline-block;
  font-size: 0.9em;
  transition: transform 0.22s var(--ease);
}

.under:hover .arrow-diag,
.pill:hover .arrow-diag {
  transform: translate(2px, -2px);
}

.type-tag {
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  background: var(--indigo-badge);
  color: var(--white);
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 560;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   1. Floating Header + Scroll-Up Frosted Glass Capsule
   ========================================================================== */

.mast {
  position: fixed;
  top: 18px;
  left: 24px;
  right: 24px;
  z-index: 1000;
  transition: top 0.3s var(--ease), transform 0.35s var(--ease), opacity 0.28s ease;
}

.mast.is-scrolled {
  top: 14px;
}

.mast-inner {
  max-width: 1400px;
  margin-inline: auto;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  padding: 8px 10px;
  border-radius: 60px;
  border: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.mast.is-scrolled .mast-inner {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: -1px 6px 18px rgba(10, 15, 45, 0.12);
  padding: 8px 14px;
}

.mast-start {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 36px);
  min-width: 0;
}

.round {
  height: 48px;
  width: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(4, 8, 32, 0.2);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.round:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 22px rgba(39, 79, 225, 0.28);
}

.bars,
.bars::before,
.bars::after {
  width: 18px;
  height: 2px;
  background: currentColor;
  display: block;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.bars::before { margin-top: -5px; transition-delay: 50ms; }
.bars::after { margin-top: 5px; transition-delay: 100ms; }

.round:hover .bars,
.round:hover .bars::before,
.round:hover .bars::after {
  background: var(--blue);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: clamp(1.14rem, 1.55vw, 1.48rem);
  letter-spacing: -0.045em;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--white);
  text-shadow: 0 1px 10px rgba(7, 21, 45, 0.45);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.wordmark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  /* Logo keeps its own colours at every scroll state; the shadow only lifts it off the dark hero. */
  filter: drop-shadow(0 2px 8px rgba(5, 12, 32, 0.55));
  transition: filter 0.25s ease, transform 0.25s var(--ease);
}

.wordmark:hover img {
  transform: translateY(-1px) scale(1.04);
}

.mast.is-scrolled .wordmark {
  color: var(--navy-800);
  text-shadow: none;
}

.mast.is-scrolled .wordmark img {
  filter: none;
}

.mast-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.45vw, 22px);
  border-radius: 40px;
  background: rgba(238, 241, 247, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0 22px;
  box-shadow: 0 4px 18px rgba(7, 21, 45, 0.14);
  color: var(--navy-800);
}

.mast.is-scrolled .mast-nav {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(14, 10, 66, 0.07);
}

.mast-nav a {
  display: grid;
  align-items: center;
  min-height: 42px;
  font-size: 0.93rem;
  font-weight: 480;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

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

.ask-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid rgba(146, 176, 255, 0.55);
  border-radius: 99px;
  background: linear-gradient(180deg, var(--blue-bright) 0%, var(--blue) 100%);
  color: var(--white);
  box-shadow: 0 0 0 3px rgba(52, 99, 251, 0.16), 0 6px 18px rgba(23, 45, 130, 0.38);
  font-size: 0.93rem;
  font-weight: 560;
  white-space: nowrap;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.ask-link:hover {
  transform: translateY(-1px);
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(10, 224, 237, 0.42), 0 8px 22px rgba(5, 11, 27, 0.42);
}

/* ==========================================================================
   2. Hero Banner (Mumbai Sea Link + Immediate Floating AI Console)
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  margin: 10px 10px 0;
  overflow: hidden;
  border-radius: 15px;
  background: #10203a;
  color: var(--white);
  /* Fallback for browsers without the small-viewport unit. The @supports
     block below is the one that actually runs nearly everywhere. */
  min-height: calc(100vh - 10px);
}

/* Every hero fills exactly the first viewport.
   `svh` is the viewport with the browser's own chrome showing, which is what
   a visitor sees before they scroll. `vh` on a phone is the taller
   chrome-hidden figure, so a hero sized in vh arrives already cut off, and
   `dvh` changes as the chrome slides away, which makes the hero resize under
   the reader. `min-height` rather than `height` so a hero whose content
   genuinely cannot fit a short landscape phone grows instead of clipping. */
@supports (min-height: 100svh) {
  .hero {
    min-height: calc(100svh - 10px);
  }
}

.hero-photo,
.hero-film,
.hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-photo {
  z-index: -3;
}

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

.hero-film {
  z-index: -2;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.hero-film.is-playing {
  opacity: 1;
}

.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(5, 11, 28, 0.56) 0%,
    rgba(6, 14, 36, 0.28) 42%,
    rgba(4, 10, 26, 0.58) 100%
  );
}

.hero-centre {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(92px, 11vh, 126px) 16px clamp(20px, 3vh, 36px);
  /* viewport-fit=cover is set in the viewport meta, so on a notched phone held
     sideways the cutout sits over one edge of the hero. Keep the headline out
     from under it; max() means nothing changes on a phone without a cutout. */
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  gap: clamp(34px, 6.5vh, 66px);
}

.hero h1 {
  text-align: center;
  font-size: clamp(3.15rem, 6.8vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.03;
  color: var(--white);
  text-shadow: 0 2px 32px rgba(4, 12, 28, 0.45);
}

.ask-box {
  position: relative;
  width: min(86%, 1180px);
  padding: 28px 22px 14px 26px;
  color: var(--navy-800);
  background: var(--white);
  border: 1.5px solid #ccd5e4;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(11, 18, 54, 0.24), 0 0 24px rgba(118, 95, 184, 0.24);
}

.guide-mic-orb {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -56%);
  width: clamp(58px, 5.4vw, 76px);
  height: clamp(58px, 5.4vw, 76px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3.5px solid var(--white);
  background: radial-gradient(circle at 35% 24%, #8fc0ff, #4c74fe 48%, #244bd8 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(51, 61, 156, 0.55);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.guide-mic-orb:hover {
  transform: translate(-50%, -56%) scale(1.06);
}

.guide-mic-orb.is-listening {
  background: radial-gradient(circle at 35% 24%, #ff8a8a, #e63946 65%, #b81d2c 100%);
  animation: micPulse 1.3s infinite ease-in-out;
}

@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.55); }
  50% { box-shadow: 0 0 0 14px rgba(230, 57, 70, 0); }
}

.ask-input-frame {
  position: relative;
  border: 1px solid #dce1eb;
  border-radius: 8px;
  padding: 11px 14px 11px 42px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ask-input-frame:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(39, 79, 225, 0.12);
}

.sparkle-icon {
  position: absolute;
  top: 13px;
  left: 12px;
  width: 21px;
  height: 21px;
  color: var(--grey-500);
  transition: color 0.25s ease;
}

.ask-input-frame:focus-within .sparkle-icon {
  color: var(--blue);
}

.ask-box textarea {
  display: block;
  width: 100%;
  height: clamp(58px, 8vh, 84px);
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}

.ask-box textarea::placeholder {
  color: #5b6377;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.suggestions button {
  padding: 5px 11px;
  border: 1.5px solid #cfd7e6;
  border-radius: 5px;
  background: var(--white);
  font-size: 0.87rem;
  color: #212840;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.suggestions button:hover {
  border-color: var(--blue);
  background: var(--grey-200);
  color: var(--blue);
}

.ask-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}

.ask-bottom-note {
  color: #4b5469;
  font-size: 0.85rem;
  font-style: italic;
}

.mic-status {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--blue);
  display: none;
}

.mic-status.is-visible {
  display: block;
}

.mic-status.is-error {
  color: #b42318;
}

.ask-bottom-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.btn-privacy-shield {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  color: #198754;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.btn-privacy-shield:hover {
  background: rgba(25, 135, 84, 0.1);
}

.privacy-popover {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: min(420px, 84vw);
  background: var(--white);
  border: 1px solid #d1dceb;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink);
  box-shadow: 0 14px 36px rgba(14, 10, 66, 0.22);
  z-index: 40;
  display: none;
}

.privacy-popover.is-open {
  display: block;
}

.search-submit {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  background: #222d44;
  color: var(--white);
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-submit.is-ready {
  background: var(--blue);
}

.search-submit:hover {
  background: var(--blue-bright);
  transform: scale(1.06);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(93%, 1320px);
  margin: 0 auto clamp(18px, 2.2vw, 30px);
}

.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(14px, 1.25vw, 20px);
  min-height: clamp(146px, 12vw, 186px);
  color: #141932;
  text-decoration: none;
  background: var(--white);
  border-radius: 10px;
  transition: background 0.22s ease, transform 0.22s var(--ease), box-shadow 0.22s ease;
}

.hero-feature:last-child {
  background: #eff2ff;
}

.hero-feature:hover {
  background: #e9efff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(14, 10, 66, 0.16);
}

.hero-feature strong {
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: clamp(1.04rem, 1.4vw, 1.36rem);
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-feature .under {
  margin-top: auto;
  font-size: 0.92rem;
}

.mini-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0ecfd;
  color: #6759a4;
  display: grid;
  place-items: center;
  flex: none;
}

/* ==========================================================================
   3. What We Do (2-Card Overview: Products & Services)
   ========================================================================== */

.what-we-do {
  background: var(--grey-400);
  padding: clamp(42px, 4.4vw, 66px) 0;
  margin-top: 10px;
}

.section-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(22px, 2.6vw, 34px);
}

.section-line h2 {
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy-800);
}

.what-we-do-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.story-card {
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: clamp(250px, 20vw, 300px);
  background: #edf1fa;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(14, 10, 66, 0.08);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.story-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(14, 10, 66, 0.14);
}

.story-art {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #adc9f8, #938edc);
}

.story-art picture,
.story-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease);
}

.story-card:hover .story-art img {
  transform: scale(1.04);
}

.story-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(24px, 2.6vw, 38px);
}

.story-copy h3 {
  font-size: clamp(1.32rem, 1.65vw, 1.75rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  color: var(--navy-800);
}

.story-copy p {
  max-width: 46ch;
  color: #2c354c;
}

.story-copy .under {
  margin-top: auto;
}

/* ==========================================================================
   4. Explore Our Products (4-Column Grid: ProNxt, EduNxt, ChatAI CRM, WarkAImation)
   ========================================================================== */

.platforms {
  background: var(--white);
}

.products-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.3s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
}

.platform-media {
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  height: 220px;
  background: #d8e4fb;
}

.product-card .platform-media {
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0b1126;
}

.platform-media picture,
.platform-media img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product-card .platform-media img {
  object-position: top center;
}

.product-card:hover .platform-media img,
.platform-card:hover .platform-media img {
  transform: scale(1.05);
}

.platform-grid {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  min-height: 510px;
}

.platform-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: flex 0.45s var(--ease);
}

.platform-card.is-expanded {
  flex: 1.22 1 0;
}

.platform-card .platform-media {
  height: 255px;
  transition: height 0.45s var(--ease);
}

.platform-card.is-expanded .platform-media {
  height: 325px;
}

.paper {
  position: relative;
  z-index: 2;
  margin: -24px 10px 0;
  padding: 22px 18px 24px;
  background: var(--white);
  border-radius: 10px;
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(56, 48, 138, 0.16);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 230px;
  transition: box-shadow 0.3s ease;
}

.product-card:hover .paper,
.platform-card:hover .paper,
.platform-card.is-expanded .paper {
  box-shadow: 0 18px 34px rgba(118, 95, 184, 0.28);
}

.paper h3 {
  font-size: clamp(1.22rem, 1.4vw, 1.52rem);
  letter-spacing: -0.03em;
  color: var(--navy-800);
}

.paper p {
  margin-top: 9px;
  color: #30384b;
  font-size: 0.94rem;
}

.capability-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.capability-pill {
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--grey-200);
  color: var(--grey-700);
  font-size: 0.76rem;
  font-weight: 500;
}

.paper .under {
  margin-top: auto;
  padding-top: 16px;
}

/* ==========================================================================
   5. Our Services Pillars (Dark Section)
   ========================================================================== */

.practice {
  color: var(--white);
  background: var(--dark-surface);
  overflow: hidden;
}

.practice .section-intro p {
  color: rgba(255, 255, 255, 0.78);
}

.services-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.case-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.case-media {
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  height: 256px;
  background: #0d1428;
}

.case-media picture,
.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
}

.case-card:hover .case-media img {
  transform: scale(1.045);
}

.case-card .paper {
  margin-inline: 12px;
  min-height: 230px;
  gap: 10px;
}

.case-card .pill {
  align-self: flex-end;
  margin-top: auto;
  font-size: 0.9rem;
}

/* ==========================================================================
   6. Industries and Services (Animated Directory + Live Spotlight Drawer)
   ========================================================================== */

.directory {
  background: linear-gradient(180deg, #eef2fa 0%, #e4ebf6 100%);
}

/* ==========================================================================
   6. Industries Accordion Gallery Zoom (CodePen bbx/pen/Jxoqdg Inspired)
   ========================================================================== */

.industry-accordion-frame {
  background: #060918;
  border-radius: 18px;
  padding: clamp(22px, 3.2vw, 42px) clamp(20px, 3.4vw, 46px);
  box-shadow: 0 24px 60px rgba(10, 14, 42, 0.16);
  overflow: hidden;
}

.industry-accordion {
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
  transform: skew(4.5deg);
}

.industry-panel {
  flex: 1;
  height: clamp(430px, 56vh, 540px);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  background: #0d1228;
  transition: flex-grow 0.9s ease-in-out;
}

.industry-panel:not(:last-child) {
  margin-right: 10px;
}

.industry-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.06);
  transition: filter 0.9s ease-in-out, transform 0.9s ease-in-out;
}

.industry-panel__head {
  position: absolute;
  bottom: 0;
  left: 0;
  min-width: 248px;
  padding: 8px 16px;
  background: rgba(10, 224, 237, 0.92);
  color: #071026;
  font-family: 'Geist', 'Inter', sans-serif;
  text-align: center;
  white-space: nowrap;
  transform: rotate(-90deg);
  transform-origin: 0% 0%;
  transition: all 0.5s ease-in-out;
}

.industry-panel__title {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.industry-panel__sub {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.86);
  white-space: normal;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.35s ease 0.2s, max-height 0.45s ease;
}

.industry-panel:hover,
.industry-panel:focus-visible {
  flex-grow: 8.5;
  outline: none;
}

.industry-panel:hover img,
.industry-panel:focus-visible img {
  filter: grayscale(0%) contrast(1.02);
  transform: scale(1.05);
}

.industry-panel:hover .industry-panel__head,
.industry-panel:focus-visible .industry-panel__head {
  min-width: 100%;
  width: 100%;
  padding: 16px 26px;
  background: rgba(6, 9, 24, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  transform: rotate(0deg) skew(-4.5deg);
}

.industry-panel:hover .industry-panel__title,
.industry-panel:focus-visible .industry-panel__title {
  font-size: clamp(1.22rem, 1.85vw, 1.62rem);
}

.industry-panel:hover .industry-panel__sub,
.industry-panel:focus-visible .industry-panel__sub {
  opacity: 1;
  /* Three lines at 0.88rem. These lines name the campaigns, the social and
     the creative alongside the build, so they run longer than the one-line
     labels this cap was written for. max-height is the transition's ceiling,
     not a fixed height, so a shorter sub is unaffected. */
  max-height: 100px;
  margin-top: 4px;
}

@media (max-width: 920px) {
  .industry-accordion-frame {
    padding: 16px;
    border-radius: 16px;
  }

  .industry-accordion {
    flex-direction: column;
    gap: 10px;
    transform: none;
  }

  .industry-panel {
    flex: none;
    width: 100%;
    height: 68px;
    border-radius: 10px;
    transition: height 0.55s var(--ease);
  }

  .industry-panel:not(:last-child) {
    margin-right: 0;
  }

  .industry-panel__head {
    inset: 0;
    bottom: auto;
    min-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 0 18px;
    transform: none;
    background: linear-gradient(90deg, rgba(6, 9, 24, 0.88) 0%, rgba(6, 9, 24, 0.54) 100%);
    color: var(--white);
    border-left: 4px solid #0ae0ed;
  }

  .industry-panel:hover,
  .industry-panel:focus-visible {
    flex-grow: 0;
  }

  .industry-panel:not(.is-expanded):hover .industry-panel__head,
  .industry-panel:not(.is-expanded):focus-visible .industry-panel__head {
    inset: 0;
    bottom: auto;
    padding: 0 18px;
    background: linear-gradient(90deg, rgba(6, 9, 24, 0.88) 0%, rgba(6, 9, 24, 0.54) 100%);
    transform: none;
  }

  .industry-panel:not(.is-expanded):hover .industry-panel__title,
  .industry-panel:not(.is-expanded):focus-visible .industry-panel__title {
    font-size: 0.92rem;
  }

  .industry-panel:not(.is-expanded):hover .industry-panel__sub,
  .industry-panel:not(.is-expanded):focus-visible .industry-panel__sub {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
  }

  .industry-panel.is-expanded {
    height: 272px;
  }

  .industry-panel.is-expanded img {
    filter: grayscale(0%) contrast(1.02);
    transform: scale(1.04);
  }

  .industry-panel.is-expanded .industry-panel__head {
    inset: auto 0 0 0;
    padding: 14px 18px;
    background: rgba(6, 9, 24, 0.8);
    transform: none;
  }

  .industry-panel.is-expanded .industry-panel__title {
    font-size: 1.15rem;
  }

  .industry-panel.is-expanded .industry-panel__sub {
    opacity: 1;
    max-height: 96px;
    margin-top: 4px;
    font-size: 0.84rem;
  }
}

/* ==========================================================================
   7. Insights from Victory TechNxt
   ========================================================================== */

.journal {
  background: #f5f7fc;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.journal-item {
  grid-column: span 5;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #dfe4f0;
  min-height: 315px;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.journal-item:hover {
  box-shadow: 0 14px 32px rgba(118, 95, 184, 0.2);
  transform: translateY(-2px);
}

.j1,
.j4 {
  grid-column: span 7;
  display: grid;
  grid-template-columns: 38% minmax(0, 1fr);
}

.journal-item picture {
  flex: none;
  overflow: hidden;
  background: #d1daed;
}

.journal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.journal-item:hover img {
  transform: scale(1.05);
}

.journal-item:not(.j1):not(.j4) picture {
  height: clamp(145px, 12.5vw, 195px);
}

.journal-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: clamp(20px, 2.2vw, 34px);
}

.journal-copy h3 {
  font-size: clamp(1.18rem, 1.45vw, 1.52rem);
  letter-spacing: -0.03em;
  color: var(--navy-800);
}

.journal-copy p {
  color: var(--muted);
}

.journal-copy .under {
  margin-top: auto;
  align-self: flex-end;
}

/* ==========================================================================
   8. Talk to the Team in Mumbai (Fixed Equal-Height Portrait Strip)
   ========================================================================== */

.contact {
  background: var(--contact-surface);
  color: var(--white);
  padding-block: clamp(50px, 5vw, 84px);
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}

.contact-copy h2 {
  font-size: clamp(2.15rem, 3.4vw, 3.6rem);
  letter-spacing: -0.05em;
  font-weight: 420;
  max-width: 15ch;
  margin: 14px 0 12px;
}

.contact-copy p {
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.85);
}

.contact-offices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
  margin-top: clamp(26px, 3vw, 38px);
  padding-top: clamp(22px, 2.6vw, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-office h3 {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
  transition: color 0.25s ease;
}

.contact-office:hover h3 {
  color: var(--cyan);
}

.contact-office address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.contact-form-panel {
  position: relative;
  border-radius: 22px;
  padding: clamp(20px, 2.4vw, 32px);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.97), rgba(236, 241, 252, 0.97));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  color: var(--ink);
  overflow: hidden;
}

.contact-form-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--violet));
}

.contact-form-title {
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  letter-spacing: -0.03em;
  font-weight: 560;
}

.contact-form-note {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 46ch;
}

.contact-form-fallback {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* WhatsApp enquiry form */
.wa-form {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.wa-field {
  display: grid;
  gap: 6px;
}

.wa-field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-700);
  transition: color 0.25s ease;
}

.wa-field:focus-within label {
  color: var(--blue);
}

.wa-field input,
.wa-field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1.5px solid rgba(20, 30, 70, 0.18);
  background: var(--white);
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
}

.wa-field textarea {
  resize: vertical;
  min-height: 110px;
}

.wa-field input::placeholder,
.wa-field textarea::placeholder {
  color: #656f8b;
}

.wa-field input:hover,
.wa-field textarea:hover {
  border-color: rgba(39, 79, 225, 0.42);
}

.wa-field input:focus,
.wa-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(39, 79, 225, 0.17);
}

.wa-field input:focus-visible,
.wa-field textarea:focus-visible {
  outline: 2.5px solid #477bff;
  outline-offset: 2px;
}

.wa-field input[aria-invalid="true"],
.wa-field textarea[aria-invalid="true"] {
  border-color: #c42b3f;
  box-shadow: 0 0 0 4px rgba(196, 43, 63, 0.14);
}

.wa-error {
  font-size: 0.84rem;
  font-weight: 500;
  color: #a81f31;
}

.wa-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px rgba(39, 79, 225, 0.3);
  transition: background 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.wa-submit:hover {
  background: #1d3cc4;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(39, 79, 225, 0.38);
}

.wa-submit:active {
  transform: translateY(0);
}

.wa-submit svg {
  flex: none;
  transition: transform 0.4s var(--ease);
}

.wa-submit:hover svg {
  transform: rotate(-8deg) scale(1.08);
}

.wa-note {
  font-size: 0.84rem;
  color: var(--muted);
}

.wa-status {
  font-size: 0.88rem;
  font-weight: 560;
  color: #146c43;
  min-height: 1.3em;
}

.wa-status:empty {
  min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
  .wa-submit,
  .wa-submit svg,
  .wa-field input,
  .wa-field textarea {
    transition: none;
  }

  .wa-submit:hover {
    transform: none;
  }
}

@supports (backdrop-filter: blur(10px)) {
  .contact-form-panel {
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(232, 238, 252, 0.92));
    backdrop-filter: blur(10px);
  }
}

/* ==========================================================================
   9. Footer & Scroll-to-Top
   ========================================================================== */

footer {
  background: var(--white);
  color: #191d32;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-block: clamp(44px, 5vw, 76px);
}

.footer-grid h2 {
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--navy-800);
}

.footer-grid a {
  display: block;
  width: fit-content;
  padding: 5px 0;
  text-underline-offset: 4px;
  text-decoration-color: #9ba2af;
  color: #40485b;
  font-size: 0.94rem;
}

.footer-grid a:hover {
  color: var(--blue);
}

.footer-end {
  border-top: 2px solid #dfe5f0;
}

.footer-end .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
  font-size: 0.9rem;
  color: #4b546b;
  flex-wrap: wrap;
}

.footer-end a:hover {
  color: var(--blue);
}

.footer-end small {
  margin-left: auto;
  font-size: inherit;
}

/* The ChatAI CRM bubble owns the bottom-right corner: 60px wide, 20px from
   the bottom, 35px from the right. This button stacks above it rather than
   under it, where the widget hides it completely. */
.scroll-up {
  position: fixed;
  bottom: 94px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--blue-bright);
  background: rgba(52, 99, 251, 0.82);
  backdrop-filter: blur(6px);
  color: var(--white);
  display: grid;
  place-items: center;
  z-index: 900;
  box-shadow: 0 6px 20px rgba(52, 99, 251, 0.36);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.scroll-up.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================================================
   10. Rich Burger Mega-Menu & Full-Screen Ask Victory AI Workspace
   ========================================================================== */

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(235, 240, 249, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
}

.menu-backdrop.is-open {
  display: flex;
}

.menu-shell {
  width: 100%;
  height: 100%;
  display: flex;
  padding: 20px 26px;
  gap: 24px;
  overflow: hidden;
}

.menu-rail {
  width: 270px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.menu-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-800);
  font-size: 22px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(14, 10, 66, 0.14);
  margin-bottom: 24px;
}

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

.menu-area-btn {
  position: relative;
  text-align: left;
  padding: 12px 16px;
  border-radius: 9px;
  background: transparent;
  font-size: 1rem;
  color: var(--navy-800);
  transition: background 0.18s ease, color 0.18s ease;
}

.menu-area-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #6f9ffb, #3263f9);
  opacity: 0;
}

.menu-area-btn:hover,
.menu-area-btn.is-active {
  background: var(--white);
  color: var(--blue);
  font-weight: 560;
  box-shadow: 0 6px 18px rgba(14, 10, 66, 0.06);
}

.menu-area-btn:hover::before,
.menu-area-btn.is-active::before {
  opacity: 1;
}

.menu-direct-links {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #d2d9e7;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-direct-links a {
  padding: 5px 16px;
  font-size: 0.92rem;
  color: var(--grey-700);
  text-decoration: none;
}

.menu-direct-links a:hover {
  color: var(--blue);
}

.menu-panel {
  flex: 1;
  background: var(--white);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 40px);
  overflow-y: auto;
  box-shadow: 0 12px 34px rgba(14, 10, 66, 0.07);
}

.menu-panel-title {
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  color: var(--navy-800);
  margin-bottom: 22px;
}

.menu-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.menu-feature-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--white);
  background: #101532;
  text-decoration: none;
}

.menu-feature-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  transition: transform 0.55s var(--ease);
}

.menu-feature-tile:hover img {
  transform: scale(1.06);
}

.menu-feature-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 38, 0.15) 0%, rgba(10, 14, 38, 0.86) 100%);
}

.menu-feature-tile > div {
  position: relative;
  z-index: 2;
}

.menu-feature-tile h4 {
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.menu-feature-tile p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.menu-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.menu-col-box {
  background: var(--grey-200);
  border-radius: 12px;
  padding: 20px 22px;
}

.menu-col-box h4 {
  font-size: 1.05rem;
  color: var(--navy-800);
  margin-bottom: 12px;
}

.menu-col-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.menu-col-box a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--navy-800);
}

.menu-col-box a:hover {
  color: var(--blue);
}

/* Fullscreen Ask Victory Workspace */
.ai-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: #f0f5fd;
  display: none;
  grid-template-columns: 68px 1fr;
}

.ai-modal.is-open {
  display: grid;
}

.ai-modal.sidebar-expanded {
  grid-template-columns: 245px 1fr;
}

.ai-sidebar {
  background: var(--white);
  border-right: 1px solid #d1dceb;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-sidebar-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #d1dceb;
  background: var(--white);
  display: grid;
  place-items: center;
}

.ai-sidebar-btn.is-dark {
  background: #23252d;
  color: var(--white);
  border-color: #23252d;
}

.ai-history-list {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.ai-modal.sidebar-expanded .ai-history-list {
  display: flex;
}

.ai-history-item {
  text-align: left;
  background: var(--grey-200);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.84rem;
}

.ai-main {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* dvh, not svh, here: this one is a full-screen overlay the reader is typing
   into, so it should follow the chrome as it slides away rather than leave a
   band of page showing underneath. */
@supports (height: 100dvh) {
  .ai-main {
    height: 100dvh;
  }
}

.ai-topbar {
  height: 66px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dce4f1;
}

.ai-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist', 'Inter', sans-serif;
  font-weight: 580;
  font-size: 1.08rem;
  color: var(--navy-800);
}

.ai-orb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #9ad3ff, #365ef8);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
}

.ai-close-pill {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid #d1dceb;
  background: var(--white);
  color: var(--navy-800);
}

.ai-thread {
  flex: 1;
  overflow-y: auto;
  padding: 26px;
  max-width: 900px;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-msg {
  padding: 15px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* An answer from the model arrives as markdown: paragraphs, the odd bullet
   list, the odd bold run. app.js renders those three and nothing else. */
.ai-msg p + p,
.ai-msg ul {
  margin-top: 10px;
}

.ai-msg ul {
  margin-bottom: 0;
  padding-left: 20px;
  display: grid;
  gap: 5px;
}

.ai-msg li {
  list-style: disc;
}

/* Shown while the request is out. Dimmed rather than animated, so it costs
   nothing on a weak device and says the same thing under reduced motion. */
.ai-msg.is-pending p {
  opacity: 0.62;
  font-style: italic;
}

.ai-msg.is-pending p::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: askPulse 1.1s ease-in-out infinite;
}

@keyframes askPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .ai-msg.is-pending p::after { animation: none; opacity: 0.7; }
}

.ai-msg.is-user {
  align-self: flex-end;
  background: var(--navy-800);
  color: var(--white);
  max-width: 72%;
}

.ai-msg.is-assistant {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid #d1dceb;
  color: var(--ink);
  max-width: 86%;
  box-shadow: 0 6px 18px rgba(14, 10, 66, 0.05);
}

.ai-msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.ai-msg-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--grey-200);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 560;
  text-decoration: none;
}

.ai-msg-link:hover {
  background: #e1ebff;
}

.ai-composer-wrap {
  padding: 0 26px 24px;
  max-width: 900px;
  width: 100%;
  margin-inline: auto;
}

.ai-composer {
  background: var(--white);
  border: 2px solid #d1dceb;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(118, 95, 184, 0.14);
}

.ai-composer textarea {
  width: 100%;
  height: 60px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
}

.ai-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.ai-modal-mic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #77a8ff, #2e62f5);
  color: var(--white);
  display: grid;
  place-items: center;
}

/* ==========================================================================
   11. Full-Page School Admissions Popup (3-Second Delay)
   ========================================================================== */

.admission-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(8, 12, 32, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admission-modal.is-open {
  display: flex;
  animation: admissionFadeIn 0.35s var(--ease);
}

@keyframes admissionFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.admission-dialog {
  width: min(920px, 100%);
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 44% 56%;
  box-shadow: 0 32px 90px rgba(4, 8, 28, 0.5);
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}

.admission-visual {
  position: relative;
  min-height: 360px;
  background: #0d1638;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: var(--white);
}

.admission-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
}

.admission-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 44, 0.18) 0%, rgba(10, 16, 44, 0.9) 100%);
}

.admission-visual-copy {
  position: relative;
  z-index: 2;
}

.admission-visual-copy strong {
  display: block;
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 560;
  margin-top: 10px;
  line-height: 1.2;
}

.admission-visual-copy p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.86);
}

.admission-copy {
  padding: clamp(24px, 3.6vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  color: var(--ink);
}

.admission-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grey-200);
  color: var(--navy-800);
  font-size: 22px;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.admission-close:hover {
  background: var(--navy-800);
  color: var(--white);
}

.admission-copy h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  color: var(--navy-800);
  letter-spacing: -0.04em;
}

.admission-copy p {
  color: var(--muted);
  font-size: 0.96rem;
}

.admission-points {
  list-style: none;
  padding: 0;
  margin: 4px 0 8px;
  display: grid;
  gap: 8px;
}

.admission-points li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: #273049;
}

.admission-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 700;
}

.admission-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.admission-dismiss {
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px 4px;
}

.admission-dismiss:hover {
  color: var(--navy-800);
}

/* ==========================================================================
   12. Workshops Page Components (Corporate & School Tracks)
   ========================================================================== */

/* Was 72vh, so these heroes stopped short of the fold and the next section
   showed through. They use the same rule as the home hero now. */
.workshop-hero {
  min-height: calc(100vh - 10px);
}

@supports (min-height: 100svh) {
  .workshop-hero {
    min-height: calc(100svh - 10px);
  }
}

.workshop-hero .hero-centre {
  padding: clamp(104px, 13vh, 142px) 20px 32px;
  gap: 24px;
}

.workshop-hero-sub {
  max-width: 62ch;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.workshop-jump-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.workshop-hero-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(93%, 1180px);
  margin: 0 auto 28px;
}

.workshop-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.workshop-dark-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.workshop-dark-card h3 {
  font-size: 1.38rem;
  color: var(--navy-800);
}

.workshop-dark-card p {
  color: #30384b;
}

.workshop-quote {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e2e8f3;
  font-size: 0.9rem;
  color: var(--grey-700);
  font-style: italic;
}

.school-tracks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.school-card {
  background: var(--white);
  border-radius: 14px;
  padding: clamp(24px, 3vw, 38px);
  box-shadow: 0 12px 28px rgba(14, 10, 66, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.school-card h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  color: var(--navy-800);
}

.school-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.school-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.school-list li {
  position: relative;
  padding-left: 22px;
  color: #2d354c;
  font-size: 0.96rem;
}

.school-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 700;
}

.school-logistics-bar {
  margin-top: 24px;
  background: var(--white);
  border: 1px solid #d1dceb;
  border-radius: 12px;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.logistics-item strong {
  display: block;
  font-family: 'Geist', 'Inter', sans-serif;
  color: var(--navy-800);
  margin-bottom: 4px;
}

.logistics-item span {
  font-size: 0.93rem;
  color: var(--muted);
}

.speaker-section {
  background: var(--white);
}

.speaker-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: var(--grey-200);
  border: 1px solid #d7e0f0;
  border-radius: 16px;
  padding: clamp(22px, 3vw, 38px);
}

.speaker-card img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 14px;
}

.speaker-card h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.25rem);
  color: var(--navy-800);
  margin: 10px 0 8px;
}

.speaker-role {
  font-weight: 560;
  color: var(--blue);
  margin-bottom: 12px;
}

@media (max-width: 1020px) {
  .workshop-hero-cards,
  .workshop-cards-3,
  .school-tracks-grid,
  .school-logistics-bar {
    grid-template-columns: 1fr;
  }

  .speaker-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .speaker-card img {
    width: 160px;
    height: 160px;
  }
}

/* ==========================================================================
   13. Velocity Marquee Client Logos (Home) & Portfolio Screenshots + Lightbox
   ========================================================================== */

.vmq-section {
  background: #060918;
  color: var(--white);
  padding-block: clamp(46px, 5.5vw, 72px);
  border-top: 1px solid rgba(99, 102, 241, 0.22);
  border-bottom: 1px solid rgba(99, 102, 241, 0.22);
  overflow: hidden;
}

.vmq-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block: 4px 46px;
}

.vmq-root {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%);
  padding-block: 4px;
}

.vmq-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  gap: 26px;
}

.vmq-item {
  flex: 0 0 auto;
}

.vmq-sep {
  flex: 0 0 auto;
  color: rgba(148, 163, 184, 0.48);
  font-size: 1.15rem;
  line-height: 1;
  user-select: none;
}

.vmq-sep--star {
  color: #6366f1;
  font-size: 1.25rem;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.45));
}

.vmq-logo-card {
  height: 78px;
  min-width: 215px;
  padding: 14px 24px;
  border-radius: 14px;
  background: var(--logo-bg, #ffffff);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
}

.vmq-logo-card--dark {
  border-color: rgba(148, 163, 184, 0.24);
}

.vmq-logo-card:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(99, 102, 241, 0.72);
  box-shadow: 0 14px 32px rgba(39, 79, 225, 0.28);
}

.vmq-logo-card img {
  max-height: 48px;
  max-width: 190px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.vmq-logo-card--soft img {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.bjpci-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #162244;
  text-align: left;
}

.bjpci-lockup img {
  width: 32px;
  height: 34px;
  max-height: none;
  flex: none;
}

.bjpci-lockup strong {
  display: block;
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.bjpci-lockup span {
  display: block;
  font-size: 0.7rem;
  color: #5b657e;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

.vmq-pause-btn {
  position: absolute;
  right: clamp(14px, 3vw, 36px);
  bottom: 0;
  z-index: 4;
  padding: 6px 13px;
  border-radius: 99px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 20, 44, 0.84);
  color: rgba(241, 245, 249, 0.88);
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.vmq-pause-btn:hover,
.vmq-pause-btn[aria-pressed="true"] {
  background: rgba(39, 79, 225, 0.9);
  border-color: rgba(147, 180, 255, 0.65);
  color: var(--white);
}

.clients-cta-wrap {
  margin-top: clamp(26px, 3.6vw, 38px);
  display: flex;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .vmq-root {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .vmq-pause-btn {
    display: none;
  }
}

/* ==========================================================================
   13b. Testimonials Vertical Stacked Carousel (Danil89/yoPBMP Inspired)
   ========================================================================== */

.testimonials-section {
  background: linear-gradient(150deg, #274fe1 0%, #4d51df 52%, #7553d9 100%);
  color: var(--white);
  overflow: hidden;
}

.testimonials-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.25fr;
  align-items: center;
  gap: clamp(28px, 4.5vw, 64px);
}

.testimonials-intro .testimonials-badge {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.testimonials-intro h2 {
  font-size: clamp(2.15rem, 3.6vw, 3.6rem);
  letter-spacing: -0.05em;
  font-weight: 430;
  color: var(--white);
  margin: 14px 0 12px;
}

.testimonials-intro > p {
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.04rem;
}

.testimonials-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.t-client-pill {
  padding: 7px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  font-weight: 540;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.t-client-pill:hover {
  background: rgba(255, 255, 255, 0.24);
  color: var(--white);
}

.t-client-pill.is-active {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy-800);
}

.testimonials-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.t-ctrl-btn {
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 99px;
  background: rgba(14, 10, 66, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  font-size: 0.96rem;
  font-weight: 560;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.t-ctrl-btn:hover,
.t-ctrl-pause[aria-pressed="true"] {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy-800);
}

.t-ctrl-pause {
  font-size: 0.8rem;
  padding: 0 14px;
}

.t-slider-viewport {
  position: relative;
  height: 580px;
  overflow: hidden;
  border-radius: 16px;
}

.t-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.t-slider-item {
  position: absolute;
  left: 0;
  top: 0;
  width: min(565px, calc(100% - 76px));
  min-height: 204px;
  padding: 24px 28px;
  border-radius: 12px;
  background-color: var(--white);
  display: block;
  box-shadow: 0 6px 18px rgba(14, 10, 66, 0.14);
  opacity: 0;
  z-index: 0;
  will-change: transform, opacity;
}

.t-card-content {
  width: 100%;
}

.t-card-title {
  color: #161b33;
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0;
}

.t-card-desc {
  color: #535b73;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.54;
  margin: 8px 0 0 0;
}

.t-card-meta {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

@media (prefers-reduced-motion: reduce) {
  .t-slider-viewport {
    height: auto;
    overflow: visible;
  }

  .t-slider {
    display: grid;
    gap: 16px;
  }

  .t-slider-item {
    position: static;
    width: 100%;
    min-height: auto;
    opacity: 1;
  }

  .t-slider-item[aria-hidden="true"] {
    display: none;
  }

  .testimonials-controls {
    display: none;
  }
}

/* Portfolio Page — Drifting Client Gallery */
.gal-section {
  background: #0a0c13;
  color: var(--white);
  padding-block: clamp(56px, 6vw, 96px);
  overflow: hidden;
}

.gal-section .section-intro h2 {
  color: var(--white);
}

.gal-section .section-intro p {
  color: rgba(255, 255, 255, 0.72);
}

.gal {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1540px;
  margin: clamp(26px, 3vw, 46px) auto 0;
  padding-inline: clamp(12px, 2vw, 26px);
  overflow: hidden;
}

.gal__col {
  flex: 0 0 100%;
  min-width: 0;
  position: relative;
}

.gal__strip {
  display: block;
}

.gal__photo {
  position: relative;
  /* The label sizes itself against this box, so a long client name shrinks to
     fit its own card rather than wrapping or running past the picture. */
  container-type: inline-size;
  padding-bottom: clamp(26px, 3.2vw, 54px);
  text-align: right;
}

.gal__btn {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  color: inherit;
  text-align: right;
}

.gal__frame {
  display: block;
  overflow: visible;
}

.gal__frame img {
  width: 100%;
  margin-left: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
  filter: saturate(0.68) brightness(0.84);
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1) 0.1s, filter 0.6s ease, box-shadow 0.6s ease;
}

.gal__name {
  display: block;
  position: relative;
  margin-top: clamp(-16px, -1.1vw, -8px);
  padding-right: 6px;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  /* --name-fit is set per card in the markup: the largest size at which that
     particular name still fits the picture on one line, in cqw. Capped so the
     short names do not tower over the long ones. */
  font-size: min(calc(var(--name-fit, 5) * 1cqw), 2.1rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.13);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.95);
  /* The label lies over a screenshot, and some of those have a bright or busy
     band exactly where it falls. A tight dark halo keeps the outline legible
     against anything without putting a visible scrim over the picture. */
  text-shadow: 0 0 3px rgba(2, 6, 16, 0.9), 0 2px 16px rgba(2, 6, 16, 0.75);
  transition: color 0.4s ease 0.28s, letter-spacing 0.5s var(--ease);
}

/* Without container queries there is nothing to measure against, so fall back
   to a size small enough that the longest name still fits on one line. */
@supports not (container-type: inline-size) {
  .gal__name {
    font-size: clamp(0.95rem, 1.35vw, 1.35rem);
  }
}

.gal__meta {
  position: absolute;
  left: 6%;
  right: 6px;
  bottom: 2px;
  z-index: 2;
  padding: 11px 15px 13px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 11, 26, 0.95);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
  pointer-events: none;
}

@supports ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
  .gal__meta {
    background: rgba(5, 11, 26, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

/* A hovered card, caption and all, comes above the cards drifting beside it. */
.gal__photo:hover,
.gal__photo:focus-within {
  z-index: 3;
}

.gal__meta h3 {
  margin-top: 0;
  font-size: 0.98rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  color: var(--white);
}

.gal__meta p {
  margin-top: 4px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.66);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gal__photo:hover .gal__frame img,
.gal__btn:focus-visible .gal__frame img {
  filter: none;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.65);
}

.gal__photo:hover .gal__name,
.gal__btn:focus-visible .gal__name {
  color: var(--white);
  letter-spacing: 0.035em;
}

.gal__photo:hover .gal__meta,
.gal__photo:focus-within .gal__meta {
  opacity: 1;
  transform: translateY(0);
}

.gal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(26px, 3.4vw, 46px);
}

.gal__pause {
  padding: 8px 15px;
  border-radius: 99px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(241, 245, 249, 0.9);
  font-size: 0.8rem;
  font-weight: 560;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}

.gal__pause:hover {
  transform: translateY(-1px);
}

.gal__pause:hover,
.gal__pause[aria-pressed="true"] {
  background: rgba(39, 79, 225, 0.92);
  border-color: rgba(147, 180, 255, 0.7);
  color: var(--white);
}

.gal-section .dark-pill {
  background: var(--white);
  color: var(--ink);
}

.gal-section .dark-pill:hover {
  background: var(--cyan);
  color: var(--ink);
}

@media (min-width: 560px) {
  .gal__col {
    flex: 0 0 50%;
  }
}

/* Drift only where there is room for it: wide viewports with a fine pointer. */
@media (min-width: 950px) and (pointer: fine) {
  .gal {
    height: min(100svh, 940px);
    min-height: 620px;
  }

  .gal__col {
    flex: 0 0 33.3333%;
  }

  .gal__photo {
    text-align: right;
    padding-bottom: clamp(70px, 8vw, 130px);
  }

  .gal__col:nth-child(2) .gal__strip {
    padding-top: clamp(48px, 7vw, 110px);
  }

  .gal__col:nth-child(3) .gal__strip {
    padding-top: clamp(20px, 3vw, 54px);
  }

  .gal__frame img {
    width: 92%;
    transform: translateX(26%);
  }

  .gal__name {
    width: 92%;
    margin-left: auto;
    transform: translateX(26%);
    transition: color 0.4s ease 0.28s, letter-spacing 0.5s var(--ease),
      transform 1s cubic-bezier(0.19, 1, 0.22, 1) 0.1s;
  }

  .gal__photo:hover .gal__frame img,
  .gal__btn:focus-visible .gal__frame img,
  .gal__photo:hover .gal__name,
  .gal__btn:focus-visible .gal__name {
    transform: translateX(0);
  }

  /* The 26% push is what makes the columns overlap into a collage, but the
     gallery clips at its own edge, so in the last column it was cutting 83px
     off both the picture and the client's name. The last column sits straight
     instead: the overlap between columns survives, and nothing is lost. */
  .gal__col:nth-child(3) .gal__frame img,
  .gal__col:nth-child(3) .gal__name {
    transform: translateX(0);
  }

  .gal.is-live .gal__strip {
    will-change: transform;
    animation: gal-drift var(--dur, 62s) cubic-bezier(0.45, 0, 0.55, 1) var(--delay, 0s) infinite alternate;
  }

  .gal.is-live .gal__strip--alt {
    animation-direction: alternate-reverse;
  }

  .gal.is-live .gal__col:hover .gal__strip,
  .gal.is-live .gal__col:focus-within .gal__strip,
  .gal.is-live.is-paused .gal__strip {
    animation-play-state: paused;
  }
}

@keyframes gal-drift {
  0%, 6% {
    transform: translateY(0);
  }
  94%, 100% {
    transform: translateY(var(--drift, 0px));
  }
}

@supports not ((-webkit-text-stroke: 1px #fff) or (text-stroke: 1px #fff)) {
  .gal__name {
    color: var(--white);
  }
}

@media (prefers-contrast: more) {
  .gal__name {
    color: var(--white);
  }

  /* Captions are permanently open here, so drop the collage overlap that
     would otherwise put one card's caption across the next card's image. */
  .gal__frame img {
    transform: none !important;
  }

  .gal__meta {
    position: static;
    margin-top: 12px;
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gal {
    height: auto;
    min-height: 0;
  }

  .gal__strip {
    animation: none !important;
    transform: none !important;
  }

  .gal__frame img {
    transform: none !important;
    filter: none;
  }

  .gal__name {
    color: var(--white);
  }

  .gal__meta {
    position: static;
    margin-top: 12px;
    opacity: 1;
    transform: none;
  }

  .gal__pause {
    display: none;
  }
}

/* Screenshot Lightbox Modal */
.shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1550;
  background: rgba(6, 10, 26, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.shot-lightbox.is-open {
  display: flex;
  animation: admissionFadeIn 0.25s var(--ease);
}

.shot-lightbox-dialog {
  position: relative;
  width: min(1060px, 100%);
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

@supports (max-height: 92dvh) {
  .shot-lightbox-dialog {
    max-height: 92dvh;
  }
}

.shot-lightbox-dialog.is-loading::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background-image: linear-gradient(90deg, rgba(71, 123, 255, 0), rgb(71, 123, 255), rgba(71, 123, 255, 0));
  background-size: 45% 100%;
  background-repeat: no-repeat;
  animation: shotLoadBar 1.05s linear infinite;
}

@keyframes shotLoadBar {
  from {
    background-position: -45% 0;
  }
  to {
    background-position: 145% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot-lightbox-dialog.is-loading::after {
    animation: none;
    background-image: none;
    background-color: rgb(71, 123, 255);
  }
}

.shot-lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  padding: 16px 22px;
  border-bottom: 1px solid #e4eaf5;
  background: var(--white);
}

.shot-lightbox-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.shot-lightbox-title h3 {
  font-size: 1.15rem;
  color: var(--navy-800);
}

.shot-lightbox-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.shot-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #edf1f9;
  color: var(--navy-800);
  font-size: 1rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.shot-nav-btn:hover {
  background: var(--navy-800);
  color: var(--white);
}

.shot-meta {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.shot-meta:empty {
  display: none;
}

/* One chip per captured page, shown only for the sites where more than the
   home page was captured. */
.shot-pages {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  padding: 11px 22px 13px;
  background: var(--white);
  border-bottom: 1px solid #e4eaf5;
  overflow-x: auto;
  scrollbar-width: thin;
}

.shot-pages[hidden] {
  display: none;
}

.shot-page-chip {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #d9e1f0;
  background: #f4f7fd;
  color: var(--navy-800);
  font-size: 0.85rem;
  font-weight: 540;
  line-height: 1.25;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.shot-page-chip:hover {
  background: #e7edfa;
  border-color: #b9c8e6;
}

.shot-page-chip[aria-pressed="true"] {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

.shot-lightbox-body {
  background: #0d1329;
  /* Takes the space the head, the page chips and the caption leave, and keeps
     a floor so a landscape phone still gets a usable window on the page. */
  flex: 1 1 auto;
  min-height: 160px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.shot-lightbox-body img {
  width: 100%;
  max-width: 1024px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: opacity 0.25s ease;
}

/* A full page capture can be a megabyte. Fade it while it arrives rather than
   leaving the previous site's screenshot sitting there looking like the answer. */
.shot-lightbox-body.is-loading img {
  opacity: 0.3;
}

@media (prefers-reduced-motion: reduce) {
  .shot-lightbox-body img,
  .shot-page-chip {
    transition: none;
  }
}

.shot-lightbox-foot {
  flex: 0 0 auto;
  padding: 14px 22px;
  background: #f6f8fd;
  border-top: 1px solid #e4eaf5;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ==========================================================================
   Service & Product Detail Pages
   ========================================================================== */

.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
}

.fit-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fit-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(20px, 2.1vw, 30px);
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(20, 30, 70, 0.1);
  box-shadow: 0 10px 26px rgba(14, 10, 66, 0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}

.fit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(39, 79, 225, 0.4);
  box-shadow: 0 18px 38px rgba(14, 10, 66, 0.14);
}

.fit-card__kicker {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-700);
  transition: color 0.25s ease;
}

.fit-card:hover .fit-card__kicker {
  color: var(--blue);
}

.fit-card h3 {
  font-size: clamp(1.18rem, 1.5vw, 1.5rem);
  letter-spacing: -0.035em;
  color: var(--navy-800);
}

.fit-card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.fit-card .under {
  align-self: flex-start;
  margin-top: 6px;
}

/* Alternating image + copy rows */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 4vw, 70px);
  align-items: center;
}

.split-row + .split-row {
  margin-top: clamp(44px, 5vw, 88px);
}

.split-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 22px 52px rgba(8, 12, 30, 0.28);
  background: var(--grey-200);
}

.split-media img {
  width: 100%;
  height: clamp(230px, 27vw, 430px);
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s ease;
}

.split-row:hover .split-media img {
  transform: scale(1.045);
}

.split-copy h2 {
  margin: 12px 0 14px;
  font-size: clamp(1.85rem, 2.9vw, 3rem);
  letter-spacing: -0.045em;
  font-weight: 500;
}

.split-copy > p {
  font-size: clamp(1rem, 1.12vw, 1.1rem);
  opacity: 0.82;
  max-width: 54ch;
}

.split-list {
  list-style: none;
  margin: clamp(18px, 2vw, 26px) 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
  max-width: 58ch;
}

.split-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.97rem;
  opacity: 0.84;
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

.split-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--blue-bright), var(--cyan));
  transition: transform 0.35s var(--ease);
}

.split-list li:hover {
  opacity: 1;
  transform: translateX(2px);
}

.split-list li:hover::before {
  transform: rotate(45deg) scale(1.12);
}

.split-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: clamp(22px, 2.6vw, 32px);
}

.practice .split-media,
.gal-section .split-media {
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5);
}

.engagement-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* FAQ */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: 14px;
  background: var(--white);
  border: 1px solid rgba(20, 30, 70, 0.1);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(39, 79, 225, 0.38);
  box-shadow: 0 12px 30px rgba(14, 10, 66, 0.08);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 1.5vw, 20px) clamp(16px, 1.8vw, 24px);
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  color: var(--navy-800);
  list-style: none;
  transition: color 0.25s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq-item summary:hover {
  color: var(--blue);
}

.faq-body {
  padding: 0 clamp(16px, 1.8vw, 24px) clamp(16px, 1.8vw, 22px);
  color: var(--muted);
  max-width: 72ch;
}

@media (prefers-reduced-motion: reduce) {
  .split-media img,
  .fit-card,
  .split-list li {
    transition: none;
  }

  .split-row:hover .split-media img {
    transform: none;
  }
}

@media (max-width: 1080px) {
  .fit-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .split-row,
  .split-row + .split-row {
    grid-template-columns: 1fr;
  }

  .split-row--flip .split-media {
    order: -1;
  }

  .fit-grid,
  .engagement-cards {
    grid-template-columns: 1fr;
  }

  .split-media img {
    height: clamp(210px, 44vw, 320px);
  }
}

/* ==========================================================================
   Document Pages (About, Privacy, Contact, 404)
   ========================================================================== */

/* A dark band under the fixed header, so the white wordmark stays readable
   on pages that do not open with a hero. */
.doc-head {
  position: relative;
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(39, 79, 225, 0.42) 0%, rgba(8, 9, 13, 0) 58%),
    radial-gradient(90% 120% at 88% 10%, rgba(92, 64, 155, 0.4) 0%, rgba(8, 9, 13, 0) 60%),
    linear-gradient(165deg, #0d1020 0%, #08090d 100%);
  color: var(--white);
  padding-block: clamp(132px, 15vw, 190px) clamp(40px, 5vw, 76px);
  overflow: hidden;
}

.doc-head::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(10, 224, 237, 0.55), rgba(255, 255, 255, 0));
}

.doc-head h1 {
  margin: 14px 0 0;
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  letter-spacing: -0.05em;
  font-weight: 460;
  max-width: 18ch;
}

.doc-lede {
  margin-top: 16px;
  max-width: 62ch;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  color: rgba(255, 255, 255, 0.82);
}

.doc-meta {
  margin-top: 18px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.doc {
  background: var(--grey-200);
}

.doc-body {
  max-width: 760px;
}

.doc-body h2 {
  margin-top: clamp(32px, 3.4vw, 48px);
  font-size: clamp(1.3rem, 1.8vw, 1.72rem);
  letter-spacing: -0.035em;
  color: var(--navy-800);
  scroll-margin-top: 110px;
}

.doc-body h2:first-child {
  margin-top: 0;
}

.doc-body p,
.doc-body li {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.66;
}

.doc-body ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.doc-body li::marker {
  color: var(--blue);
}

.doc-body strong {
  color: var(--ink);
  font-weight: 600;
}

.doc-body a:not(.under) {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.doc-body a:not(.under):hover {
  color: var(--violet);
}

.doc-foot {
  margin-top: clamp(34px, 4vw, 54px);
  padding-top: clamp(20px, 2.4vw, 30px);
  border-top: 1px solid rgba(20, 30, 70, 0.12);
}

.error-head {
  padding-block: clamp(150px, 18vw, 230px) clamp(50px, 6vw, 90px);
  text-align: center;
}

.error-head .doc-lede {
  margin-inline: auto;
}

.error-head .type-tag {
  font-size: 0.92rem;
  letter-spacing: 0.1em;
}

/* Team cards */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.person-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(20, 30, 70, 0.08);
  box-shadow: 0 12px 30px rgba(14, 10, 66, 0.08);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.person-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(14, 10, 66, 0.16);
}

.person-card picture {
  overflow: hidden;
  background: var(--grey-300);
}

.person-card img {
  width: 100%;
  /* Fallback height for browsers without aspect-ratio. The @supports block
     further down replaces it, so the crop is identical at every card width. */
  height: clamp(230px, 24vw, 330px);
  object-fit: cover;
  /* All three sources are tight above the hair, so the frame keeps what
     headroom there is and takes the overflow off the jacket instead. */
  object-position: center 12%;
  transition: transform 0.8s var(--ease);
}

.person-card:hover img {
  transform: scale(1.04);
}

.person-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(16px, 1.7vw, 24px);
}

.person-copy h3 {
  font-size: clamp(1.1rem, 1.35vw, 1.38rem);
  letter-spacing: -0.03em;
  color: var(--navy-800);
}

.person-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.person-copy p:not(.person-role) {
  font-size: 0.94rem;
  color: var(--muted);
}

.person-copy .under {
  align-self: flex-start;
  margin-top: 4px;
}


.person-remit {
  font-size: 0.9rem;
  color: var(--navy-800);
  font-weight: 560;
}

.person-facts {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.person-facts li {
  position: relative;
  padding-left: 16px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}

.person-facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--blue-bright), var(--cyan));
  transition: transform 0.3s var(--ease);
}

.person-card:hover .person-facts li::before {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .person-card,
  .person-card img {
    transition: none;
  }

  .person-card:hover {
    transform: none;
  }

  .person-card:hover img {
    transform: none;
  }
}

@media (max-width: 900px) {
  .people-grid {
    grid-template-columns: 1fr;
  }

  .person-card img {
    height: clamp(240px, 56vw, 340px);
  }
}

/* Placed after the media query above so it wins on source order. A fixed
   ratio means the same crop on a 320px phone and a 1600px desktop: the
   headroom above the hair survives and the chin is never cut. */
@supports (aspect-ratio: 7 / 6) {
  .person-card img {
    height: auto;
    aspect-ratio: 7 / 6;
  }
}


/* Consent banner */
.consent {
  position: fixed;
  left: clamp(14px, 2vw, 26px);
  bottom: clamp(14px, 2vw, 26px);
  z-index: 1700;
  width: min(380px, calc(100vw - 28px));
  padding: clamp(18px, 2vw, 24px);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(14, 17, 32, 0.97), rgba(8, 9, 13, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  color: var(--white);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease);
}

.consent.is-open {
  opacity: 1;
  transform: translateY(0);
}

@supports (backdrop-filter: blur(12px)) {
  .consent {
    background: linear-gradient(165deg, rgba(14, 17, 32, 0.88), rgba(8, 9, 13, 0.9));
    backdrop-filter: blur(12px);
  }
}

.consent__title {
  font-size: 1.05rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.consent__text {
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.consent__text a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent__row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.consent__btn {
  flex: 1;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 560;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.consent__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.consent__btn--yes {
  background: var(--blue);
  border-color: var(--blue);
}

.consent__btn--yes:hover {
  background: #1d3cc4;
  border-color: #1d3cc4;
}

.link-btn {
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .consent,
  .consent__btn {
    transition: none;
  }

  .consent {
    opacity: 1;
    transform: none;
  }
}

/* Below about 480px the card is wide enough to run under the ChatAI CRM
   bubble, which then sits on top of the "No thanks" button. Lift it clear.
   Wider than that, the card is bottom-left and the bubble bottom-right, so
   they never meet. */
@media (max-width: 480px) {
  .consent {
    bottom: 94px;
  }
}

/* Two ways into the same assistant must not be on screen at once. While Ask
   Victoria, the menu, the admissions popup or a screenshot is open, the
   floating bubble steps back. `modal-open` is set by syncBodyModalLock in
   app.js; the widget sets nothing of its own, so its own panel is unaffected.
   Class names belong to ChatAI CRM's widget: if it ever renames them this
   rule stops applying and the bubble simply stays visible. */
body.modal-open .sc-bubble {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* ==========================================================================
   14. Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1180px) {
  .products-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* The nav drops to the burger here, not at 1080. With Blog added there are
     seven items, and between 1081 and 1180 the pill ran into the wordmark:
     measured 5px of overlap at 1120, 21px at 1081, with the wordmark rendering
     as "Victory TechNx". The header layout switches at the same width as the
     nav, so the two stay in step. */
  .mast-inner {
    display: flex;
    justify-content: space-between;
  }

  .mast-nav {
    display: none;
  }
}

@media (max-width: 1080px) {
  .hero-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-pillars-grid {
    grid-template-columns: 1fr;
  }

  .journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journal-item,
  .j1,
  .j4 {
    grid-column: auto;
    display: flex;
    min-height: 0;
  }

  .journal-item:not(.j1):not(.j4) picture,
  .journal-item picture {
    height: 170px;
  }

  .contact-inner,
  .what-we-do-grid,
  .testimonials-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mast {
    top: 14px;
    left: 14px;
    right: 14px;
  }

  .mast-inner {
    padding: 6px 8px;
    gap: 8px;
  }

  .round {
    width: 42px;
    height: 42px;
  }

  .mast-start {
    gap: 10px;
  }

  .wordmark {
    font-size: 1.08rem;
  }

  .wordmark img {
    width: 28px;
    height: 28px;
  }

  .ask-link {
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.84rem;
    gap: 6px;
  }

  .hero {
    min-height: max(700px, calc(100vh - 20px));
  }

  .hero-centre {
    padding: 88px 12px 24px;
    gap: 34px;
  }

  .ask-box {
    width: 96%;
    padding: 26px 14px 12px;
  }

  .hero-features {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    width: 96%;
    gap: 10px;
    padding-bottom: 6px;
  }

  .hero-features::-webkit-scrollbar {
    display: none;
  }

  .hero-feature {
    flex: 0 0 calc(78% - 8px);
    scroll-snap-align: start;
    min-height: 142px;
  }

  .practice-viewport {
    padding-left: 16px;
    padding-right: 16px;
  }

  .story-card {
    grid-template-columns: 1fr;
    grid-template-rows: 175px auto;
  }

  .story-copy {
    padding: 20px;
  }

  .platform-grid {
    flex-direction: column;
    min-height: auto;
  }

  .platform-card,
  .platform-card.is-expanded {
    flex: none;
    width: 100%;
  }

  .platform-media,
  .platform-card.is-expanded .platform-media {
    height: 220px;
  }

  .case-card {
    flex: 0 0 86vw;
  }

  .footer-grid,
  .menu-preview-grid,
  .menu-cols,
  .products-grid-4,
  .admission-dialog {
    grid-template-columns: 1fr;
  }

  .vmq-scene {
    gap: 14px;
    padding-bottom: 42px;
  }

  .vmq-logo-card {
    height: 68px;
    min-width: 158px;
    padding: 10px 16px;
  }

  .vmq-logo-card img {
    max-height: 40px;
    max-width: 150px;
  }

  .vmq-pause-btn {
    right: 50%;
    transform: translateX(50%);
  }

  .t-slider-viewport {
    height: 640px;
  }

  .t-slider-item {
    width: calc(100% - 18px);
    min-height: 204px;
    padding: 18px 20px;
  }

  .t-card-desc {
    font-size: 0.8rem;
    line-height: 1.44;
    margin-top: 6px;
  }

  .t-card-meta {
    margin-top: 8px;
  }

  .admission-visual {
    min-height: 168px;
    padding: 18px;
  }

  .admission-visual-copy strong {
    font-size: 1.15rem;
    margin-top: 8px;
  }

  .admission-copy {
    padding: 20px;
    gap: 10px;
  }

  .admission-copy h2 {
    font-size: 1.42rem;
  }

  .admission-points {
    font-size: 0.88rem;
    gap: 6px;
  }

  .journal-grid {
    grid-template-columns: 1fr;
  }

  .journal-item,
  .j1,
  .j4 {
    display: grid;
    grid-template-columns: 36% 1fr;
    min-height: 156px;
  }

  .journal-item picture,
  .journal-item:not(.j1):not(.j4) picture {
    height: 100%;
  }

  .journal-copy {
    padding: 14px 16px;
  }

  .journal-copy p {
    display: none;
  }

  .contact-offices {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-form-panel {
    border-radius: 18px;
  }

  .menu-shell {
    flex-direction: column;
    overflow-y: auto;
    padding: 14px;
  }

  .menu-rail {
    width: 100%;
    overflow-y: visible;
  }

  .ai-modal,
  .ai-modal.sidebar-expanded {
    grid-template-columns: 1fr;
  }

  .ai-sidebar {
    display: none;
  }
}

@media (max-width: 480px) {
  .mast {
    left: 10px;
    right: 10px;
  }

  .mast-inner {
    padding: 4px 6px;
    gap: 6px;
  }

  .round {
    width: 38px;
    height: 38px;
  }

  .mast-start {
    gap: 8px;
  }

  .wordmark {
    font-size: 0.96rem;
    gap: 6px;
    letter-spacing: -0.03em;
  }

  .wordmark img {
    width: 24px;
    height: 24px;
  }

  .ask-link {
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.78rem;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(5, 11, 27, 0.35);
  }
}

/* A phone held sideways gives about 390px of height. The hero's own content
   is taller than that at its normal size, so "fills exactly one viewport"
   stops being a layout rule and becomes a content decision: something has to
   come out. What comes out is the three suggestion chips, which only prefill
   the box underneath them, and a good deal of padding. Nothing that is only
   available here is hidden. */
@media (max-height: 620px) and (orientation: landscape) {
  .hero-centre {
    padding-top: 52px;
    padding-bottom: 8px;
    gap: 10px;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 3.4vw, 2rem);
    line-height: 1.12;
  }

  .ask-box {
    padding: 9px;
    gap: 8px;
  }

  .ask-bottom {
    padding: 0;
  }

  .ask-bottom-note {
    display: none;
  }

  .ask-box .suggestions {
    display: none;
  }

  .ask-input-frame {
    padding: 6px 10px;
  }

  .ask-input-frame textarea {
    min-height: 34px;
    height: 34px;
  }

  .guide-mic-orb {
    width: 40px;
    height: 40px;
    top: -20px;
  }

  .hero-features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 0 8px 8px;
  }

  .hero-feature {
    padding: 8px 9px;
    gap: 2px;
    /* The cards carry a min-height for the desktop layout; here it is the
       last 60px standing between the hero and the fold. */
    min-height: 0;
  }

  .hero-feature strong {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .hero-feature .mini-icon,
  .hero-feature .under {
    display: none;
  }

  .workshop-hero .hero-centre {
    padding-top: 64px;
    padding-bottom: 12px;
    gap: 12px;
  }

  .workshop-hero-sub {
    font-size: 0.8rem;
    line-height: 1.35;
    max-width: 62ch;
  }

  .workshop-hero-cards {
    gap: 6px;
    /* The base grid is three columns, so the products page's four cards wrap
       to a second row and that row is the overflow. One row, however many
       cards the page has. */
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    margin-bottom: 8px;
  }

  .workshop-hero-cards .hero-feature {
    padding: 7px 9px;
    min-height: 0;
  }

  /* Portfolio's hero cards carry a sentence each, which is what pushes that
     hero past the fold here. The same three sentences are in the gallery
     immediately below, so the card keeps its title and loses the blurb. */
  .workshop-hero-cards .hero-feature > span:not(.under) {
    display: none;
  }

  .workshop-hero-cards .hero-feature strong {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .hero-centre {
    padding-top: 48px;
  }

  .workshop-jump-row {
    gap: 8px;
  }

  .workshop-jump-row .pill {
    padding: 7px 14px;
    font-size: 0.82rem;
    min-height: 0;
  }
}

/* On a portrait phone the three hero cards stack, and the portfolio's cards
   now carry a full sentence each rather than a clipped label. The cards carry
   a min-height for the desktop row, which here leaves a block of dead space
   under every sentence and is what actually pushed the hero past the fold.
   Dropping it fits all three sentences in full, with nothing truncated. */
@media (max-width: 600px) and (orientation: portrait) {
  .workshop-hero-cards .hero-feature {
    min-height: 0;
    padding: 10px 12px;
    gap: 3px;
  }

  .workshop-hero-cards .hero-feature > span:not(.under) {
    font-size: 0.82rem;
    line-height: 1.38;
  }

  /* Stacked, four of these cards are most of the products hero and the page
     arrives already scrolled past its own headline. One swipeable row instead.
     The card width leaves the next one part-visible, which is the only
     affordance a scroll row needs; the scrollbar is hidden because on a phone
     it is an overlay that fades anyway. The cards are links, so tabbing
     through them scrolls them into view without extra work. */
  .workshop-hero-cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 76%;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    scrollbar-width: none;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .workshop-hero-cards::-webkit-scrollbar {
    display: none;
  }

  .workshop-hero-cards .hero-feature {
    scroll-snap-align: start;
  }

  .hero h1 {
    font-size: clamp(2rem, 8.6vw, 2.9rem);
  }

  .hero-centre {
    padding-top: 86px;
  }

  .workshop-hero-sub {
    font-size: 0.92rem;
  }
}

/* ==========================================================================
   15. Latest Articles On The Home Page (written by scripts/build-home-feed.py)
   ==========================================================================
   The markup these rules style is generated, never hand written: the script
   reads the blog's posts.json and writes the cards into index.html between two
   marker comments. So the class names here are a contract with that script,
   and renaming one means editing it too.

   Everything the script emits is an opaque light card. That is deliberate: the
   section it sits in may be light today and dark later (the site has both), and
   a card that carries its own surface reads at full contrast either way. The
   one piece of loose text, the empty line, is a card as well for the same
   reason. No rule here assumes the colour of its surroundings.
   ========================================================================== */

.feed-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* One or two posts published so far. Three equal columns would leave a hole
   where the third card is missing, so the grid matches what there is. */
.feed-grid--1 {
  grid-template-columns: minmax(0, 1fr);
}

.feed-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feed-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border: 1px solid #dfe4f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

/* A single post gets the wide treatment the journal cards use: art on the
   left, copy beside it, instead of one narrow column in a wide row. */
@media (min-width: 761px) {
  .feed-grid--1 .feed-card {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
  }

  .feed-grid--1 .feed-card__art {
    height: 100%;
  }
}

.feed-card__art {
  flex: none;
  overflow: hidden;
  background: #d1daed;
  aspect-ratio: 16 / 10;
}

/* Safari before 15 and Firefox before 89 have no aspect-ratio. Without a
   height the art collapses to nothing and the card looks broken, which is the
   one failure mode worth a fixed fallback. */
@supports not (aspect-ratio: 16 / 10) {
  .feed-card__art {
    height: clamp(150px, 13vw, 200px);
  }

  .feed-grid--1 .feed-card__art {
    height: auto;
    min-height: 220px;
  }
}

.feed-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

/* A post published without a cover. The gradient is the one the What We Do
   cards use, so an article with no image still belongs to the page rather
   than standing out as a gap. */
.feed-card__art--blank {
  background: linear-gradient(130deg, #adc9f8, #938edc);
}

.feed-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(18px, 2vw, 28px);
}

.feed-card__chip {
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--grey-200);
  color: var(--grey-700);
  font-size: 0.76rem;
  font-weight: 500;
}

.feed-card__title {
  font-size: clamp(1.1rem, 1.35vw, 1.4rem);
  letter-spacing: -0.03em;
  font-weight: 560;
  color: var(--navy-800);
}

.feed-card__title a {
  text-decoration: none;
}

/* The whole card is clickable, but the only anchor is the title, so the link
   text a screen reader announces is the article's name and nothing else. The
   overlay sits above the card and below the focus ring. */
.feed-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.feed-card__excerpt {
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.94rem;
}

.feed-card__meta {
  color: var(--muted);
  font-size: 0.84rem;
}

/* Decorative: the title above it is the real link, and this repeats it. It is
   here because a card that says nothing about what a click does reads as a
   picture, not a link. Hidden from assistive tech by the markup. */
.feed-card__more {
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.9rem;
  color: var(--navy-800);
}

/* Hover only where there is a real pointer. On a touch screen a :hover rule
   sticks after a tap and the card stays lifted until something else is
   touched, which reads as a bug. */
@media (hover: hover) {
  .feed-card:hover {
    box-shadow: 0 14px 32px rgba(118, 95, 184, 0.2);
    transform: translateY(-2px);
  }

  .feed-card:hover .feed-card__art img {
    transform: scale(1.05);
  }

  .feed-card:hover .feed-card__more {
    color: var(--blue);
  }

  .feed-card:hover .feed-card__more .arrow-diag {
    transform: translate(2px, -2px);
  }
}

/* Keyboard focus lands on the title link, whose own focus ring is drawn by the
   site's :focus-visible rule. This lifts the card with it so the ring is not
   the only thing that moves, and the shadow is the same one hover uses. */
.feed-card:focus-within {
  box-shadow: 0 14px 32px rgba(118, 95, 184, 0.2);
}

.feed-card:focus-within .feed-card__more {
  color: var(--blue);
}

/* No articles published yet, or the export is empty. The section keeps its
   heading and this one line explains the blank instead of leaving a hole or
   claiming articles that do not exist. */
.feed-empty {
  padding: clamp(18px, 2vw, 28px);
  background: var(--white);
  border: 1px solid #dfe4f0;
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1080px) {
  .feed-grid,
  .feed-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Below this the cards stack. 760px is where two cards in a row stop holding
   a readable line length rather than where a named device happens to sit. */
@media (max-width: 760px) {
  .feed-grid,
  .feed-grid--1,
  .feed-grid--2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .feed-card__art {
    aspect-ratio: 16 / 9;
  }
}

/* A 320px phone. The art keeps its proportions, the copy loses the padding it
   does not have room for, and nothing is clipped or scrolled sideways. */
@media (max-width: 380px) {
  .feed-card__body {
    padding: 16px 14px;
    gap: 8px;
  }

  .feed-card__title {
    font-size: 1.06rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-card,
  .feed-card__art img,
  .feed-card__more,
  .feed-card__more .arrow-diag {
    transition: none;
  }

  /* The lift and the image zoom are motion that carries no information: the
     shadow alone still says the card is under the pointer. */
  .feed-card:hover {
    transform: none;
  }

  .feed-card:hover .feed-card__art img {
    transform: none;
  }

  .feed-card:hover .feed-card__more .arrow-diag {
    transform: none;
  }
}

/* Windows high contrast and the contrast preference: the border carries the
   card's edge once the shadow is gone, so it is drawn in text colour rather
   than a tint that may not survive a forced palette. */
@media (prefers-contrast: more) {
  .feed-card,
  .feed-empty {
    border-color: var(--ink);
  }

  .feed-card__meta,
  .feed-card__excerpt {
    color: var(--ink);
  }
}

/* --------------------------------------------------- detail pages -- */
/* Two classes, used by the per-product and per-service pages that
   scripts/build-detail-pages.py writes. Everything else on those pages reuses
   the hero, split-row, faq-list and contact blocks the rest of the site
   already has, so they inherit every responsive and contrast decision made
   there rather than starting a second set. */

/* The breadcrumb in the hero. It sits over the hero photograph, so the colours
   are the hero's own inverted whites rather than the page palette: --muted
   against that image is around 4:1 at best. .workshop-hero-sub beside it uses
   0.88, and these are the same family, with the current page at full white
   because it is the one word a visitor looks for. The separator is decorative
   and aria-hidden, so it carries no information at its lower opacity. */
.crumbs {
  margin: 0 0 14px;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.82);
}

.crumbs a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crumbs a:hover {
  color: var(--white);
}

.crumbs span[aria-current] {
  color: var(--white);
  font-weight: 600;
}

.crumbs span[aria-hidden] {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.7);
}

/* Running copy inside a section. 68 characters is the line length the rest of
   the site reads at; the paragraph spacing matches .split-copy so a section of
   prose and a section with an image beside it do not sit differently. */
.prose {
  max-width: 68ch;
}

.prose p {
  margin: 0 0 14px;
  color: var(--muted);
}

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

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--blue-bright);
}
