@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

/* Skip to main content link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  z-index: 10000;
  font-weight: 700;
  border-radius: 0 0 0.5rem 0;
}

.skip-link:focus {
  top: 0;
}

:root {
  --primary:    #203E77;
  --primary-d:  #172D56;
  --primary-dd: #0F1D38;
  --primary-l:  #2E549E;
  --primary-ll: #4A72BF;
  --bg:         #EEF1F6;
  --bg-dark:    #0F1D38;
  --text:       #0F1D38;
  --muted:      #7889A6;
  --accent:     #4A72BF;
  --white:      #fff;
  --font:       'DM Sans', sans-serif;
}

html { font-size: 16px; scroll-behavior: auto; }
body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (max-width: 1024px) {
  html {
    scroll-behavior: auto !important;
    overscroll-behavior-y: none;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
  }
  body {
    scroll-behavior: auto !important;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
    position: relative;
    height: 100%;
  }
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Headings ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: inherit;
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -.01em; }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -.005em; }
h5 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 600; }
h6 { font-size: clamp(1rem, 1.2vw, 1.1rem); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }

/* ── Heading-style utilities ── */
.hs-1, .hs-2, .hs-3, .hs-4, .hs-5, .hs-6 {
  font-family: var(--font) !important;
  line-height: 1 !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  margin-bottom: 10px;
}

.hs-1 { font-size: clamp(2.5rem, 6vw, 4.5rem) !important; letter-spacing: -.02em !important; }
.hs-2 { font-size: clamp(2rem, 4.5vw, 3.5rem) !important; letter-spacing: -.015em !important; }
.hs-3 { font-size: clamp(1.5rem, 3vw, 2.25rem) !important; letter-spacing: -.01em !important; }
.hs-4 { font-size: clamp(1.25rem, 2vw, 1.75rem) !important; letter-spacing: -.005em !important; }
.hs-5 { font-size: clamp(1.1rem, 1.5vw, 1.35rem) !important; }
.hs-6 { font-size: clamp(1rem, 1.2vw, 1.1rem) !important; letter-spacing: .02em !important; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 44px;
  color: var(--white);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .5s cubic-bezier(.4,0,.2,1), opacity .5s ease;
  pointer-events: none;
}
.nav--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav__logo { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.nav__links { display: flex; gap: 30px; list-style: none; mix-blend-mode: difference !important; }
.nav__links a {
  font-size: 0.95rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; opacity: 1; transition: opacity .3s;
}
.nav__links a:hover { opacity: 1; }
.nav__menu { display: none; flex-direction: column; gap: 5px; width: 22px; mix-blend-mode: difference; z-index: 1001; }
.nav__menu span { display: block; height: 1.5px; background: currentColor; transition: transform 0.3s, opacity 0.3s; }
.nav__menu.active span:nth-child(1) { transform: rotate(45deg) translateY(6px); }
.nav__menu.active span:nth-child(2) { opacity: 0; }
.nav__menu.active span:nth-child(3) { transform: rotate(-45deg) translateY(-6px); }

/* Nav theme classes for mobile */
.nav.nav--dark { color: var(--white); }
.nav.nav--dark .nav__menu span { background: var(--white); }
.nav.nav--light { color: var(--text); }
.nav.nav--light .nav__menu span { background: var(--text); }
/* Force dark nav when mobile menu overlay is open (white bg) */
.nav.nav--menu-open { color: var(--text) !important; }
.nav.nav--menu-open .nav__menu span { background: var(--text) !important; }

/* ── Hero Nav (big typography on right side) ── */
.hero-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 60px;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero-nav__links-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-nav__link {
  display: block;
  font-size: clamp(2.4rem, 4.5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--primary);
  transition: transform .35s, letter-spacing .35s;
  padding: 8px 0;
  cursor: pointer;
}
.hero-nav__link:hover {
  transform: translateX(12px);
  letter-spacing: -.01em;
}
.hero-nav__num {
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-right: 14px;
  vertical-align: super;
}
.hero-nav__bottom {
  position: fixed;
  bottom: 44px;
  left: 60px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 100;
}
.hero-nav__bottom-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-nav__bottom span,
.hero-nav__bottom-links a,
.hero-nav__bottom-links span {
  color: var(--primary);
  transition: color 0.4s ease;
}
.hero-nav__bottom-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero-nav__bottom span {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
/* White text on dark background slides */
.hero-nav__bottom.bottom-bar--light span,
.hero-nav__bottom.bottom-bar--light .hero-nav__bottom-links a,
.hero-nav__bottom.bottom-bar--light .hero-nav__bottom-links span {
  color: #fff;
}
.hero-nav__scroll {
  position: absolute;
  bottom: 44px;
  right: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  z-index: 100;
  animation: pulseScroll 2s ease-in-out infinite;
}
@keyframes pulseScroll {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ── Progress dots ── */
.progress {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 900; display: flex; flex-direction: column; gap: 10px;
  mix-blend-mode: difference;
  display: none;
}
.progress__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.25); transition: .4s;
}
.progress__dot.active { background: #fff; transform: scale(1.5); }
.progress__label {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: .6rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: #fff; opacity: 0;
  white-space: nowrap; transition: opacity .3s;
  pointer-events: none;
}
.progress__dot:hover .progress__label { opacity: .6; }

/* ══════════════════════════════
   SPLIT SCREEN — ALWAYS IN VIEW
══════════════════════════════ */
.split-wrap {
  position: relative;
  width: 100%;
}

.split-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  overflow: hidden;
}

/* Hide mobile track on desktop — prevents CLS from flex reflow */
.mobile-track { display: none; }

.col {
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.track {
  position: absolute;
  width: 100%;
  will-change: transform;
}

.col--left .track { top: 0; }
.col--right .track { top: 0; transform: translateY(calc(-6 * 100vh)); }

/* ── Slide base ── */
.slide {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ═══ TEXT SLIDES (left column) ═══ */
.slide--text { padding: 80px 68px; }
.slide__inner { max-width: 600px; width: 100%; }

.slide__tag {
  font-size: .95rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; margin-bottom: 24px;
}
.slide__title {
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 700; line-height: .92; letter-spacing: -.01em;
  margin-bottom: 20px;
}
h2.slide__title {
  font-size: clamp(2rem, 4.5vw, 4rem);
}
.slide__desc {
  font-size: 1rem; line-height: 1.55; font-weight: 400;
  max-width: 600px; margin-bottom: 16px;
}
.slide-list__name {
  font-size: 1rem; font-weight: 700;
}

/* Color themes */
.t-dark  { background: linear-gradient(160deg, #172D56 0%, #0F1D38 100%); color: var(--white); position: relative; }
.t-dark .slide__tag  { color: #fff; }
.t-dark .slide__desc { color: #fff; }
.t-dark .slide-list li { color: #fff; }

.t-light { background: linear-gradient(160deg, #4A72BF 0%, #2E549E 100%); color: var(--white); position: relative; }
.t-light .slide__tag  { color: #fff; }
.t-light .slide__desc { color: #fff; }
.t-light .slide-list li { color: #fff; }

.t-white { background: #fff; color: var(--text); }
.t-white .slide__tag  { color: #5c5c5c; }
.t-white .slide__desc { color: #5c5c5c; }
.t-white .slide-list__name { color: #5c5c5c; }
.t-white .slide__title { color: var(--primary); }
.t-white .slide-list li { color: #5c5c5c; }

.t-primary { background: linear-gradient(160deg, #3a5a9e 0%, #172D56 100%); color: var(--white); position: relative; }
.t-primary .slide__tag  { color: #fff; }
.t-primary .slide__desc { color: #fff; }
.t-primary .slide-list li { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; transition: gap .3s;
}
.btn:hover { gap: 10px; }
.btn svg { width: 16px; height: 16px; }

.btn--pill {
  padding: 15px 36px; border-radius: 100px; font-size: .82rem; margin-top: 16px;}
.t-dark .btn--pill,
.t-primary .btn--pill { background: var(--white); color: var(--primary); }
.t-dark .btn--pill:hover,
.t-primary .btn--pill:hover { background: #e0e5ee; }
.t-light .btn--pill,
.t-white .btn--pill { background: var(--primary); color: var(--white); }
.t-light .btn--pill:hover,
.t-white .btn--pill:hover { background: var(--primary-d); }

.btn--ghost {
  padding: 15px 36px; border-radius: 100px; font-size: .82rem; margin-top: 16px;
  border: 2px solid currentColor;
  background: transparent;
}
.t-white .btn--ghost { color: var(--primary); }
.t-white .btn--ghost:hover { background: var(--primary); color: var(--white); border: 2px solid var(--primary);}

.btn--underline {
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}

/* List items inside text slides */
.slide-list {
  margin-top: 16px;
  margin-bottom: 16px;
  list-style: none;
  padding: 0;
}
.slide-list li {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  padding: 8px 0px 16px 0;
  position: relative;
  border-bottom: 1px solid rgba(128, 128, 128, .15);
}

/* Stats row */
.stats { display: flex; gap: 40px; margin-bottom: 36px; }
.stat__num {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1;
}
.stat__label { font-size: .85rem; color: inherit; margin-top: 4px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.t-dark .stat__label { color: #fff; }

/* ═══ IMAGE SLIDES (right column) ═══ */
.slide--image { padding: 0; }
.slide__bg { position: absolute; inset: 0; }

.slide__bg--hero    { background: #fff; }
.slide__bg--product { background: linear-gradient(160deg, #172D56 0%, #0F1D38 100%); overflow: hidden; }
.slide__bg--studio  { background: #fff; overflow: hidden; }
.slide__bg--service { background: linear-gradient(160deg, #172D56 0%, #0F1D38 100%); overflow: hidden; }

/* Floating device mockup */
.slide__mockup {
  position: absolute;
  z-index: 2;
  bottom: 0%;
  right: 8%;
  width: 80%;
  max-width: fit-content;
  animation: mockupFloat 4s ease-in-out infinite;
  pointer-events: none;
}

/* Gradient overlay matching caption color */
.project-link .slide__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, var(--caption-bg, transparent) 0%, var(--caption-bg, transparent) 5%, transparent 50%);
  pointer-events: none;
}
.slide__mockup img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
@keyframes mockupFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.slide__bg--work    { background: #fff; }
.slide__bg--contact { background: #fff; }

.slide__blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .25;
}

/* Caption as separate block under image */
.project-link {
  display: flex;
  flex-direction: column;
}
.project-link .slide__bg {
  position: relative;
  flex: 1 1 75%;
  min-height: 0;
}
.slide__image-caption {
  position: relative;
  flex: 0 0 25%;
  z-index: 2;
  padding: 28px 15%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  background: var(--caption-bg, var(--primary-d));
  color: var(--caption-color, #fff);
  
}
.slide__image-caption .caption-title {
  line-height: 1;
  font-weight: 700;
  color: inherit !important;
  margin-bottom: 4px;
}
.slide__image-caption span {
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  opacity: 1;
  margin-top: 16px;
}
.slide__image-caption p {
  font-size: 0.95rem; line-height: 1.55; font-weight: 400;
  user-select: text;
  cursor: text;
  margin: 0;
  max-width: 700px;
}

/* ── Team collage grid ── */
.team-grid {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 4px;
  padding: 4px;
}
.team-grid__item {
  position: relative;
  overflow: hidden;
  background: #fff;
}
.team-grid__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(.3);
  transition: filter .6s cubic-bezier(0.4, 0, 0.2, 1), transform .6s cubic-bezier(0.4, 0, 0.2, 1), opacity .6s cubic-bezier(0.4, 0, 0.2, 1);
}
.team-grid__item:hover img {
  filter: grayscale(0);
}
/* Hover image crossfade */
.team-grid__item[data-hover-img] {
  position: relative;
}
.team-hover-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity .5s ease;
  z-index: 1;
  pointer-events: none;
}
.team-hover-img.visible {
  opacity: 1;
}
.team-grid__item--empty {
  background: var(--primary);
}
.team-grid__item--empty:hover .team-grid__overlay,
.tgm-item--empty:hover .tgm-overlay {
  opacity: 1;
  transform: translateY(0);
}
.tgm-item--empty {
  background: var(--primary);
}
.team-grid__item--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.team-grid__item--logo img {
  width: 60%; height: auto;
  object-fit: contain;
  object-position: center;
  filter: none !important;
}
.team-grid__item--logo:hover img {
  filter: none;
  transform: none;
}
.team-grid__overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(15,29,56,.9));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s cubic-bezier(0.4, 0, 0.2, 1), transform .6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 2;
}
.team-grid__item:hover .team-grid__overlay,
.team-grid__item.active .team-grid__overlay {
  opacity: 1;
  transform: translateY(0);
}
.team-grid__name {
  font-size: 1rem; font-weight: 600; color: #fff;
  letter-spacing: .02em;
}
.team-grid__role {
  font-size: 0.85rem; font-weight: 400; color: rgba(255,255,255,.5);
  letter-spacing: .06em; text-transform: uppercase; margin-top: 2px;
}

/* Hide mobile-only elements on desktop */
.mobile-menu-overlay { display: none; }
.hero-bottom-mobile { display: none; }
.mobile-track { display: none; }
.hero-scroll-mobile { display: none; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  h2, h3, h4, h5, h6, .hs-2, .hs-3, .hs-4, .hs-5, .hs-6 {
    line-height: 1.2 !important;
  }
  /* Add tse-wireframe background to light sections on mobile */
  .t-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/tse-wireframe.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
  }
  .t-white .slide__inner {
    position: relative;
    z-index: 1;
  }

  /* Nav always visible on mobile */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 18px 22px;
    padding-top: max(18px, env(safe-area-inset-top));
    padding-bottom: 18px;
    padding-left: max(22px, env(safe-area-inset-left));
    padding-right: max(22px, env(safe-area-inset-right));
    flex-direction: row-reverse;
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    mix-blend-mode: normal;
    transition: color 0.3s ease;
    z-index: 1000;
    min-height: 60px;
    box-sizing: border-box;
  }
  /* Hide logo on first slide (mobile only) */
  .nav[data-current-slide="0"] .nav__logo {
    opacity: 0;
    pointer-events: none;
  }
  .nav__links { display: none; }
  .nav__menu { display: flex; mix-blend-mode: normal; }
  .progress { display: none; }

  /* Mobile: hide the desktop two-column layout */
  .split-wrap {
    scroll-snap-type: none;
    overscroll-behavior-y: none;
  }
  
  .split-viewport {
    flex-direction: column;
    overflow: visible;
    position: relative;
    height: auto;
  }

  .col {
    display: none;
  }

  /* Mobile track: vertical stack of all slides */
  .mobile-track {
    display: flex;
    flex-direction: column;
    width: 100vw;
    min-height: 100vh;
    position: relative;
    overscroll-behavior-y: none;
  }

  .mobile-track .slide {
    width: 100vw;
    min-height: 100vh;
    height: 100vh;
    flex-shrink: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  /* Team/Kontakt combined slides on mobile */
  .mobile-track .mobile-combined {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .mobile-combined .mobile-combined__top {
    flex: 0 0 70vh;
    height: 70vh;
    max-height: 70vh;
    width: 100%;
    position: relative;
    overflow: hidden;
  }
  .mobile-combined .mobile-combined__bottom {
    flex: 0 0 30vh;
    height: 30vh;
    max-height: 30vh;
    width: 100%;
    position: relative;
    overflow: hidden;
  }
  .mobile-combined .slide {
    width: 100%;
    height: 100%;
    min-height: auto;
    position: relative;
  }
  .mobile-combined .mobile-combined__top .slide {
    height: 100%;
  }
  .mobile-combined .mobile-combined__bottom .slide {
    height: 100%;
  }

  .slide--text {
    padding: 80px 24px;
    align-items: flex-start;
    justify-content: center;
  }
  .mobile-track .slide--text:first-child {
    /*padding: 32px;*/
  }
  .slide__inner {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    gap: 8px;
    align-items: flex-start;
    text-align: left;
    max-width: 400px;
  }
  .slide:first-child .slide__inner--first {
    gap: 1rem;
  }

  .slide__tag { margin-bottom: 8px; }

  .slide__title {
    font-size: clamp(2rem, 8vw, 3.2rem);
    margin-bottom: 8px;
    line-height: 1;
    max-width: 400px;
  }
  h1.slide__title {
    font-size: clamp(2.6rem, 12vw, 4.5rem);
  }
  .hero-logo {
    margin-bottom: 20px !important;
    width: 100% !important;
    object-fit: contain !important;
    object-position: left center !important;
  }
  .slide__desc {
    font-size: 1rem;
    margin-bottom: 8px;
    max-width: 360px;
    margin-top: 0px !important;
  }

  .stats { gap: 20px; margin-bottom: 20px; }
  .stat__num { font-size: 1.8rem; }

  .slide-list { margin-top: 16px; margin-bottom: 8px; }
  .slide-list li { font-size: 1rem; padding: 4px 0px 10px 0; }
  .slide__mockup {
    width: 100%;
    padding: 5%;
    right: auto;
    left: auto;
    bottom: 0%;
    max-width: fit-content;
    left: inherit !important;
  }
  .project-link .slide__bg {
    flex: 1 1 70%;
  }
  .slide__image-caption {
    flex: 0 0 30%;
    padding: 20px 24px;
    gap: 6px;
  }
  .slide__image-caption .caption-title {
    max-width: 400px;
    width: 100%;
  }
  .slide__image-caption p { font-size: 0.9rem; max-width: 400px; }
  .slide__image-caption span { max-width: 400px; width: 100%; }
  .hero-nav { 
    padding: 40px 28px; 
    justify-content: center; 
    padding-bottom: 80px;
  }
  .hero-nav__link { font-size: clamp(2.6rem, 7vw, 2.6rem); padding: 6px 0; }
  .hero-nav__bottom { display: none; }
  
  /* Preloader logo size on mobile */
  .preloader__logo-bg,
  .preloader__logo-fill {
    width: 100%;
  }
  
  /* Mobile menu overlay - same as desktop hero-nav */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow: hidden;
  }
  
  .mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
  }
  
  .mobile-menu-overlay .slide__bg {
    position: absolute;
    inset: 0;
  }
  
  .mobile-menu-overlay .hero-nav {
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 2;
  }
  
  .mobile-menu-overlay .hero-nav__link {
    color: var(--primary);
  }

  .mobile-menu-bottom {
    position: absolute;
    bottom: 28px;
    left: 28px;
    right: 28px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .mobile-menu-bottom span {
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--primary);
  }
  .mobile-menu-bottom__links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
  }
  .mobile-menu-bottom__links a {
    color: var(--primary);
    opacity: 0.7;
    transition: opacity 0.3s ease;
  }
  .mobile-menu-bottom__links a:hover {
    opacity: 1;
  }
  .mobile-menu-bottom__links span {
    opacity: 0.5;
    font-size: .55rem;
    letter-spacing: normal;
  }

  /* Hero bottom bar for mobile */
  .hero-bottom-mobile {
    display: none;
  }
  .hero-bottom-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-bottom-mobile span {
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #fff;
  }
  .hero-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
  }
  .hero-bottom-links a {
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.3s ease;
  }
  .hero-bottom-links a:hover {
    opacity: 1;
  }
  .hero-bottom-links span {
    opacity: 0.5;
    font-size: .6rem;
  }
  .hero-scroll-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #fff;
    animation: pulseScroll 2s ease-in-out infinite;
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    z-index: 3;
  }

  /* Team section: swap content on mobile */
  .team-slide-text .slide__inner--desktop { display: none; }
  .team-slide-text {
    padding: 0 !important;
  }
  .team-slide-text .team-grid--mobile { 
    display: grid;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
  .team-slide-image .team-grid { display: none; }
  .team-slide-image .slide__inner--mobile { display: flex; }
  .nav__logo img {
    height: 36px !important;
    width: auto;
  }
  .hero-inner {
    align-items: flex-start;
  }
  .contact-social {
  margin-top: 0px !important;
  gap: 8px !important;
  }
}

/* Mobile team grid (hidden on desktop) */
.team-grid--mobile {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  width: 100%;
  flex-shrink: 0;
}
.team-grid--mobile .tgm-item {
  position: relative;
  overflow: hidden;
  background: #fff;
}
.team-grid--mobile .tgm-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(.3);
  transition: opacity .6s cubic-bezier(0.4, 0, 0.2, 1), transform .6s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Mobile hover image crossfade */
.team-grid--mobile .tgm-item[data-hover-img] {
  position: relative;
}
.team-grid--mobile .tgm-item--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.team-grid--mobile .tgm-item--logo img {
  width: 55%; height: auto;
  object-fit: contain;
  filter: none;
}
.team-grid--mobile .tgm-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(15,29,56,.9));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s cubic-bezier(0.4, 0, 0.2, 1), transform .6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  pointer-events: none;
}
.team-grid--mobile .tgm-item:hover .tgm-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.team-grid--mobile .tgm-name {
  font-size: .75rem; font-weight: 600; color: #fff;
}
.team-grid--mobile .tgm-role {
  font-size: .75rem; font-weight: 400; color: rgba(255,255,255,.5);
  text-transform: uppercase; margin-top: 1px;
}

/* Mobile team text in image slide (hidden on desktop) */
.slide__inner--mobile {
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 20px 28px;
  position: relative;
  z-index: 2;
  height: 100%;
}

/* ═════════════════════════════════════════════════════════════════════════════
   PRELOADER
═════════════════════════════════════════════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0F1D38 0%, #172D56 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__nautilus {
  width: 300px;
  height: 300px;
  margin-bottom: 40px;
  position: relative;
}

.preloader__svg {
  width: 100%;
  height: 100%;
  /*filter: drop-shadow(0 10px 40px rgba(74, 114, 191, 0.3)); */
}

.preloader__percentage {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  font-family: var(--font);
}

.preloader__label {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
}

/* Preloader logo wrapper */
.preloader__logo-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.preloader__logo-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: auto;
  opacity: 0.25;
  display: block;
}
.preloader__logo-fill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: auto;
  clip-path: inset(0 100% 0 0);
  overflow: hidden;
}
.preloader__logo-fill img {
  width: 100%;
  height: auto;
  display: block;
}

/* Nav logo */
.nav__logo img {
  height: 50px;
}

/* Hero section */
.slide--hero {
  justify-content: center;
}
.hero-blob-1 {
  width: 300px;
  height: 300px;
  top: 15%;
  right: 10%;
  background: rgba(74,114,191,.15);
}
.hero-blob-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 15%;
  background: rgba(255,255,255,.04);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.hero-logo {
  width: auto;
  margin-bottom: 56px;
  max-height: 120px;
  object-position: left;
}

/* Slide inner variations */
.slide__inner--centered {
  position: relative;
  z-index: 1;
}

/* Text emphasis */
.slide__desc--bold {
  font-weight: 600;
}
.slide__desc--italic {
  font-weight: 500;
  font-style: italic;
}
.slide__desc--spaced {
  margin-top: 20px;
  font-weight: 500;
  font-style: italic;
}

/* Team section blobs */
.team-blob-1 {
  width: 260px;
  height: 260px;
  top: 25%;
  right: 8%;
  background: rgba(74,114,191,.12);
}
.team-blob-2 {
  width: 180px;
  height: 180px;
  bottom: 20%;
  left: 12%;
  background: rgba(255,255,255,.04);
}

/* Contact section */
.contact-info {
  margin-top: 20px;
}
.contact-info p {
  font-size: .95rem;
  margin-bottom: 6px;
}
.contact-info p:last-child {
  margin-bottom: 0;
}
.contact-social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.contact-social svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.contact-footer {
  margin-top: 48px;
  font-size: .85rem;
  line-height: 1.6;
}
.contact-footer p {
  margin-bottom: 0;
}
.contact-footer .copyright {
  margin-top: 8px;
}

/* Image slide backgrounds */
.slide__bg--centered {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.bg-image--faded {
  opacity: 0.3;
}
.bg-image--subtle {
  opacity: 0.1;
}

/* Project links — overridden above in image-caption section */
.project-link {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

/* Mobile team section */
.team-mobile-tag {
  color: #5c5c5c;
}
.team-mobile-title {
  color: var(--primary);
  font-size: clamp(1.4rem, 5vw, 2rem);
}
.team-mobile-desc {
  color: #5c5c5c;
  font-size: 1rem;
  margin-bottom: 0;
}

/* ═════════════════════════════════════════════════════════════════════════════
   LEGAL PAGES
═════════════════════════════════════════════════════════════════════════════ */
.legal-page {
  min-height: 100vh;
  background: #fff;
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

.legal-page .slide {
  overflow: visible;
}

.legal-page .slide__bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

.legal-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/tse-wireframe.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

.legal-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 32px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.legal-page .slide__desc {
  max-width: 100%;
  line-height: 1.7;
}

.legal-page ul {
  padding-left: 2rem;
  margin: 1rem 0;
}

.legal-page li {
  padding: 0.25rem 0;
  line-height: 1.7;
}

/* ═════════════════════════════════════════════════════════════════════════════
   HUBSPOT MEETINGS MODAL
═════════════════════════════════════════════════════════════════════════════ */
.meetings-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  background: rgba(15, 29, 56, 0.9);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.meetings-modal.active {
  display: block;
  opacity: 1;
}
.meetings-modal__close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.2s ease;
  font-weight: 300;
}
.meetings-modal__close:hover {
  background: #fff;
  transform: scale(1.1);
}
.meetings-iframe-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  height: 90vh;
  max-height: 800px;
}
.meetings-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .meetings-iframe-container {
    width: 95%;
    height: 95vh;
    border-radius: 8px;
  }
  .meetings-modal__close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
  .legal-page .slide {
    padding: 60px 28px;
  }
}


.ccm-settings-summoner.ccm-show {
    display: none !important;
}
.ccm-modal.ccm-show {
    z-index: 2;
}