/* ============================================
   StudyBridge — design tokens
   ============================================ */
:root {
  --teal-950: #0b3c3a;
  --teal-900: #0e4a47;
  --teal-800: #135a56;
  --teal-700: #1a6e68;
  --teal-600: #1f8079;
  --teal-500: #2f9c92;
  --turquoise: #6fd6c4;
  --turquoise-light: #a9e8dc;
  --mint-50: #eef8f6;
  --mint-100: #e1f3ef;
  --ink: #12201f;
  --ink-soft: #4a5a58;
  --grey-50: #f7f7f7;
  --grey-100: #eeeeee;
  --grey-300: #d7d7d7;
  --white: #ffffff;
  --yellow: #f2cb2e;
  --amber: #e07a2c;

  --font-display: "Poppins", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(14, 74, 71, 0.08);
  --shadow-md: 0 12px 32px rgba(14, 74, 71, 0.14);
  --shadow-lg: 0 24px 60px rgba(14, 74, 71, 0.20);

  --container-w: 1180px;
  --seam: clamp(28px, 5vw, 64px);
}

/* ============================================
   Reset & base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: var(--teal-950);
}
p { margin: 0; }
button { font-family: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal-900);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding-inline: 24px;
}

section { padding-block: clamp(56px, 8vw, 104px); }

/* Diagonal seams between sections, echoing the team-card cut. Varied per
   transition on purpose — not every seam should read the same. */
.seam-bottom {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--seam)), 0 100%);
}
.seam-bottom-reverse {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--seam)));
}
.seam-chevron {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - (var(--seam) * 1.6)), 0 100%);
}
.seam-point-down {
  --cut: clamp(56px, 13vw, 120px);
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - (var(--cut) * 1.15)), 78% calc(100% - (var(--cut) * 0.4)), 0 calc(100% - var(--cut)));
}
.seam-pull-up {
  position: relative;
  margin-top: calc(-1 * var(--seam));
}

h2 {
  font-size: clamp(34px, 10.5vw, 56px);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.section-lead {
  color: var(--ink-soft);
  font-size: clamp(16px, 1.6vw, 18px);
  max-width: 46ch;
  margin-top: 12px;
}
.section-lead--light { color: rgba(255,255,255,0.78); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--teal-900);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-800); box-shadow: var(--shadow-sm); }

.btn-accent {
  background: var(--turquoise);
  color: var(--teal-950);
}
.btn-accent:hover { background: var(--turquoise-light); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: var(--teal-900);
  color: var(--teal-900);
}
.btn-outline:hover { background: var(--teal-900); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--teal-950);
  border-color: rgba(14,74,71,0.25);
}
.btn-ghost:hover { border-color: var(--teal-900); }

.btn-light {
  background: var(--white);
  color: var(--teal-950);
}
.btn-light:hover { background: var(--turquoise-light); }

.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: #000; }

/* ============================================
   Scroll-reveal animation system (classes are
   applied by js/main.js via IntersectionObserver)
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal="zoom"] { transform: scale(0.9); }
[data-reveal="zoom"].in-view { transform: scale(1); }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="left"].in-view { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="right"].in-view { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-100);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 12px;
}
.logo img { height: 34px; width: auto; }

.nav-panel {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover { color: var(--teal-900); border-color: var(--turquoise); }

.header-cta { flex-shrink: 0; }

.header-cta-mobile {
  display: none;
  flex-shrink: 0;
  padding: 9px 16px;
  font-size: 13px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--teal-950);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Mobile floating action button
   ============================================ */
.mobile-fab {
  display: none;
  position: fixed;
  right: 14px;
  bottom: 30px;
  z-index: 150;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  animation: fabIn 0.6s cubic-bezier(.2,.8,.3,1.3) 1.2s backwards;
}
.mobile-fab img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.site-header.nav-open ~ .mobile-fab { display: none !important; }

/* Picks up the "Nemokama konsultacija" CTA that .hero-actions hides
   on small phones — sits in normal flow right below the hero image,
   not pinned to the viewport like the fab. */
.hero-cta-pill {
  display: none;
}

@keyframes fabIn {
  from { opacity: 0; transform: scale(0.4) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  z-index: 9;
  background: #105f68;
  color: var(--white);
  padding-block: clamp(48px, 7vw, 90px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}
.hero-bg img {
  width: min(94%, 1040px);
  max-width: none;
  min-width: 320px;
  --bx: 0%;
  --by: -6%;
  transform: translate(var(--bx), var(--by));
  filter: saturate(1.2) brightness(0.98) drop-shadow(0 24px 60px rgba(111,214,196,0.4));
  animation: heroBridgeIn 1.7s cubic-bezier(.16,.84,.44,1) 0.2s both;
}
@media (min-width: 1500px) {
  .hero-bg img { width: min(72%, 1500px); }
}
@keyframes heroBridgeIn {
  from { opacity: 0; transform: translate(calc(var(--bx) + 6%), calc(var(--by) + 8%)) scale(0.96); }
  to { opacity: 1; transform: translate(var(--bx), var(--by)) scale(1); }
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #105f68 0%, rgba(16,95,104,0.78) 26%, rgba(16,95,104,0.3) 46%, rgba(16,95,104,0.12) 64%, transparent 82%);
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-copy { max-width: 640px; }
.eyebrow,
.hero-sub,
.hero-actions {
  opacity: 0;
  animation: heroReveal 0.85s cubic-bezier(.16,.84,.44,1) forwards;
}
.eyebrow { animation-delay: 0.1s; }
.hero-sub { animation-delay: 0.42s; }
.hero-actions { animation-delay: 0.58s; }
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 15px;
  font-weight: 700;
  color: var(--turquoise);
  margin-bottom: 20px;
}
.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--white);
  font-weight: 300;
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero h1 .script {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  color: var(--white);
  font-size: 3.5em;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: -0.03em 0 -0.02em -0.02em;
  animation: topIn 1.2s cubic-bezier(.16,.84,.44,1) 0.5s both, topGlow 4.5s ease-in-out 2s infinite;
}
.hero h1 .h1-line { animation: lineIn 1.1s cubic-bezier(.16,.84,.44,1) both; }
.hero h1 .h1-line:first-child { animation-delay: 0.2s; }
.hero h1 .h1-line:last-child { animation-delay: 0.95s; }
@keyframes lineIn {
  from { opacity: 0; transform: translateY(34px); letter-spacing: 0.14em; }
  to { opacity: 1; transform: none; letter-spacing: 0.01em; }
}
@keyframes topIn {
  from { opacity: 0; transform: translateY(36px) scale(0.84) skewX(-8deg); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes topGlow {
  0%, 100% { text-shadow: 0 0 0 rgba(111,214,196,0); }
  50% { text-shadow: 0 0 38px rgba(111,214,196,0.55); }
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(18px, 1.9vw, 23px);
  color: rgba(255,255,255,0.86);
  max-width: 46ch;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-actions .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.35); }
.hero-actions .btn-ghost:hover { border-color: var(--white); }

/* ============================================
   Trusted-by strip
   ============================================ */
.trusted { position: relative; z-index: 8; padding-block: 56px; background: var(--white); }
.trusted-label {
  text-align: center;
  font-weight: 700;
  color: var(--white);
  background: var(--teal-800);
  display: block;
  width: 100%;
  margin: 0 0 32px;
  padding: 16px 24px;
  font-size: 16px;
  box-shadow: var(--shadow-md);
}
.logo-marquee { width: 100%; }
.logo-marquee-track { display: contents; }
.logo-marquee-track:hover { animation-play-state: paused; }
.logo-marquee .logo-strip--duplicate { display: none; }
@keyframes logoMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(36px, 6.5vw, 76px);
  color: var(--ink-soft);
}

/* Real university/school logos used both in the trusted-by strip
   (full color) and as small badges on testimonial cards. */
.wm-logo {
  height: 46px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.logo-strip li:hover .wm-logo { opacity: 1; transform: scale(1.06); }
.wm-logo-bocconi { height: 34px; }
.wm-logo-escp { height: 58px; }
.wm-logo-erasmus { height: 54px; }
.wm-logo-esade { height: 74px; }
.wm-logo-uva { height: 40px; }
.wm-logo-sse { height: 52px; }

/* ============================================
   Why StudyBridge
   ============================================ */
.why {
  --edge: clamp(64px, 20vw, 300px);
  position: relative;
  z-index: 7;
  background: linear-gradient(90deg, #105f68 0, #126069 6px, #d7e5e6 var(--edge), #ffffff 50%, #d7e5e6 calc(100% - var(--edge)), #126069 calc(100% - 6px), #105f68 100%);
  overflow: hidden;
  padding-bottom: clamp(210px, 46vw, 300px);
}
.why-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.why-bg img {
  position: absolute;
  max-width: none;
  right: -20%;
  bottom: -14%;
  width: min(1100px, 172%);
  filter: saturate(1.2) brightness(0.94) drop-shadow(0 14px 24px rgba(14,74,71,0.18));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%);
  mask-image: linear-gradient(90deg, transparent 0, #000 28%);
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.1s cubic-bezier(.16,.84,.44,1), transform 1.1s cubic-bezier(.16,.84,.44,1);
}
.why-bg img.in-view { opacity: 1; transform: translateY(0); }
.why::before,
.why::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  z-index: 0;
  pointer-events: none;
}
.why::before { top: 0; height: 56px; background: linear-gradient(180deg, #fff, rgba(255,255,255,0)); }
.why::after { bottom: 0; height: clamp(90px, 20vw, 170px); background: linear-gradient(180deg, rgba(255,255,255,0), #fff 94%); }
.why-inner { position: relative; z-index: 1; display: grid; gap: 48px; }
.why-text { max-width: 640px; }
.why-text h2 {
  color: var(--teal-950);
  text-transform: uppercase;
  font-size: clamp(34px, 10.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-shadow: 0 0 14px rgba(255,255,255,0.75);
}
.why .section-lead--light { color: var(--ink-soft); }

/* Cards, reimagined as suspension points along a single cable —
   no boxes: an icon "anchor" hanging from a shared dashed line,
   echoing the hero/process bridge-cable motif instead of a grid
   of generic panels. */
.why-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 8px;
}
.why-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.why-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s cubic-bezier(.16,.84,.44,1);
}
.why-card:hover .why-icon { transform: translateY(-4px) scale(1.08); }
.why-icon svg {
  width: 46px; height: 46px;
  fill: none;
  stroke: var(--teal-800);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 14px rgba(11,60,58,0.16));
}
.why-card h3 {
  margin-top: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  color: var(--teal-950);
  text-shadow: 0 0 12px rgba(255,255,255,0.85);
  max-width: 22ch;
}

.diff {
  --s: clamp(120px, 34vw, 170px);
  position: relative;
  z-index: 1;
  padding-top: clamp(64px, 14vw, 128px);
  padding-bottom: clamp(48px, 9vw, 90px);
  background: linear-gradient(180deg,
    #105f68 0, #105f68 var(--s),
    #61959b calc(var(--s) + 40px),
    #99babe calc(var(--s) + 70px),
    #d0dfe1 calc(var(--s) + 110px),
    #f3f7f7 calc(var(--s) + 150px),
    #ffffff calc(var(--s) + 180px));
  overflow: hidden;
}
.diff-inner { position: relative; z-index: 1; display: grid; gap: clamp(28px, 5vw, 48px); }
.diff-text h2 {
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.diff-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 24px;
}
.diff-card {
  text-align: center;
  padding: 46px 8px 14px;
  margin-inline: auto;
  max-width: 340px;
}
.diff-icon {
  position: relative;
  width: 50px; height: 50px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #e9f3f0;
  color: var(--teal-800);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.35s ease;
}
.diff-icon::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 310px; height: 108px;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(7,93,99,1) 0%, rgba(7,93,99,0.92) 24%, rgba(9,95,102,0.5) 50%, rgba(16,95,104,0.15) 76%, rgba(16,95,104,0) 100%);
}
.diff-card:hover .diff-icon { transform: scale(1.1); }
.diff-icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.diff-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(17px, 4.8vw, 19px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #10201f;
  margin-bottom: 10px;
}
.diff-card p { color: #5d6a68; font-size: 15.5px; max-width: 27ch; margin-inline: auto; }

/* ============================================
   Stats
   ============================================ */
.stats {
  position: relative;
  z-index: 6;
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
  padding-bottom: clamp(360px, 131.7vw, 559px);
}
.stats-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.stats-bg img {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  margin-inline: auto;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: saturate(1.15) brightness(0.92) drop-shadow(0 18px 28px rgba(14,74,71,0.16));
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.1s cubic-bezier(.16,.84,.44,1), transform 1.1s cubic-bezier(.16,.84,.44,1);
}
.stats-bg img.in-view { opacity: 1; transform: translateY(0); }
.stats-inner {
  position: relative;
  z-index: 2;
}
@media (min-width: 981px) {
  .stats {
    min-height: 640px;
    padding-bottom: clamp(320px, 33.9vw, 460px);
  }
}
.stats-inner h2 { color: var(--teal-900); font-weight: 800; margin-bottom: 32px; }
.stat-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: min(76vw, 320px);
  margin-inline: auto;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  width: 100%;
  background: var(--teal-800);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 9vw, 44px);
  color: var(--white);
}
.stat-divider {
  width: 48px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--turquoise-light);
}
.stat-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

/* ============================================
   Process
   ============================================ */
.process {
  position: relative;
  z-index: 5;
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(31,128,121,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,128,121,0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  background-position: center top;
}
.process .container { position: relative; z-index: 1; }

/* The six steps are laid out like segments of a bridge deck: each
   icon is a rivet on the roadway, and the roadway itself is drawn
   from a dashed "blueprint" line into a solid built line — the
   process literally builds a bridge, left to right.

   On desktop the row is pinned in place (.build-stage reserves tall
   scroll room, .build-sticky holds it fixed) so scrolling itself
   drives both the deck-line draw and each bubble's reveal, one at a
   time, via JS. On narrow screens / reduced-motion it falls back to
   a normal in-flow list where each bubble just fades in as it
   scrolls into view. */
/* On phones, a real bridge photo sits behind the step bubbles as a
   backdrop (instead of a separate banner above them), and builds in
   discrete parts — one more segment each time a bubble is reached —
   rather than a continuous wipe. Hidden entirely on desktop, where
   the abstract deck-line + pinned row already covers this. */
.build-photo { display: none; }
@media (max-width: 980px) {
  .build-stage { display: grid; }
  .build-photo {
    display: block;
    grid-area: 1 / 1;
    position: sticky;
    top: 16vh;
    align-self: start;
    height: 46vh;
    z-index: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
  }
  .build-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.32));
  }
  .build-block {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--i) * (100% / 6));
    width: calc(100% / 6);
    overflow: hidden;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.5s cubic-bezier(.16,.84,.44,1);
    will-change: clip-path;
  }
  .build-block.is-built { clip-path: inset(0% 0 0 0); }
  .build-block img {
    position: absolute;
    top: 0;
    left: calc(var(--i) * -100%);
    width: 600%;
    max-width: none;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center center;
    filter: saturate(1.3) brightness(0.98);
  }
  .build-sticky { grid-area: 1 / 1; position: relative; z-index: 1; }
  .build-icon { box-shadow: 0 0 0 6px rgba(255,255,255,0.95), var(--shadow-md); }
  .build-step h3 {
    color: var(--teal-950);
    text-shadow: 0 0 10px rgba(255,255,255,0.9), 0 0 4px rgba(255,255,255,0.9);
  }
  .build-step { transform: translateY(34px) scale(0.94); }
  .build-step.is-built { transform: translateY(0) scale(1); }
}

.build-stage { position: relative; }
.build-sticky { position: relative; }
.build {
  position: relative;
  margin-top: 64px;
}
.build-deck {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 22px;
  height: 60px;
  overflow: visible;
}
.build-deck-plan {
  fill: none;
  stroke: rgba(19, 90, 86, 0.32);
  stroke-width: 2.5;
  stroke-dasharray: 3 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.build-deck-built {
  fill: none;
  stroke: var(--teal-700);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(111,214,196,0.6));
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.55s cubic-bezier(.16,.84,.44,1);
}

/* The rivet ball: a single reusable dot that "carries" each new
   bridge part from its step bubble down to the deck, so the deck
   segment only appears once the ball has visibly delivered it,
   rather than just tracking the scrollbar continuously. Fixed to the
   viewport (not the scrolling page) since its start and end points
   are plain viewport coordinates — see main.js. */
.build-ball {
  position: fixed;
  top: 0;
  left: 0;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.85), 0 0 14px 2px rgba(111,214,196,0.75);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  transform: translate(var(--bx0, 0px), var(--by0, 0px)) scale(0.5);
}
.build-ball.is-flying {
  animation: buildBallFly 0.62s cubic-bezier(.4,.02,.2,1) forwards;
}
@keyframes buildBallFly {
  0% { transform: translate(var(--bx0, 0px), var(--by0, 0px)) scale(0.5); opacity: 0; }
  12% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--bx1, 0px), var(--by1, 0px)) scale(0.9); opacity: 0; }
}
.build-spark {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111,214,196,0.95) 0%, rgba(111,214,196,0.35) 55%, rgba(111,214,196,0) 75%);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  transform: translate(var(--sx, 0px), var(--sy, 0px)) scale(0.4);
}
.build-spark.is-active {
  animation: buildSparkPop 0.5s ease-out forwards;
}
@keyframes buildSparkPop {
  0% { opacity: 0.9; transform: translate(var(--sx, 0px), var(--sy, 0px)) scale(0.4); }
  60% { opacity: 0.7; transform: translate(var(--sx, 0px), var(--sy, 0px)) scale(2.2); }
  100% { opacity: 0; transform: translate(var(--sx, 0px), var(--sy, 0px)) scale(3); }
}
@media (prefers-reduced-motion: reduce) {
  .build-ball, .build-spark { display: none; }
}

.build-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.build-step {
  opacity: 0.18;
  transform: translateY(14px) scale(0.94);
  transition: opacity 0.45s cubic-bezier(.16,.84,.44,1), transform 0.45s cubic-bezier(.16,.84,.44,1);
}
.build-step.is-built { opacity: 1; transform: translateY(0) scale(1); }
.build-icon {
  flex-shrink: 0;
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--teal-900);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px #fff, var(--shadow-md);
  transition: transform 0.3s cubic-bezier(.16,.84,.44,1), box-shadow 0.3s ease;
}
.build-step.is-built .build-icon { box-shadow: 0 0 0 6px #fff, 0 0 18px rgba(111,214,196,0.55), var(--shadow-md); }
.build-step:hover .build-icon { transform: translateY(-4px) scale(1.06); }
.build-icon svg { width: 26px; height: 26px; fill: var(--turquoise); }

/* The step that's "up next" gets a pulsing ring and a little nudging
   chevron, so it reads as the bubble about to build the next part of
   the bridge rather than just another dormant one. */
.build-step.is-next { opacity: 0.55; }
.build-step.is-next .build-icon { animation: buildNextPulse 1.6s ease-in-out infinite; }
.build-step.is-next::after {
  content: "";
  display: block;
  width: 9px; height: 9px;
  margin: 10px auto 0;
  border-right: 2px solid var(--teal-600);
  border-bottom: 2px solid var(--teal-600);
  transform: rotate(45deg);
  animation: buildNextNudge 1.6s ease-in-out infinite;
}
@keyframes buildNextPulse {
  0%, 100% { box-shadow: 0 0 0 6px #fff, 0 0 0 0 rgba(111,214,196,0.55), var(--shadow-md); }
  50% { box-shadow: 0 0 0 6px #fff, 0 0 0 9px rgba(111,214,196,0), var(--shadow-md); }
}
@keyframes buildNextNudge {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.45; }
  50% { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .build-step.is-next .build-icon,
  .build-step.is-next::after { animation: none; }
}
.build-step h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--teal-950);
  text-align: center;
  max-width: 16ch;
  margin-inline: auto;
}

@media (min-width: 981px) and (prefers-reduced-motion: no-preference) {
  .build-stage { height: 260vh; }
  .build-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
  }
  .build-sticky .container { width: 100%; }
}

/* ============================================
   Pricing
   ============================================ */
.pricing { position: relative; z-index: 2; background: var(--grey-100); text-align: center; }
.pricing .container { max-width: 1420px; }
.pricing-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
  text-align: left;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 40px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--grey-100);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card--featured {
  border: 2px solid var(--teal-800);
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
}
@media (hover: hover) and (pointer: fine) {
  .price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
  .price-card--featured:hover { transform: translateY(-16px); box-shadow: var(--shadow-lg); }
}
.price-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--yellow);
  color: var(--teal-950);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.price-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--teal-800);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}
.price-card h3 { font-size: 22px; margin-bottom: 6px; }
.price-tagline { color: var(--ink-soft); font-size: 14px; margin-bottom: 20px; }

.feature-list { display: flex; flex-direction: column; flex-grow: 1; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--grey-100);
  font-size: 14.5px;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}
.feature-list li.included::before {
  background-color: var(--teal-700);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>");
}
.feature-list li.included.highlight::before { background-color: var(--amber); }
.feature-list li.excluded {
  color: #a9b3b1;
}
.feature-list li.excluded::before {
  background-color: var(--grey-300);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M19 13H5v-2h14v2z'/></svg>");
}
.feature-list li.strong { font-weight: 700; }
.feature-list li.highlight { color: var(--amber); font-weight: 700; }

.price-footer { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--grey-100); }
.price-label {
  display: block;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.price-amount {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--teal-950);
  margin-bottom: 18px;
}
.price-card .btn { width: 100%; }

/* ============================================
   Testimonials
   ============================================ */
.testimonials { position: relative; z-index: 4; background: var(--white); text-align: center; overflow: hidden; }
.testimonials > .container { position: relative; z-index: 1; }

.tstar {
  position: absolute;
  opacity: 0.95;
  filter: drop-shadow(0 10px 16px rgba(11,60,58,0.18));
}

.testimonials-group { position: relative; }
.testimonials-group + .testimonials-group { margin-top: 56px; }
.testimonials-videos { margin-top: 64px; }
.testimonials-group-label {
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.testimonial-video-wrap { position: relative; }
.testimonial-video-wrap .testimonial-card { position: relative; z-index: 1; }
.testimonials-videos-decor { position: absolute; inset: 0; pointer-events: none; }
.testimonials-videos-decor--behind { z-index: 0; }
.testimonials-videos-decor--front { z-index: 2; }

/* Stars around the video card: top-right + bottom-left in front, top-left + bottom-right behind */
.tstar-stack {
  position: absolute;
  width: clamp(120px, 40%, 160px);
  aspect-ratio: 100 / 96;
}
.tstar-stack {
  transform: rotate(var(--r, 0deg));
  animation: starFloat 6s ease-in-out infinite;
}
.tstar-stack-tl, .tstar-stack-t-bl { animation-delay: -1.5s; }
.tstar-stack-bl, .tstar-stack-t-br { animation-delay: -3s; }
.tstar-stack-br { animation-delay: -4.5s; }
@keyframes starFloat {
  0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); }
  50% { transform: rotate(calc(var(--r, 0deg) + 5deg)) translateY(-12px); }
}
@keyframes haloFar { 0%, 100% { transform: scale(1.5); opacity: 0.12; } 50% { transform: scale(1.72); opacity: 0.05; } }
@keyframes haloNear { 0%, 100% { transform: scale(1.24); opacity: 0.26; } 50% { transform: scale(1.36); opacity: 0.14; } }
.tstar-layer--far { animation: haloFar 5s ease-in-out infinite; }
.tstar-layer--near { animation: haloNear 5s ease-in-out infinite; }
.tstar-stack svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tstar-layer { fill: var(--teal-600); transform-origin: 50% 52%; }
.tstar-layer--far { opacity: 0.12; transform: scale(1.5); }
.tstar-layer--near { opacity: 0.26; transform: scale(1.24); }
.tstar-main { filter: drop-shadow(0 8px 14px rgba(11,60,58,0.2)); }

.tstar-stack-tr { top: -78px; right: -46px; --r: -14deg; }
.tstar-stack-bl { bottom: -84px; left: -54px; --r: 10deg; }
.tstar-stack-tl { top: 6%; left: -84px; --r: -8deg; }
.tstar-stack-br { bottom: -40px; right: -84px; --r: -16deg; }

@media (min-width: 981px) {
  .tstar-stack { width: 150px; }
  .tstar-stack-tr { top: -84px; right: -40px; }
  .tstar-stack-bl { bottom: -84px; left: -40px; }
  .tstar-stack-tl { top: -30px; left: -78px; }
  .tstar-stack-br { bottom: -30px; right: -78px; }
}

.testimonials-text { position: relative; }
.testimonial-text-wrap { position: relative; }
.testimonial-text-wrap .testimonial-card { position: relative; z-index: 1; }
.tstar-stack-t-tr { top: -70px; right: -46px; --r: -12deg; }
.tstar-stack-t-bl { bottom: -70px; left: -70px; --r: 8deg; }
.tstar-stack-t-br { bottom: -50px; right: -80px; --r: -18deg; }
@media (min-width: 981px) {
  .tstar-stack-t-tr { top: -80px; right: -40px; }
  .tstar-stack-t-bl { bottom: -80px; left: 26%; }
  .tstar-stack-t-br { bottom: -60px; right: -60px; }
}

.carousel { margin-top: 40px; }
.carousel-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--mint-50);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  text-align: left;
  border: 1px solid var(--mint-100);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stars { color: var(--yellow); letter-spacing: 3px; font-size: 16px; margin-bottom: 14px; }
.quote { font-size: 16px; color: var(--ink); margin-bottom: 22px; }
.testimonial-who { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; }
.testimonial-who > div { display: flex; flex-direction: column; }
.testimonial-who strong { font-size: 15px; color: var(--teal-950); }
.testimonial-who span { font-size: 13px; color: var(--ink-soft); }
.testimonial-who .wm { font-size: 13px; opacity: 0.55; text-align: right; flex-shrink: 0; }
.testimonial-who .wm-erasmus { font-size: 10.5px; }
.testimonial-who .wm-logo { height: 20px; filter: none; opacity: 0.9; flex-shrink: 0; }
.testimonial-who .wm-logo-erasmus { height: 15px; }

.testimonial-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #d5e6e7;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  cursor: pointer;
}
.testimonial-video::before,
.testimonial-video::after { content: ""; position: absolute; left: 50%; background: #bcd4d7; }
.testimonial-video::before {
  width: 27%; aspect-ratio: 1; top: 10%;
  border-radius: 50%; transform: translateX(-50%);
}
.testimonial-video::after {
  width: 40%; height: 34%; bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0; transform: translateX(-50%);
}
.play-btn {
  position: relative;
  z-index: 1;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
.testimonial-video:hover .play-btn { transform: scale(1.1); }
.play-btn svg { width: 26px; height: 26px; fill: var(--teal-800); margin-left: 4px; }
button.play-btn { border: 0; padding: 0; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }
.testimonial-video--has-video { background: #0b3c3a; }
.testimonial-video--has-video::before,
.testimonial-video--has-video::after { display: none; }
.testimonial-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.testimonial-video.is-playing .play-btn { display: none; }
/* square frame fits both landscape (Elzė) and portrait (Lėja) clips */
.testimonial-video--has-video { aspect-ratio: 1 / 1; align-items: flex-end; padding-bottom: 20px; }
.testimonial-video--elze video { object-position: 64% 50%; }
.testimonial-video--leja video { object-position: 50% 16%; }
.testimonial-uni-logo { height: 20px; width: auto; align-self: flex-start; margin: 23px 0 39px; } /* centred in the same slot height as the IE logo */

.ie-logo { display: inline-flex; flex-direction: column; width: 62px; margin-bottom: 14px; }
.ie-mark {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 42px;
  line-height: 0.9;
  color: #0c1160;
  padding-top: 10px;
}
.ie-mark::before {
  content: "";
  position: absolute;
  top: 6px; left: 2px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #33b1f0;
}
.ie-rule { display: block; height: 3px; background: #1f9de0; margin: 4px 0 3px; }
.ie-sub { font-size: 6.5px; font-weight: 800; letter-spacing: 0; color: #0c1160; white-space: nowrap; }

.testimonial-card--video {
  background: var(--white);
  border-color: #e3eded;
  box-shadow: var(--shadow-md);
}
.testimonial-card--video .quote { color: var(--ink-soft); }
.testimonial-card--video .testimonial-who strong { font-size: 20px; }
.testimonial-card--video .testimonial-who span { color: #8a9997; }
.testimonial-card--placeholder .quote,
.testimonial-card--placeholder .testimonial-who strong { color: #9aa8a6; font-style: italic; }

.testimonial-logo { display: inline-flex; margin-bottom: 14px; }
.testimonial-content { display: flex; flex-direction: column; flex: 1; min-width: 0; }

@media (min-width: 981px) {
  .testimonial-card--video { flex-direction: row; align-items: center; gap: 32px; }
  .testimonial-card--video .testimonial-video { flex: 0 0 320px; margin-bottom: 0; }
}

.carousel-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--grey-300);
  background: var(--white);
  color: var(--teal-950);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.carousel-btn:hover { background: var(--teal-900); color: var(--white); border-color: var(--teal-900); }
.carousel-controls--dark .carousel-btn { border-color: rgba(255,255,255,0.3); background: transparent; color: var(--white); }
.carousel-controls--dark .carousel-btn:hover { background: var(--white); color: var(--teal-950); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--grey-300);
  cursor: pointer;
  padding: 0;
}
.carousel-dots button[aria-current="true"] { background: var(--teal-800); width: 20px; border-radius: 4px; }
.carousel-count { color: var(--white); font-weight: 700; letter-spacing: 0.05em; }

/* ============================================
   Team
   ============================================ */
.team {
  position: relative;
  z-index: 3;
  background: #105e68;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.team > .container { position: relative; z-index: 1; }
.team-head { max-width: 560px; text-align: left; }
.team h2 { color: var(--white); text-transform: uppercase; letter-spacing: -0.01em; }

.team-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.team-bridge { position: absolute; max-width: none; filter: brightness(1.15) saturate(1.2); }
.team-bridge--arch {
  bottom: -5%; left: 50%;
  width: min(1200px, 190%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 92%);
  opacity: 0;
  transform: translateX(-50%) translateY(36px);
  transition: opacity 1.1s cubic-bezier(.16,.84,.44,1), transform 1.1s cubic-bezier(.16,.84,.44,1);
}
.team-bridge--arch.in-view { opacity: 0.4; transform: translateX(-50%) translateY(0); }

.team .carousel { max-width: 320px; margin-inline: auto; margin-top: 100px; padding-block: 14px; overflow: visible; }
.team .carousel-controls { display: flex; }
.team .carousel-track {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
}
.team .carousel-track > * {
  display: none;
  grid-area: 1 / 1;
}
.team .carousel-track > .is-active,
.team .carousel-track > .is-prev,
.team .carousel-track > .is-next {
  display: block;
}

.team-card {
  position: relative;
  aspect-ratio: 3 / 4;
  background: transparent;
  filter: drop-shadow(0 12px 0 #0b525a);
  text-align: left;
  transform-origin: 50% 85%;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.team-card.is-active {
  position: relative;
  z-index: 3;
  opacity: 1;
  transform: rotate(0deg) translate(0, 0) scale(1);
  animation: team-fade 0.3s ease;
}
.team-card.is-prev,
.team-card.is-next {
  z-index: 1;
  pointer-events: none;
  filter: none;
  background: #85c3c2;
  border-radius: 24px;
}
.team-card.is-prev > *,
.team-card.is-next > * { visibility: hidden; }
.team-card.is-prev,
.team-card.is-next { width: 44px; aspect-ratio: auto; align-self: stretch; }
.team-card.is-prev { justify-self: start; transform: translateX(-54px) scale(0.94); }
.team-card.is-next { justify-self: end; transform: translateX(54px) scale(0.94); }

@keyframes team-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.team-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  clip-path: path('M0 24 A24 24 0 0 1 24 0 L296 0 A24 24 0 0 1 320 24 L320 391.34 A14 14 0 0 1 306.03 406.27 L13.97 425.74 A14 14 0 0 1 0 412.67 Z');
  background: linear-gradient(160deg, #b7f1e5 0%, #91ddd1 45%, #82dace 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 22%, rgba(255,255,255,0.45), transparent 55%);
}
.team-portrait {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  transform: translateY(-100px) scale(0.94);
  transform-origin: bottom center;
  clip-path: path('M0 -300 L0 24 A24 24 0 0 1 24 0 L296 0 A24 24 0 0 1 320 24 L320 700 L0 700 Z');
  pointer-events: none;
}
.team-initials {
  position: relative;
  z-index: 1;
  transform: translateY(-14%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  color: var(--teal-900);
  text-shadow: 0 2px 10px rgba(255,255,255,0.4);
}
.team-card--placeholder .team-photo {
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.22) 0 14px, rgba(255,255,255,0.08) 14px 28px), #91ddd1;
}
.team-card--placeholder .team-initials { color: rgba(16,94,104,0.4); }

.team-footer {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  background: #caf3eb;
  clip-path: path('M0 0 L320 38.4 L320 118.27 A14 14 0 0 1 306.03 133.2 L13.97 152.67 A14 14 0 0 1 0 139.6 Z');
  padding: 14px 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.team-card h3 { color: #125f66; font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 2px; }
.team-role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #5f8488;
  margin-bottom: 8px;
}
.team-card--placeholder h3,
.team-card--placeholder .team-role { color: #9aa8a6; font-style: italic; }
.team-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.team-flag {
  flex-shrink: 0;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #125f66;
  text-transform: uppercase;
  background: transparent;
  border: 1.5px solid #125f66;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.team-card--placeholder .team-flag { border-color: #b7c3c1; color: #9aa8a6; }
.linkedin {
  flex-shrink: 0;
  z-index: 1;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid #125f66;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  color: #125f66;
}
/* group card (reference: teamgroup — stat number, label, globe) */
.team-stat {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: #125f66;
  margin-bottom: 2px;
}
.team-card--group h3 { font-size: 22px; margin-bottom: 8px; }
.team-globe {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid #125f66;
  color: #125f66;
  display: flex; align-items: center; justify-content: center;
}
.team-globe svg { width: 20px; height: 20px; }
.team-cta { text-align: center; margin-top: 40px; }
.team-cta .btn-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.75);
  width: 100%;
  max-width: 340px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.team-cta .btn-light:hover { background: rgba(255,255,255,0.14); }

/* team controls (reference: outlined circles, counter + dots between) */
.team .carousel-controls { justify-content: space-between; gap: 12px; margin-top: 44px; }
.team .carousel-controls--dark .carousel-btn { width: 56px; height: 56px; border: 1.5px solid rgba(255,255,255,0.75); font-size: 22px; }
.team-controls-center { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.team .carousel-count { font-size: 20px; }
.carousel-count-total { color: #7fd9c8; opacity: 0.85; }
.team .carousel-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.team .carousel-dots button[aria-current="true"] { width: 9px; border-radius: 50%; background: #fff; }
@media (max-width: 980px) {
  .team .section-lead { margin-inline: 0; }
  .team .carousel { max-width: 320px; }
}

/* ============================================
   Newsletter
   ============================================ */
.newsletter { position: relative; z-index: 1; background: var(--mint-50); padding-bottom: calc(var(--seam) + 12px); }
.newsletter-inner { max-width: 560px; }
.newsletter h2 { margin-bottom: 10px; }
.newsletter p { color: var(--ink-soft); margin-bottom: 28px; }
.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.newsletter-form input {
  flex: 1 1 260px;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--grey-300);
  font-size: 15px;
  font-family: inherit;
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px rgba(31,128,121,0.15);
}
.newsletter-note { margin-top: 16px; font-size: 14px; color: var(--teal-700); font-weight: 600; min-height: 20px; }
.newsletter-note:empty { display: none; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--mint-50) 0%, var(--mint-50) 26%, var(--teal-500) 46%, var(--teal-800) 60%, var(--teal-950) 100%);
  color: rgba(255,255,255,0.9);
  overflow: hidden;
  padding-top: clamp(320px, 88vw, 460px);
}
@media (min-width: 1500px) {
  .site-footer { padding-top: clamp(460px, 26vw, 620px); }
}
.footer-bridge {
  position: absolute;
  top: calc(var(--seam) - 14px);
  left: 50%;
  transform: translateX(-50%);
  width: min(128%, 760px);
  max-width: none;
}
@media (min-width: 1500px) {
  .footer-bridge { width: min(72%, 1400px); }
}
.footer-bridge {
  filter: saturate(1.2) brightness(0.9);
  -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(36px);
  transition: opacity 1.1s cubic-bezier(.16,.84,.44,1), transform 1.1s cubic-bezier(.16,.84,.44,1);
}
.footer-bridge.in-view { opacity: 1; transform: translateX(-50%) translateY(0); }
.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo { height: 30px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.88); font-size: 14px; }
.footer-col h3 {
  color: var(--white);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: rgba(255,255,255,0.75);
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--turquoise); }
.footer-bottom {
  position: relative;
  text-align: center;
  padding-block: 22px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .nav-panel { display: none; }
  .nav-toggle { display: flex; }
  .header-cta-mobile { display: inline-flex; }

  .site-header.nav-open .nav-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px 28px;
    gap: 18px;
    box-shadow: var(--shadow-md);
    margin: 0;
  }
  .site-header.nav-open .main-nav {
    flex-direction: column;
    gap: 14px;
  }
  .site-header.nav-open .header-cta {
    align-self: flex-start;
  }

  .hero { padding-bottom: clamp(380px, 84vw, 640px); }
  .hero-bg { justify-content: center; align-items: flex-end; }
  .hero-bg img {
    width: min(112%, 700px);
    min-width: 0;
    --bx: 0%;
    --by: 6%;
  }
  .hero-bg::after {
    background: linear-gradient(180deg, #105f68 0%, rgba(16,95,104,0.55) 42%, transparent 62%);
  }

  .why-cards, .diff-cards { grid-template-columns: 1fr; gap: 40px; }
  .build-deck { display: none; }
  .build-steps { grid-template-columns: 1fr; row-gap: 15vh; }
  .build { margin-top: 0; padding-block: 18vh 20vh; }

  .logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .logo-marquee-track {
    display: flex;
    gap: clamp(36px, 6.5vw, 76px);
    width: max-content;
    animation: logoMarquee 24s linear infinite;
  }
  .logo-strip { flex-wrap: nowrap; }
  .logo-marquee .logo-strip--duplicate { display: flex; }

  .pricing-grid {
    display: flex;
    grid-template-columns: unset;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    max-width: none;
    margin-inline: -24px;
    /* Extra top padding so the "Populiariausias" badge (which pokes
       up above its card via a negative top offset) has room to clear
       the scroll container's edge — overflow-x:auto here implicitly
       clips the Y axis too, cutting the badge off without it. */
    padding: 22px calc((100vw - min(82vw, 350px)) / 2) 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pricing-grid::-webkit-scrollbar { display: none; }
  .price-card {
    flex: 0 0 82vw;
    max-width: 350px;
    scroll-snap-align: center;
    box-shadow: 0 14px 34px rgba(14, 74, 71, 0.22);
  }
  .price-card--featured { transform: none; }

  .carousel-track { grid-template-columns: 1fr !important; }
  .carousel-track > *:not(.is-active) { display: none; }
  .carousel-controls { display: flex; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 640px) {
  .logo-strip { gap: 22px 30px; }
  .price-badge { right: 50%; transform: translateX(50%); }

  .mobile-fab { display: flex; align-items: center; justify-content: center; }
  .header-cta-mobile { padding: 8px 14px; font-size: 12.5px; }

  .hero { padding-top: 26px; padding-bottom: 0; min-height: 160vw; }
  .hero .eyebrow, .hero-sub, .hero-actions { display: none; }
  .hero h1 { font-size: 10vw; }
  .hero-bg { justify-content: flex-start; align-items: flex-end; }
  .hero-bg img { width: 104%; margin-left: -6%; --bx: 0%; --by: -3%; -webkit-mask-image: none; mask-image: none; }
  .hero-bg::after { display: none; }

  .hero-cta-pill {
    display: block;
    width: min(86vw, 380px);
    margin: 24px auto 0;
    background: #cfdee1;
    color: var(--teal-950);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-align: center;
    text-transform: uppercase;
    padding: 16px 26px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    transition: transform 0.15s ease;
  }
  .hero-cta-pill:active { transform: scale(0.96); }
}

/* Video testimonials carousel */
.testimonials-videos .carousel { margin-top: 0; }
.testimonials-videos .carousel-track { display: block; }
.testimonials-videos .carousel-track > *:not(.is-active) { display: none; }
.testimonials-videos .carousel-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 64px;
  position: relative;
  z-index: 3;
}
.carousel-arrows { display: flex; gap: 10px; justify-self: end; }
.carousel-controls--video .carousel-btn {
  width: 44px; height: 44px;
  border-radius: 6px;
  background: var(--teal-800);
  border-color: var(--teal-800);
  color: var(--white);
}
.carousel-controls--video .carousel-btn:hover { background: var(--teal-950); border-color: var(--teal-950); }
.carousel-controls--video .carousel-dots button { background: var(--teal-500); opacity: 0.45; }
.carousel-controls--video .carousel-dots button[aria-current="true"] { opacity: 1; }

/* Text testimonial cards (reference style) */
.testimonials-text .testimonial-card {
  background: var(--white);
  border: 1px solid #c9dcdf;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.testimonials-text .stars { color: var(--teal-800); font-size: 22px; letter-spacing: 4px; margin-bottom: 12px; }
.testimonials-text .quote { color: var(--ink-soft); margin-bottom: 26px; }
.testimonials-text .testimonial-who {
  border-top: 1px solid #e3eded;
  padding-top: 18px;
  align-items: center;
}
.testimonials-text .testimonial-who strong { font-size: 20px; line-height: 1.2; color: var(--teal-950); }
.testimonials-text .testimonial-who .wm { opacity: 0.85; }
.testimonials-text .testimonial-who .wm-logo { opacity: 1; }
.testimonials-text .carousel-controls { position: relative; z-index: 3; margin-top: 64px; }

/* Testimonial slide-in when the carousel changes */
@keyframes cardSwap {
  from { opacity: 0; transform: translateX(28px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.testimonials-videos .carousel-track > .is-active { animation: cardSwap 0.6s cubic-bezier(.16,.84,.44,1); }
.testimonial-video:hover .play-btn { box-shadow: 0 0 0 10px rgba(255,255,255,0.35); }
@media (max-width: 980px) {
  .testimonials-text .carousel-track > .is-active { animation: cardSwap 0.6s cubic-bezier(.16,.84,.44,1); }
}

.pricing-swipe-hint { display: none; }
@media (max-width: 980px) {
  .pricing-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--teal-700);
  }
  .pricing-swipe-track { display: flex; gap: 5px; }
  .pricing-swipe-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grey-300); }
  .pricing-swipe-dot:first-child { background: var(--teal-700); }
  .pricing-swipe-icon { display: flex; width: 20px; height: 20px; animation: swipeHint 1.8s ease-in-out infinite; }
  .pricing-swipe-icon svg { width: 100%; height: 100%; }
  @keyframes swipeHint {
    0%, 100% { transform: translateX(0); opacity: 0.6; }
    50% { transform: translateX(4px); opacity: 1; }
  }
}

/* ============================================
   Desktop gate — desktop layout under construction;
   shows the mobile site in a phone frame instead.
   The iframe is 390px wide, so the gate never shows inside it.
   ============================================ */
.desktop-gate { display: none; }
@media (min-width: 981px) {
  body > *:not(.desktop-gate) { display: none !important; }
  body { background: #105e68; overflow: hidden; }
  .desktop-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(48px, 8vw, 120px);
    height: 100vh;
    padding: 32px 48px;
    color: var(--white);
    background:
      radial-gradient(circle at 20% 30%, rgba(111, 214, 196, 0.18), transparent 55%),
      #105e68;
  }
  .desktop-gate-text { max-width: 440px; }
  .desktop-gate-logo { width: 200px; margin-bottom: 36px; }
  .desktop-gate h1 {
    color: var(--white);
    font-size: clamp(32px, 3.2vw, 44px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 18px;
  }
  .desktop-gate p { color: rgba(255, 255, 255, 0.78); font-size: 18px; margin: 0; }
  .desktop-gate-phone {
    flex-shrink: 0;
    width: 414px;
    height: min(860px, calc(100vh - 64px));
    padding: 12px;
    border-radius: 48px;
    background: #0b3c3a;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12), 0 30px 80px rgba(0, 0, 0, 0.35);
  }
  .desktop-gate-phone iframe {
    display: block;
    width: 390px;
    height: 100%;
    border: 0;
    border-radius: 36px;
    background: var(--white);
  }
}
