/*
 * Weart theme stylesheet, ported from the Astro site (src/styles). Sections follow the original partials, in cascade
 * order; the WordPress specific rules (Gravity Forms, block editor content, pagination) are at the end.
 */

/* ---------- fonts: Jakarta 400/700, mono 500, latin + latin-ext (ő, ű) ---------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/plus-jakarta-sans-latin-ext-400-normal.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/plus-jakarta-sans-latin-400-normal.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/plus-jakarta-sans-latin-ext-700-normal.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(../fonts/jetbrains-mono-latin-ext-500-normal.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(../fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Weart Night Tide: tokens from DESIGN.md */
:root {
  --primary: #00c2cb;
  --secondary: #aedfdc;
  --tertiary: #006870;
  --abyss: #051a2d;
  --trench: #050f19;
  --on-dark: #c0ebf1;
  --surface: #f3f9fa;
  --raised: #fcfeff;
  --on-surface: #051a2d;
  --muted: #465864;
  --footer-text: #76868d;
  --border: #d3e1e3;
  --line-on-dark: #233544;
  --error: #b63b32;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-full: 9999px;

  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 16px;
  --s-lg: 32px;
  --s-xl: 64px;
  --s-section: 96px;
  --measure: 600px;
  --container: 1240px;

  --shadow-frame: 0 16px 36px -20px rgba(5, 26, 45, 0.22);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast: 150ms;
  --slow: 500ms;

  --art-ink: #051a2d;
  --sparkle: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--tertiary);
}
h1,
h2,
h3 {
  margin: 0 0 var(--s-md);
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.015em;
}
h3 {
  font-size: 20px;
  line-height: 1.35;
}
p {
  margin: 0 0 var(--s-md);
}
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--primary);
  color: var(--abyss);
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-weight: 700;
}
.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

.section {
  padding: var(--s-xl) 0;
  position: relative;
}
@media (min-width: 992px) {
  .section {
    padding: var(--s-section) 0;
  }
}
.section-dark {
  background: var(--abyss);
  color: var(--on-dark);
}
.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--raised);
}
.section-dark a:not(.btn) {
  color: var(--raised);
}
.section-light {
  background: var(--surface);
}
.section-raised {
  background: var(--surface);
}

.section-head {
  max-width: var(--measure);
  margin: 0 auto var(--s-lg);
  text-align: center;
}
.section-head--left {
  text-align: left;
  margin-left: 0;
}
.section-light .section-head > p:last-child,
.section-raised .section-head > p:last-child {
  color: var(--muted);
}

/* ---------- eyebrows ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow-dark {
  color: var(--primary);
}
.eyebrow-light {
  color: var(--tertiary);
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font: 700 16px/1.2 var(--font-sans);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: var(--r-md);
  padding: 14px 36px;
  transition:
    background-color var(--fast) ease,
    transform var(--fast) ease;
}
.btn-primary {
  background: var(--primary);
  color: var(--abyss);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(252, 254, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-primary:hover {
  background: var(--secondary);
}
.btn-primary:hover::after {
  transform: translateX(120%);
  transition: transform 700ms var(--ease-out);
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-sm {
  padding: 10px 24px;
  font-size: 15px;
}
.btn-block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--primary);
  color: inherit;
}
.link-arrow svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--fast) ease;
}
.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: transparent;
}
/* the scrolled background sits on its own layer: a backdrop-filter on the header itself would make it the containing
   block of the fixed mobile menu, which then shrinks to the header's height */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 26, 45, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line-on-dark);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.site-header.is-scrolled::before {
  opacity: 1;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo {
  display: block;
  flex: none;
}
.logo img {
  height: 60px;
  width: auto;
  transition: transform 400ms var(--ease-out);
}
.logo:hover img {
  transform: translate(2px, -3px) rotate(-2deg);
}
@media (max-width: 767px) {
  .logo img {
    height: 42px;
  }
}
.footer-logo img {
  height: 64px;
  width: auto;
  opacity: 0.9;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a:not(.btn) {
  color: var(--raised);
  text-decoration: none;
  font-size: 15px;
  position: relative;
}
.main-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--fast) ease;
}
.main-nav a:not(.btn):hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--raised);
  margin: 5px 0;
  transition:
    transform 250ms ease,
    opacity 250ms ease;
}
.menu-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991px) {
  .menu-toggle {
    display: block;
    z-index: 2;
  }
  .main-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    background: var(--abyss);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 250ms ease,
      visibility 250ms;
  }
  .main-nav a:not(.btn) {
    font-size: 20px;
    font-weight: 700;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
  }
}

/* ---------- hero ---------- */
.hero {
  padding: 132px 0 var(--s-xl);
  overflow: hidden;
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  gap: 48px;
  position: relative;
  z-index: 1;
  align-items: center;
}
@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}
.hero h1 {
  text-wrap: balance;
}
.hero .lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.65;
  max-width: 560px;
}
.hl {
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}
.hl::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.12em;
  background: var(--primary);
  opacity: 0.35;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: grow-x 0.9s var(--ease-out) 1s forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin: 32px 0;
}
/* the numbers under the buttons (and in the subpage heroes): quiet turquoise figures, a small label under them, a hairline between */
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.hero-stat {
  display: grid;
  gap: 2px;
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  color: rgba(192, 235, 241, 0.7);
}
.hero-stat + .hero-stat {
  padding-left: 24px;
  border-left: 1px solid var(--line-on-dark);
}
.hero-stat strong {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--primary);
}

/* hero visual: the portrait, floating cards around it. Fixed geometry (px), so each card reaches only into
   the edge of the photo, never into the middle where the face is: top right corner, bottom corners (the shirt). Scaled down between 992 and 1199px, its own layout on phones. */
.hero-visual {
  position: relative;
  justify-self: center;
  width: 540px;
  height: 560px;
  margin: 0 auto;
}
.hero-portrait {
  position: absolute;
  left: 130px;
  top: 40px;
  width: 300px;
}

.hero-photo {
  position: relative;
  z-index: 1;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}

.float-card {
  position: absolute;
  z-index: 2;
  background: rgba(5, 15, 25, 0.88);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-md);
  color: var(--on-dark);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  transition: transform 600ms var(--ease-out);
}
/* a real client sentence on the bottom right corner: the proof next to the promise of the headline */
.quote-card {
  left: 300px;
  top: 368px;
  width: 252px;
  margin: 0;
  padding: 16px 18px;
  animation: bob 9s ease-in-out -3s infinite;
}
.quote-card blockquote {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--raised);
}
.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--on-dark);
}
.quote-card strong {
  display: block;
  font-size: 13px;
  color: var(--raised);
}
.quote-card figcaption::before {
  content: '';
  flex: none;
  align-self: flex-start;
  margin-top: 8px;
  width: 24px;
  height: 2px;
  border-radius: 1px;
  background: var(--primary);
}
/* one of the many: the client count from the numbers under the button */
.quote-card-note {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line-on-dark);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-visual {
    scale: 0.8;
    margin: -56px auto;
  }
}

/* dot field */
/* hero: playful space scene (mirrors the rocket in the logo) */
.space {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.stars circle,
.stars .sparkle {
  fill: #e8f7fa;
  animation: twinkle var(--tw, 4s) ease-in-out var(--twd, 0s) infinite alternate;
}
.stars .sparkle {
  fill: var(--secondary);
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes twinkle {
  from {
    opacity: 0.15;
  }
  to {
    opacity: 1;
  }
}
.shooting path {
  stroke: #e8f7fa;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 140 400;
  stroke-dashoffset: 140;
}
.shooting {
  animation: shoot 11s linear 3s infinite;
  opacity: 0;
}
@keyframes shoot {
  0% {
    transform: translate(1180px, 90px);
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  8% {
    transform: translate(760px, 228px);
    opacity: 0;
  }
  100% {
    transform: translate(760px, 228px);
    opacity: 0;
  }
}
.rocket-route {
  fill: none;
  stroke: rgba(192, 235, 241, 0.14);
  stroke-width: 1.5;
  stroke-dasharray: 2 10;
  stroke-linecap: round;
}
.planet-ring {
  fill: none;
  stroke: rgba(174, 223, 221, 0.55);
  stroke-width: 9;
}
.planet-ring--back {
  stroke: rgba(174, 223, 221, 0.25);
}
.crater {
  fill: rgba(5, 26, 45, 0.28);
}
/* rocket drawn like the logo: light hull, blue window + fins, navy outline, blue swoosh */
.rocket-hull {
  fill: #f3f9fa;
  stroke: var(--abyss);
  stroke-width: 2.4;
  stroke-linejoin: round;
}
.rocket-nose {
  fill: #7fc8f0;
  stroke: var(--abyss);
  stroke-width: 2.4;
  stroke-linejoin: round;
}
.rocket-fin {
  fill: #3b8fd9;
  stroke: var(--abyss);
  stroke-width: 2.2;
  stroke-linejoin: round;
}
.rocket-window {
  fill: #9ed6f5;
  stroke: var(--abyss);
  stroke-width: 2.4;
}
.rocket-glint {
  fill: #fff;
}
.rocket-trail {
  fill: url(#trail-fill);
}
.rocket-trail--soft {
  opacity: 0.45;
}
/* the plume flickers like the small flame, just a touch slower and offset */
.rocket-trail {
  transform-box: fill-box;
  transform-origin: right center;
  animation: plume 0.22s ease-in-out infinite alternate;
}
.rocket-trail--soft {
  animation-duration: 0.27s;
  animation-delay: -0.1s;
}
@keyframes plume {
  from {
    transform: scaleX(0.86) scaleY(0.94);
  }
  to {
    transform: scaleX(1.08) scaleY(1.04);
  }
}
.rocket-flame {
  fill: #c0ebf1;
  transform-box: fill-box;
  transform-origin: right center;
  animation: flame 0.18s ease-in-out infinite alternate;
}
@keyframes flame {
  to {
    transform: scaleX(1.35);
  }
}
@media (max-width: 767px) {
  .rocket,
  .rocket-route {
    display: none;
  }
}
.rocket-body {
  animation: wobble 3.2s ease-in-out infinite alternate;
}
@keyframes wobble {
  from {
    transform: translateY(-3px) rotate(-2deg);
  }
  to {
    transform: translateY(3px) rotate(2deg);
  }
}
.hero-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-glow span {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}
.hero-glow span:first-child {
  width: 900px;
  height: 900px;
  right: -260px;
  top: -320px;
  background: radial-gradient(circle, rgba(0, 194, 203, 0.2), transparent 65%);
  animation: glow-a 38s ease-in-out infinite alternate;
}
.hero-glow span:last-child {
  width: 760px;
  height: 760px;
  left: -280px;
  bottom: -380px;
  background: radial-gradient(circle, rgba(0, 104, 112, 0.35), transparent 65%);
  animation: glow-b 46s ease-in-out infinite alternate;
}
@keyframes glow-a {
  to {
    transform: translate(-320px, 220px) scale(1.15);
  }
}
@keyframes glow-b {
  to {
    transform: translate(380px, -160px) scale(0.9);
  }
}

/* ---------- placeholders ---------- */
.placeholder {
  margin: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  font: 500 12px/1.5 var(--font-mono);
  color: var(--muted);
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(0, 104, 112, 0.06) 10px 11px), #eaf4f5;
  border: 1px dashed #b5cbcf;
}
.placeholder svg {
  width: 56px;
  fill: none;
  stroke: #9fb8bc;
  stroke-width: 2;
  stroke-linecap: round;
}
.section-dark .placeholder {
  color: var(--footer-text);
  border-color: var(--line-on-dark);
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(0, 194, 203, 0.06) 10px 11px), var(--trench);
}
.section-dark .placeholder svg {
  stroke: var(--line-on-dark);
}
.placeholder small {
  opacity: 0.8;
}
.placeholder--portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
}
.placeholder--avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--r-full);
  flex: none;
  font-size: 10px;
}

/* ---------- marquee: dark band, white logos ---------- */
.marquee-band {
  background: var(--trench);
  color: var(--footer-text);
  padding: 22px 0;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}
.marquee-label {
  flex: none;
  margin: 0;
  padding-left: 32px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.marquee {
  overflow: hidden;
  flex: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee 90s linear infinite;
}
.marquee-track li {
  padding: 0 28px;
  font-weight: 700;
  font-size: 17px;
  color: var(--on-dark);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 56px;
}
.marquee-track li::after {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--primary);
  margin-left: 28px;
  clip-path: var(--sparkle);
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
/* logos: one height, any width up to a limit, white on the dark band unless "eredeti színben" is on */
.marquee-logo {
  display: block;
  width: auto;
  height: 36px;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.45;
  transition: opacity var(--fast) ease;
}
/* a logo on its own (white) background would turn into a white block: inverted instead, its background screened away */
.marquee-band:not(.marquee-band--color) .is-boxed .marquee-logo {
  filter: grayscale(1) invert(1);
  mix-blend-mode: screen;
}
.marquee-band--color .marquee-logo {
  filter: none;
  opacity: 0.6;
}
.marquee-track li:hover .marquee-logo {
  opacity: 1;
}
@media (max-width: 767px) {
  .marquee-logo {
    height: 28px;
    max-width: 120px;
  }
}
@media (max-width: 767px) {
  .marquee-label {
    display: none;
  }
}

/* ---------- cards / benefits ---------- */
.benefit-grid {
  display: grid;
  gap: 40px 32px;
}
@media (min-width: 640px) {
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .benefit-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.benefit {
  padding: 0;
}
.benefit h3 {
  font-size: 19px;
}
.benefit p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}
.benefit-art {
  width: 120px;
  height: 80px;
  margin-bottom: 20px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* space-themed benefit art, same ink style as the service illustrations */
.benefit-art .r-hull,
.service-art .r-hull,
.launch-art .r-hull {
  fill: var(--raised);
  stroke: var(--abyss);
  stroke-width: 2.2;
}
.benefit-art .r-nose,
.service-art .r-nose,
.launch-art .r-nose {
  fill: #7fc8f0;
  stroke: var(--abyss);
  stroke-width: 2.2;
}
.benefit-art .r-fin,
.service-art .r-fin,
.launch-art .r-fin {
  fill: #3b8fd9;
  stroke: var(--abyss);
  stroke-width: 2;
}
.benefit-art .r-window,
.service-art .r-window,
.launch-art .r-window {
  fill: #9ed6f5;
  stroke: var(--abyss);
  stroke-width: 2;
}
.benefit-art .r-trail,
.service-art .r-trail {
  fill: #3b8fd9;
  opacity: 0.55;
  transform-box: fill-box;
  transform-origin: right center;
  animation: plume 0.22s ease-in-out infinite alternate;
}
.benefit-art .r-flame,
.service-art .r-flame,
.launch-art .r-flame {
  fill: #c0ebf1;
  stroke: none;
  transform-box: fill-box;
  transform-origin: right center;
  animation: flame 0.18s ease-in-out infinite alternate;
}

/* 1 – faster: rocket shoots past a small planet */
.art-launch .p-small {
  fill: var(--secondary);
  stroke: var(--abyss);
  stroke-width: 2;
}
.art-launch .p-ring {
  stroke: var(--abyss);
  stroke-width: 2;
}
.art-launch .speed path {
  stroke: var(--primary);
  stroke-width: 3;
}
.art-launch .launch {
  opacity: 0;
}
.is-visible .art-launch .launch {
  animation:
    blast 1.1s var(--ease-out) 0.2s forwards,
    hover-jit 1.6s ease-in-out 1.3s infinite alternate;
}
.is-visible .art-launch .speed {
  animation: whoosh 1.2s ease-in-out infinite;
}
@keyframes blast {
  from {
    opacity: 0;
    transform: translate(-40px, 26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hover-jit {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(2px, -2px);
  }
}

/* 2 – simple: a document floating in zero-g, a moon orbiting it, lines typing themselves */
.art-float .orbit-back {
  stroke: var(--border);
  stroke-width: 2;
  stroke-dasharray: 3 5;
}
.art-float .doc rect {
  stroke: var(--abyss);
  stroke-width: 2.4;
  fill: var(--raised);
}
.art-float .doc {
  animation: zero-g 4s ease-in-out infinite alternate;
}
@keyframes zero-g {
  from {
    transform: translateY(-2px) rotate(-3deg);
  }
  to {
    transform: translateY(3px) rotate(3deg);
  }
}
.art-float .doc-line {
  stroke: var(--secondary);
  stroke-width: 4;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}
.is-visible .art-float .doc-line {
  animation: type-line 5s ease-in-out infinite;
}
.is-visible .art-float .l2 {
  animation-delay: 0.5s;
}
.is-visible .art-float .l3 {
  animation-delay: 1s;
}
.is-visible .art-float .l4 {
  animation-delay: 1.5s;
}
.art-float .moonlet circle {
  fill: var(--primary);
  stroke: var(--abyss);
  stroke-width: 2;
}
.art-float .moonlet .mc {
  fill: var(--abyss);
  stroke: none;
  opacity: 0.35;
}
.art-float .spark-s {
  fill: var(--secondary);
  stroke: var(--abyss);
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  animation: dl-twinkle 2.6s ease-in-out infinite alternate;
}

/* 3 – few plugins: one solid little satellite, panels unfold, steady orbit */
.art-sat rect,
.art-sat .core-win,
.art-sat .dish {
  stroke: var(--abyss);
  stroke-width: 2.2;
}
.art-sat .panel rect {
  fill: var(--secondary);
}
.art-sat .panel path {
  stroke: var(--abyss);
  stroke-width: 1.2;
  opacity: 0.55;
}
.art-sat .core {
  fill: var(--raised);
}
.art-sat .core-win {
  fill: var(--primary);
}
.art-sat .dish {
  fill: var(--raised);
}
.art-sat .arm,
.art-sat .ant {
  stroke: var(--abyss);
  stroke-width: 2.4;
}
.art-sat .ant-tip {
  fill: var(--primary);
  stroke: var(--abyss);
  stroke-width: 1.6;
}
.art-sat .ok {
  stroke: var(--tertiary);
  stroke-width: 3.2;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}
.art-sat .panel {
  transform-box: fill-box;
  transform: scaleX(0);
}
.art-sat .panel-l {
  transform-origin: right center;
}
.art-sat .panel-r {
  transform-origin: left center;
}
.art-sat .sat {
  transform-box: view-box;
  transform-origin: 60px 39px;
}
.is-visible .art-sat .panel {
  animation: unfold 0.7s var(--ease-out) 0.3s forwards;
}
.is-visible .art-sat .panel-r {
  animation-delay: 0.45s;
}
.is-visible .art-sat .sat {
  animation: sat-drift 6s ease-in-out 1.2s infinite alternate;
}
.is-visible .art-sat .ok {
  animation: dash-in 0.6s var(--ease-out) 1.1s forwards;
}
.is-visible .art-sat .ant-tip {
  animation: blink-soft 1.6s ease-in-out infinite;
}
@keyframes unfold {
  to {
    transform: scaleX(1);
  }
}
@keyframes sat-drift {
  from {
    transform: translateY(-2px) rotate(-4deg);
  }
  to {
    transform: translateY(2px) rotate(4deg);
  }
}

/* 4 – grows with you: ever bigger planets on a rising route, a tiny rocket climbing it */
.art-climb .route {
  stroke: var(--abyss);
  stroke-width: 2;
  stroke-dasharray: 3 5;
  opacity: 0.5;
}
.art-climb .pl circle,
.art-climb circle.pl {
  stroke: var(--abyss);
  stroke-width: 2.2;
}
.art-climb .pl1 {
  fill: var(--secondary);
}
.art-climb .pl2 {
  fill: #7fc8f0;
}
.art-climb .pl3 circle {
  fill: var(--primary);
}
.art-climb .pl-ring {
  stroke: var(--abyss);
  stroke-width: 2.2;
}
.art-climb .pl {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}
.is-visible .art-climb .pl {
  animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.is-visible .art-climb .pl2 {
  animation-delay: 0.25s;
}
.is-visible .art-climb .pl3 {
  animation-delay: 0.5s;
}
@keyframes pop {
  to {
    transform: scale(1);
  }
}

/* ---------- space theme across the page ---------- */
/* section labels open with a little sparkle */
.section-head > .eyebrow::before,
.work-head .eyebrow::before,
.about-copy > .eyebrow::before,
.contact-copy > .eyebrow::before,
.hero-copy > .eyebrow::before {
  content: '';
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.55em;
  vertical-align: -2px;
  background: currentColor;
  clip-path: var(--sparkle);
}
/* float and twinkle of the hand-drawn art (work divider, illustrations, about panel) */
@keyframes dl-float {
  from {
    transform: translateY(-5px) rotate(-3deg);
  }
  to {
    transform: translateY(6px) rotate(3deg);
  }
}
@keyframes dl-twinkle {
  from {
    transform: scale(0.7) rotate(0deg);
  }
  to {
    transform: scale(1.1) rotate(20deg);
  }
}

.quote-wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

/* contact: a calmer starfield with a small ringed planet */
.space--contact .planet-ring {
  stroke-width: 6;
}
.space--contact .moon-dot {
  fill: #c0ebf1;
  opacity: 0.8;
}

/* ---------- services ---------- */
.service-grid {
  display: grid;
  gap: 56px;
}
@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}
.service h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--on-surface) !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 24px;
}
.service > p {
  font-size: 16px;
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
}
.service .badge {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tertiary);
  border: 1px solid rgba(0, 104, 112, 0.35);
  border-radius: var(--r-sm);
  padding: 3px 8px;
  font-weight: 500;
}

/* illustration shared parts */
.service-art {
  width: 100%;
  height: auto;
  overflow: visible;
}
.service-art * {
  vector-effect: non-scaling-stroke;
}
.art-blob {
  fill: var(--raised);
  transform-box: fill-box;
  transform-origin: center;
}
/* the illustrations sit on their own light panel so they don't melt into the tinted band;
   the panel starts lower, so the top of each picture breaks out of the frame */
.service-visual {
  position: relative;
  isolation: isolate;
}
.service-visual::before {
  content: '';
  position: absolute;
  inset: 16% 0 0;
  z-index: -1;
  background: #aedfdd;
  border-radius: var(--r-md);
  box-shadow: 0 12px 28px -22px rgba(5, 26, 45, 0.22);
}
.service-art {
  display: block;
  padding: 0 8px 8px;
}
.service-art .paper,
.service-art .chat rect,
.service-art .cart-card rect,
.service-art .tag-code rect,
.service-art .bubble rect,
.service-art .done-card .paper {
  fill: var(--raised);
  stroke: var(--art-ink);
  stroke-width: 2.2;
}
.service-art .bar {
  fill: var(--primary);
  stroke: var(--art-ink);
  stroke-width: 2.2;
}
.service-art .dot {
  fill: var(--raised);
}
.service-art .dot-dk {
  fill: var(--art-ink);
}
.service-art .ln,
.service-art .chat path,
.service-art .curve,
.service-art .cart,
.service-art .tag-code path,
.service-art .bubble path {
  fill: none;
  stroke: var(--art-ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-art .chat path:first-of-type,
.service-art .bubble path:first-of-type {
  fill: var(--raised);
}
.service-art .img {
  fill: var(--secondary);
  stroke: var(--art-ink);
  stroke-width: 2.2;
}
.service-art .mount {
  fill: var(--primary);
  stroke: var(--art-ink);
  stroke-width: 2;
  stroke-linejoin: round;
}
.service-art .sun {
  fill: var(--raised);
  stroke: var(--art-ink);
  stroke-width: 2;
}
.service-art .sel {
  fill: none;
  stroke: var(--tertiary);
  stroke-width: 1.6;
  stroke-dasharray: 5 4;
}
.service-art .pill {
  fill: var(--primary);
  stroke: var(--art-ink);
  stroke-width: 2;
}
.service-art .pill--2 {
  fill: var(--secondary);
}
.service-art .node {
  fill: var(--raised);
  stroke: var(--art-ink);
  stroke-width: 2;
}
.service-art .pen path {
  fill: var(--primary);
  stroke: var(--art-ink);
  stroke-width: 2.2;
  stroke-linejoin: round;
}
.service-art .badge-plus circle {
  fill: var(--primary);
  stroke: var(--art-ink);
  stroke-width: 2;
}
.service-art .badge-plus path {
  stroke: var(--art-ink);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.service-art .gear {
  fill: var(--secondary);
  stroke: var(--art-ink);
  stroke-width: 2.2;
  stroke-linejoin: round;
}
.service-art .gear--dk {
  fill: #123d52;
  stroke: var(--primary);
  stroke-width: 1.6;
}
.service-art .gear-hole {
  fill: var(--raised);
  stroke: var(--art-ink);
  stroke-width: 2;
}
.service-art .floor {
  stroke: rgba(5, 26, 45, 0.18);
  stroke-width: 2;
  stroke-linecap: round;
}
.service-art .floor-pad {
  fill: rgba(5, 26, 45, 0.06);
}
.service-art .screen {
  fill: #0e3446;
  stroke: var(--art-ink);
  stroke-width: 2.4;
}
.service-art .code {
  stroke: var(--art-ink);
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 0;
}
.service-art .code.hl {
  stroke: var(--primary);
}
.service-art .puzzle path {
  fill: var(--primary);
  stroke: var(--art-ink);
  stroke-width: 2.2;
  stroke-linejoin: round;
}
.service-art .ico,
.service-art .ico-sm {
  fill: var(--secondary);
  stroke: var(--art-ink);
  stroke-width: 2;
}
.service-art .spark,
.service-art .check {
  fill: none;
  stroke: var(--tertiary);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-art .done-card text {
  font: 500 12px var(--font-mono);
  fill: var(--art-ink);
}
.service-art .track {
  fill: var(--border);
}
.service-art .fill {
  fill: var(--primary);
  transform-box: fill-box;
  transform-origin: left center;
}
.service-art .r1 .fill {
  transform: scaleX(0.45);
}
.service-art .r2 .fill {
  transform: scaleX(0.85);
}
.service-art .r3 .fill {
  transform: scaleX(0.7);
}
.service-art .books rect {
  fill: var(--primary);
}
.service-art .books rect:nth-child(3n) {
  fill: var(--secondary);
}
.service-art .books rect:nth-child(4n) {
  fill: var(--tertiary);
}
.service-art .tdot {
  fill: var(--tertiary);
}
.service-art .heart path {
  fill: var(--primary);
  stroke: var(--art-ink);
  stroke-width: 2.2;
  stroke-linejoin: round;
}

/* everything that moves gets a fill-box origin */
.service-art g,
.service-art .gear,
.service-art .spin {
  transform-box: fill-box;
  transform-origin: center;
}

/* motion – runs once the card is in view */
.service.is-visible .art-blob {
  animation: blob 12s ease-in-out infinite;
}
.service.is-visible .chat {
  animation: bob 5s ease-in-out infinite;
}
.service.is-visible .pen {
  animation: pen-draw 4s ease-in-out infinite;
}
.service.is-visible .sel {
  animation: march 1s linear infinite;
}
.service.is-visible .cart-card {
  animation: bob 6s ease-in-out -2s infinite;
}
.service.is-visible .badge-plus {
  animation: pop 3s ease-in-out infinite;
}

.service.is-visible .g1 .spin {
  animation: spin 10s linear infinite;
}
.service.is-visible .g2 .spin {
  animation: spin 7s linear infinite reverse;
}
.service.is-visible .code {
  animation: code-type 6s ease-in-out infinite;
}
.service.is-visible .c2 {
  animation-delay: 0.2s;
}
.service.is-visible .c3 {
  animation-delay: 0.4s;
}
.service.is-visible .c4 {
  animation-delay: 0.6s;
}
.service.is-visible .c5 {
  animation-delay: 0.8s;
}
.service.is-visible .c6 {
  animation-delay: 1s;
}
.service.is-visible .c7 {
  animation-delay: 1.2s;
}
.service.is-visible .c8 {
  animation-delay: 1.4s;
}
.service.is-visible .c9 {
  animation-delay: 1.6s;
}
.service.is-visible .layout-win {
  animation: bob 6s ease-in-out infinite;
}
.service.is-visible .tag-code {
  animation: bob 5s ease-in-out -1.5s infinite;
}
.service.is-visible .puzzle {
  animation: snap 4s var(--ease-out) infinite;
}

.service.is-visible .r1 .fill {
  animation: fill-45 4.5s var(--ease-out) infinite;
}
.service.is-visible .r2 .fill {
  animation: fill-85 4.5s var(--ease-out) 0.2s infinite;
}
.service.is-visible .r3 .fill {
  animation: fill-70 4.5s var(--ease-out) 0.4s infinite;
}
.service.is-visible .b-left {
  animation: chat-a 6s ease-in-out infinite;
}
.service.is-visible .b-right {
  animation: chat-b 6s ease-in-out infinite;
}
.service.is-visible .tdot {
  animation: blink-soft 1.2s ease-in-out infinite;
}
.service.is-visible .tdot:nth-of-type(2) {
  animation-delay: 0.2s;
}
.service.is-visible .tdot:nth-of-type(3) {
  animation-delay: 0.4s;
}
.service.is-visible .heart {
  animation: beat 2s ease-in-out infinite;
}
.service:hover .service-art .art-blob {
  animation-duration: 4s;
}

/* space props inside the service illustrations */
/* groups positioned with an SVG transform attribute keep their own origin */
.service-art g[transform] {
  transform-box: view-box;
  transform-origin: 0 0;
}
.service-art .sp {
  transform-box: fill-box;
  transform-origin: center;
  fill: var(--primary);
  stroke: var(--art-ink);
  stroke-width: 1.8;
  stroke-linejoin: round;
  animation: dl-twinkle 2.8s ease-in-out infinite alternate;
}
.service-art .sp--2 {
  fill: var(--secondary);
  animation-delay: -1.4s;
}
.service-art .svc-rocket-in {
  animation: svc-lift 3s ease-in-out infinite alternate;
}
@keyframes svc-lift {
  from {
    transform: translate(-3px, 0);
  }
  to {
    transform: translate(5px, 0);
  }
}
.service-art .pl-body {
  fill: #7fc8f0;
  stroke: var(--art-ink);
  stroke-width: 2.2;
}
.service-art .pl-band {
  fill: none;
  stroke: rgba(5, 26, 45, 0.35);
  stroke-width: 2;
  stroke-linecap: round;
}
.service-art .pl-ring,
.service-art .pl-ring-back {
  fill: none;
  stroke: var(--art-ink);
  stroke-width: 2.2;
}
.service.is-visible .svc-planet {
  animation: bob 6s ease-in-out -1s infinite;
}
.service-art .svc-orbit {
  fill: none;
  stroke: rgba(5, 26, 45, 0.3);
  stroke-width: 1.6;
  stroke-dasharray: 3 6;
}
.service-art .svc-moon circle {
  fill: var(--primary);
  stroke: var(--art-ink);
  stroke-width: 2;
}
.service-art .svc-moon .mc {
  fill: var(--art-ink);
  stroke: none;
  opacity: 0.35;
}
.service-art .sp-panel {
  fill: var(--secondary);
  stroke: var(--art-ink);
  stroke-width: 2;
}
.service-art .sp-grid {
  fill: none;
  stroke: var(--art-ink);
  stroke-width: 1.1;
  opacity: 0.5;
}
.service-art .sp-arm {
  stroke: var(--art-ink);
  stroke-width: 2.2;
}
.service-art .sp-core,
.service-art .sp-dish {
  fill: var(--raised);
  stroke: var(--art-ink);
  stroke-width: 2.2;
}
.service-art .sp-win {
  fill: var(--primary);
  stroke: var(--art-ink);
  stroke-width: 1.8;
}
.service.is-visible .svc-sat-in {
  animation: sat-drift 6s ease-in-out infinite alternate;
}
.service-art .signal path {
  fill: none;
  stroke: var(--tertiary);
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0;
}
.service.is-visible .signal path {
  animation: signal 2.4s ease-out infinite;
}
.service.is-visible .signal path:nth-child(2) {
  animation-delay: 0.3s;
}
.service.is-visible .signal path:nth-child(3) {
  animation-delay: 0.6s;
}
@keyframes signal {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* flow arrows into the CTA */
.service-flow {
  display: none;
  width: 100%;
  height: 90px;
  margin: 48px auto 0;
  overflow: visible;
}
.service-flow path {
  fill: none;
  stroke: #b5cbcf;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.service-flow path:not(.tip) {
  stroke-dasharray: 8 8;
  animation: flow 1.2s linear infinite;
}
.service-flow .tip {
  fill: #b5cbcf;
  stroke: none;
}
@media (min-width: 900px) {
  .service-flow {
    display: block;
  }
}

.services-cta {
  text-align: center;
  margin: 40px auto 0;
  max-width: 640px;
}
.services-cta p {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.4;
  font-weight: 400;
  color: var(--on-surface);
  margin: 0 0 28px;
}
.services-cta .btn svg,
.process-cta .btn svg,
.process-launch .btn svg,
.footer-cta .btn svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--fast) ease;
}
.services-cta .btn:hover svg,
.process-cta .btn:hover svg,
.process-launch .btn:hover svg,
.footer-cta .btn:hover svg {
  transform: translateX(4px);
}

.tech {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 40px;
}
.tech li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--muted);
  opacity: 0.8;
  transition:
    opacity var(--fast) ease,
    color var(--fast) ease;
}
.tech li:hover {
  opacity: 1;
  color: var(--on-surface);
}
.tech svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}
.tech .tech--wide svg {
  width: auto;
  height: 24px;
  aspect-ratio: 24 / 4.84;
}
.tech li:last-child:hover svg {
  animation: spin 3s linear infinite;
}

@keyframes blob {
  0%,
  100% {
    transform: scale(1) rotate(0);
  }
  50% {
    transform: scale(1.04, 0.97) rotate(2deg);
  }
}
@keyframes pen-draw {
  0%,
  100% {
    transform: translate(0, 0);
  }
  30% {
    transform: translate(-18px, 10px);
  }
  60% {
    transform: translate(8px, 22px);
  }
}
@keyframes march {
  to {
    stroke-dashoffset: -18;
  }
}
@keyframes pop {
  0%,
  70%,
  100% {
    transform: scale(1);
  }
  80% {
    transform: scale(1.35);
  }
}
@keyframes lift {
  50% {
    transform: translateY(-5px);
  }
}
@keyframes code-type {
  0% {
    stroke-dashoffset: 60;
  }
  30%,
  85% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 60;
  }
}
@keyframes snap {
  0% {
    transform: translate(18px, 14px) rotate(8deg);
    opacity: 0;
  }
  25%,
  85% {
    transform: none;
    opacity: 1;
  }
  100% {
    transform: none;
    opacity: 0;
  }
}
@keyframes swing {
  0%,
  100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
}
@keyframes fill-45 {
  0% {
    transform: scaleX(0);
  }
  40%,
  90% {
    transform: scaleX(0.45);
  }
  100% {
    transform: scaleX(0);
  }
}
@keyframes fill-85 {
  0% {
    transform: scaleX(0);
  }
  40%,
  90% {
    transform: scaleX(0.85);
  }
  100% {
    transform: scaleX(0);
  }
}
@keyframes fill-70 {
  0% {
    transform: scaleX(0);
  }
  40%,
  90% {
    transform: scaleX(0.7);
  }
  100% {
    transform: scaleX(0);
  }
}
@keyframes chat-a {
  0%,
  45% {
    opacity: 1;
    transform: none;
  }
  55%,
  90% {
    opacity: 0.35;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes chat-b {
  0%,
  45% {
    opacity: 0.35;
    transform: translateY(4px);
  }
  55%,
  90% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0.35;
    transform: translateY(4px);
  }
}
@keyframes flow {
  to {
    stroke-dashoffset: -16;
  }
}
@keyframes blink-soft {
  50% {
    opacity: 0.35;
  }
}
@keyframes beat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* ---------- work: first block after the hero – one featured case + three ---------- */
.work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 40px;
}
.work-head h2 {
  margin: 0 0 8px;
}
.work-head p:last-child {
  margin: 0;
  color: var(--muted);
}
.work-more {
  margin-top: 88px;
  max-width: none;
}
.work-divider {
  display: block;
  width: min(100%, 640px);
  height: auto;
  margin: 0 auto 40px;
  overflow: visible;
}
.work-divider .wd-line {
  fill: none;
  stroke: rgba(5, 26, 45, 0.28);
  stroke-width: 1.6;
  stroke-dasharray: 3 7;
  stroke-linecap: round;
}
.work-divider .wd-spark {
  fill: var(--primary);
  stroke: var(--art-ink);
  stroke-width: 1.4;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
  animation: dl-twinkle 2.8s ease-in-out infinite alternate;
}
.work-divider .wd-spark--2 {
  fill: var(--raised);
  animation-delay: -1.4s;
}
.work-divider .wd-body {
  fill: #7fc8f0;
  stroke: var(--art-ink);
  stroke-width: 2;
}
.work-divider .wd-band {
  fill: none;
  stroke: rgba(5, 26, 45, 0.3);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.work-divider .wd-ring {
  fill: none;
  stroke: var(--art-ink);
  stroke-width: 2;
}
.work-divider .wd-planet {
  transform-box: fill-box;
  transform-origin: center;
  animation: dl-float 8s ease-in-out infinite alternate;
}
.work-more p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 767px) {
  .work-more {
    margin-top: 64px;
  }
  .work-divider {
    margin-bottom: 28px;
  }
}

.work {
  --frame: #aedfdd; /* same mint as the service + about panels */
  text-decoration: none;
  display: block;
  color: var(--on-surface);
}
.work-frame {
  background: var(--frame);
  border-radius: var(--r-md) var(--r-md) 0 0;
  padding: 28px 28px 0;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
/* concentric rings from the top-right corner – gives each frame a bit of depth */
.work-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-radial-gradient(circle at 100% 0, transparent 0 34px, rgba(252, 254, 255, 0.13) 34px 35px);
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000, transparent 75%);
  mask-image: radial-gradient(circle at 100% 0, #000, transparent 75%);
}

/* két képernyőkép egymásba csúsztatva + mobilkép elöl – egy egységként mozog */
.work-stack {
  position: relative;
  aspect-ratio: 16 / 10;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 400ms var(--ease-out);
}
.shot {
  position: absolute;
  box-shadow: var(--shadow-frame);
  font-size: 11px;
  padding: 12px;
  transition: transform var(--slow) var(--ease-out);
}
.shot--back {
  left: 0;
  right: 38%;
  top: 20%;
  bottom: 0;
  border-radius: var(--r-md) var(--r-md) 0 0;
  place-items: start;
  text-align: left;
}
.shot--back span {
  max-width: 40%;
}
.shot--front {
  left: 30%;
  right: 8%;
  top: 4%;
  bottom: 0;
  border-radius: var(--r-md) var(--r-md) 0 0;
  z-index: 1;
}
.shot--phone {
  right: 0;
  bottom: 6%;
  width: 19%;
  aspect-ratio: 9 / 19.5;
  z-index: 2;
  border-radius: 14px;
  border: 4px solid var(--trench);
  outline: 1px solid var(--line-on-dark);
  padding: 6px;
  font-size: 9px;
  box-shadow: 0 18px 30px -16px rgba(5, 26, 45, 0.35);
}
.shot--phone::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  width: 30%;
  height: 4px;
  border-radius: 4px;
  background: var(--trench);
  transform: translateX(-50%);
}
.shot--back,
.shot--front {
  transform: translateY(14px);
}
.work:hover .shot--front {
  transform: translateY(0);
}
.work:hover .shot--back {
  transform: translateY(4px) translateX(-6px);
}
.work:hover .shot--phone {
  transform: translateY(-10px) rotate(2deg);
}

/* the stack assembles itself when it scrolls in (uses `translate`, so hover `transform` stays free) */
.js .work.is-visible .shot--back {
  animation: shot-in-back 0.9s var(--ease-out) calc(var(--rd, 0ms) + 150ms) backwards;
}
.js .work.is-visible .shot--front {
  animation: shot-in-front 0.9s var(--ease-out) calc(var(--rd, 0ms) + 50ms) backwards;
}
.js .work.is-visible .shot--phone {
  animation: shot-in-phone 1s var(--ease-out) calc(var(--rd, 0ms) + 400ms) backwards;
}
@keyframes shot-in-back {
  from {
    translate: -40px 30px;
    opacity: 0;
  }
}
@keyframes shot-in-front {
  from {
    translate: 0 60px;
    opacity: 0;
  }
}
@keyframes shot-in-phone {
  from {
    translate: 30px 80px;
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .shot {
    font-size: 9px;
    padding: 8px;
  }
  .shot--phone {
    font-size: 7px;
    border-width: 3px;
    border-radius: 10px;
  }
}

/* frame tones: on the dark/teal frames the placeholders stay dark; on the pale frame they lighten up */
.work-frame .placeholder {
  color: var(--footer-text);
  border-color: var(--line-on-dark);
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(0, 194, 203, 0.06) 10px 11px), var(--trench);
}
.work-frame .shot--phone.placeholder {
  background-color: var(--trench);
}

.work h3 {
  font-size: 19px;
  margin: 0;
  transition: color var(--fast) ease;
}
.work:hover h3 {
  color: var(--tertiary);
}

/* featured case: stack left, story right */
.work--feature {
  margin-bottom: 56px;
}
.work--feature .work-frame {
  margin-bottom: 24px;
}
.work-body {
  position: relative;
}
.work--feature h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  margin-bottom: 14px;
}
.work-lead {
  color: var(--muted);
  margin: 0 0 4px;
  max-width: 46ch;
}
.work--feature .link-arrow {
  margin-top: 24px;
}
@media (min-width: 992px) {
  .work--feature {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 56px;
    align-items: center;
  }
  .work--feature .work-frame {
    margin-bottom: 0;
    padding: 40px 40px 0;
  }
}

.work-grid {
  display: grid;
  gap: 40px 32px;
  margin-bottom: var(--s-lg);
}
@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .work-grid .work-frame {
    padding: 18px 18px 0;
  }
}
.section-light .link-arrow svg {
  stroke: var(--tertiary);
}

/* ---------- about: team panel (after new.weart.hu) + copy + stats ---------- */
.about {
  overflow-x: clip;
}
.about-grid {
  display: grid;
  gap: 56px;
  align-items: center;
  position: relative;
}
@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
  }
}

.team-visual {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 10 / 11;
  margin: 0 auto;
}
.team-panel {
  position: absolute;
  inset: 11% 6% 9% 4%;
  background: #aedfdd;
  border-radius: var(--r-md);
  box-shadow: 0 14px 32px -24px rgba(5, 26, 45, 0.22);
  overflow: hidden;
}
.team-space {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.team-space .ts-stars circle {
  fill: #f2fbfc;
  animation: twinkle var(--tw, 3.4s) ease-in-out infinite alternate;
}
.team-space .ts-stars circle:nth-child(3n) {
  --tw: 2.6s;
  animation-delay: -1.2s;
}
.team-space .ts-stars circle:nth-child(3n + 1) {
  --tw: 4.2s;
  animation-delay: -2.1s;
}
.team-space .pl-body {
  fill: #7fc8f0;
  stroke: var(--art-ink);
  stroke-width: 2.2;
}
.team-space .pl-band {
  fill: none;
  stroke: rgba(5, 26, 45, 0.3);
  stroke-width: 2;
  stroke-linecap: round;
}
.team-space .pl-crater {
  fill: rgba(5, 26, 45, 0.14);
}
.team-space .pl-ring,
.team-space .pl-ring-back {
  fill: none;
  stroke: var(--art-ink);
  stroke-width: 2.2;
}
.team-space .ts-planet {
  transform-box: fill-box;
  transform-origin: center;
  animation: dl-float 9s ease-in-out infinite alternate;
}
.team-space .ts-moon {
  transform-box: fill-box;
  transform-origin: center;
  animation: dl-float 7s ease-in-out -2s infinite alternate;
}
.team-space .ts-moon .mn {
  fill: var(--raised);
  stroke: var(--art-ink);
  stroke-width: 2;
}
.team-space .ts-moon .mc {
  fill: var(--art-ink);
  opacity: 0.3;
}
.team-space .r-hull {
  fill: var(--raised);
  stroke: var(--abyss);
  stroke-width: 2.2;
}
.team-space .r-nose {
  fill: #7fc8f0;
  stroke: var(--abyss);
  stroke-width: 2.2;
}
.team-space .r-fin {
  fill: #3b8fd9;
  stroke: var(--abyss);
  stroke-width: 2;
}
.team-space .r-window {
  fill: #9ed6f5;
  stroke: var(--abyss);
  stroke-width: 2;
}
.team-space .r-trail {
  fill: #3b8fd9;
  opacity: 0.55;
  transform-box: fill-box;
  transform-origin: right center;
  animation: plume 0.22s ease-in-out infinite alternate;
}
.team-space .r-flame {
  fill: #c0ebf1;
  transform-box: fill-box;
  transform-origin: right center;
  animation: flame 0.18s ease-in-out infinite alternate;
}
.team-space .svc-rocket-in {
  animation: svc-lift 3s ease-in-out infinite alternate;
}
.team-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.team-net path {
  fill: none;
  stroke: #c1ebf1;
  stroke-width: 2;
  stroke-dasharray: 5 6;
  stroke-linecap: round;
  animation: flow 2.4s linear infinite reverse;
}
.team-net .node-start {
  fill: #aedfdd;
  stroke: #c1ebf1;
  stroke-width: 2;
}
.team-net .node-end {
  fill: #c1ebf1;
}

.team-member {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 18px;
}
.team-member--lead {
  left: 0;
  top: 0;
  width: 100%;
}
.team-member--side {
  right: 0;
  bottom: 0;
  width: 100%;
  justify-content: flex-end;
}
.team-photo {
  position: relative;
  flex: none;
}
.team-member--lead .team-photo {
  width: 54%;
}
.team-member--side .team-photo {
  width: 40%;
}
.placeholder--round {
  border-radius: 50%;
}
.team-photo .placeholder {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  font-size: 11px;
  background-color: #eaf4f5;
}
.team-orbit {
  position: absolute;
  inset: -11%;
  width: 122%;
  height: 122%;
  overflow: visible;
  animation: spin 40s linear infinite;
  pointer-events: none;
}
.team-orbit circle {
  fill: none;
  stroke: var(--abyss);
  stroke-width: 0.4;
  stroke-dasharray: 1 2.5;
  opacity: 0.55;
}
.team-member--side .team-orbit {
  animation-direction: reverse;
}

.team-name {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.25;
}
.team-name strong {
  font-size: clamp(17px, 1.6vw, 20px);
  letter-spacing: -0.01em;
  color: var(--on-surface);
}
.team-name span {
  font-size: 14px;
  color: var(--muted);
}
.team-member--lead .team-name {
  margin-top: 12%;
}
.team-member--side .team-name {
  margin-bottom: 14%;
  margin-right: auto;
  padding-left: 9%;
}

.about-copy h2 {
  margin: 0 0 28px;
}
.about-cols {
  display: grid;
  gap: 16px 40px;
}
.about-cols p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.about-cols .link-arrow {
  margin-top: 20px;
}
@media (min-width: 640px) {
  .about-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 36px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(5, auto);
    justify-content: space-between;
  }
}
.stats div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
}
.stats dd {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--on-surface);
  font-variant-numeric: tabular-nums;
}
.stats dt {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
@media (max-width: 639px) {
  .stats div:last-child {
    grid-column: span 2;
  }
}

/* ---------- testimonials: one quote at a time, manual slider ---------- */
.quote-slider {
  max-width: 860px;
  margin: 0 auto;
}
.slider-track {
  position: relative;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  align-items: flex-start;
  transition: height 350ms var(--ease-out);
}
.slider-track::-webkit-scrollbar {
  display: none;
}
.slider-track:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 6px;
  border-radius: var(--r-md);
}
.quote {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  padding: 48px 8px 0 72px;
  scroll-snap-align: center;
}
.tq-mark {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: 132px;
  overflow: visible;
  pointer-events: none;
}
.tq-mark path {
  fill: rgba(0, 194, 203, 0.2);
  stroke: none;
}
.quote blockquote {
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.55;
  color: var(--on-surface);
}
.quote figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
}
/* no portraits: a short accent rule leads into the name, level with it */
.quote figcaption::before {
  content: '';
  flex: none;
  align-self: flex-start;
  margin-top: 13px;
  width: 32px;
  height: 2px;
  border-radius: 1px;
  background: var(--primary);
}
.quote figcaption strong {
  display: block;
  color: var(--on-surface);
  font-size: 16px;
}

.qs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.qs-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: var(--raised);
  border: 1px solid var(--border);
  color: var(--on-surface);
  transition:
    border-color var(--fast) ease,
    color var(--fast) ease,
    opacity var(--fast) ease;
}
.qs-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qs-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--tertiary);
}
.qs-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.qs-dots {
  display: flex;
  gap: 8px;
}
.qs-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--border);
  cursor: pointer;
  transition:
    width 300ms var(--ease-out),
    background-color 300ms ease;
}
.qs-dot[aria-current='true'] {
  width: 28px;
  background: var(--primary);
}

@media (max-width: 767px) {
  .quote {
    padding: 40px 4px 0 28px;
  }
  .tq-mark {
    width: 96px;
  }
  .qs-nav {
    margin-top: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .slider-track {
    scroll-behavior: auto;
  }
}

/* ---------- faq ---------- */
/* centered, same measure as the testimonial slider */
.faq-grid {
  max-width: calc(860px + 64px);
}
.faq-grid .section-head {
  margin-bottom: 40px;
}
/* same line length as the testimonial text (.quote padding: 72px left, 8px right) */
.faq {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 8px 0 72px;
}
@media (max-width: 767px) {
  .faq {
    padding: 0 4px 0 28px;
  }
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 700;
  font-size: 17px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006870' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  transition:
    transform 250ms var(--ease-out),
    background-color var(--fast) ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--secondary);
}
.faq summary:hover {
  color: var(--tertiary);
}
.faq .faq-body {
  overflow: hidden;
  transition: height 250ms var(--ease-out);
}
.faq details p {
  color: var(--muted);
  padding-bottom: 20px;
  margin: 0;
  max-width: 62ch;
}

/* ---------- contact ---------- */
.contact {
  overflow: hidden;
}
/* the contact page: the section is the page heading, room for the fixed header like the subpage hero */
.contact--page {
  padding-top: 160px;
}
@media (min-width: 992px) {
  .contact--page {
    padding-top: 184px;
  }
}
.contact-grid {
  display: grid;
  gap: 48px;
  position: relative;
  z-index: 1;
}
@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
}
.contact-direct {
  list-style: none;
  padding: 0;
  margin: 32px 0 16px;
  display: grid;
  gap: 14px;
}
.contact-direct li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 700;
}
.contact-direct svg {
  width: 22px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-direct a {
  text-decoration: none;
}
.contact-direct a:hover {
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 4px;
}
.contact-person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  max-width: 440px;
}
.contact-avatar {
  width: 72px;
  height: 72px;
  flex: none;
  font-size: 9px;
  line-height: 1.3;
  gap: 2px;
}
.contact-avatar svg {
  width: 24px;
}
.contact .contact-avatar {
  border: 1px solid rgba(0, 194, 203, 0.55);
  box-shadow: 0 0 0 5px rgba(0, 194, 203, 0.1);
}
.contact-person p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--footer-text);
}
.contact-person strong {
  font-size: 17px;
  color: var(--on-dark);
  letter-spacing: -0.01em;
}

.contact-form {
  color: var(--on-dark);
}
.field {
  margin-bottom: 16px;
}
.form-grid {
  display: grid;
  gap: 0 16px;
}
@media (min-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid .field {
    grid-column: 1 / -1;
  }
  .form-grid .field--half {
    grid-column: auto;
  }
}
.field[hidden] {
  display: none;
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--raised);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: 400 16px/1.5 var(--font-sans);
  color: var(--raised);
  background: #0e2639;
  border: 1px solid #5a7280;
  border-radius: var(--r-sm);
  padding: 12px;
  transition:
    border-color var(--fast) ease,
    box-shadow var(--fast) ease;
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 194, 203, 0.2);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #f2978e;
}
.field .error-msg {
  display: block;
  color: #f2978e;
  font-size: 14px;
  margin-top: 4px;
}
.field .field-desc {
  display: block;
  color: var(--footer-text);
  font-size: 13px;
  margin-top: 4px;
}
.form-status {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
.form-status:empty {
  display: none;
}
.form-hint {
  font-size: 13px;
  color: var(--footer-text);
  margin: 8px 0 0;
  text-align: center;
}
.field ::placeholder {
  color: var(--footer-text);
}
.field option {
  color: var(--on-surface);
  background: var(--raised);
}

/* ---------- footer cta: the band above the footer that leads to the contact page ---------- */
.footer-cta {
  overflow: hidden;
  border-bottom: 1px solid var(--line-on-dark);
}
@media (min-width: 992px) {
  .footer-cta {
    padding: var(--s-xl) 0;
  }
}
.space--cta .moon-dot {
  fill: #c0ebf1;
  opacity: 0.8;
}
.footer-cta-inner {
  display: grid;
  gap: var(--s-lg);
  position: relative;
  z-index: 1;
}
@media (min-width: 992px) {
  .footer-cta-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--s-xl);
  }
}
.footer-cta-copy h2 {
  margin: 0 0 12px;
}
.footer-cta-copy > p:last-child {
  margin: 0;
  max-width: 52ch;
}
.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-md) var(--s-lg);
}
.footer-cta-mail {
  font-weight: 700;
  text-decoration: none;
}
.footer-cta-mail:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--trench);
  color: var(--footer-text);
  padding: 40px 0 96px;
  font-size: 14px;
}
@media (min-width: 768px) {
  .site-footer {
    padding-bottom: 40px;
  }
}
.footer-inner {
  display: grid;
  gap: 16px;
  text-align: center;
  justify-items: center;
}
.footer-inner p {
  margin: 0;
  max-width: 60ch;
}
.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}
.footer-inner a {
  color: var(--on-dark);
  text-decoration: none;
}
.footer-inner a:hover {
  color: var(--primary);
}

/* mobile sticky CTA */
.mobile-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  transform: translateY(150%);
  transition: transform 350ms var(--ease-out);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.28);
}
.mobile-cta.is-shown {
  transform: none;
}
@media (min-width: 768px) {
  .mobile-cta {
    display: none;
  }
}

/* ---------- reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- keyframes ---------- */
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes dash-in {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes grow-x {
  to {
    transform: scaleX(1);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes bob {
  50% {
    translate: 0 -10px;
  }
}
@keyframes whoosh {
  0% {
    transform: translateX(6px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(-6px);
    opacity: 0;
  }
}
@keyframes type-line {
  0% {
    stroke-dashoffset: 40;
  }
  25%,
  80% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 40;
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes pulse {
  0% {
    box-shadow:
      0 0 0 8px var(--surface),
      0 0 0 8px rgba(0, 194, 203, 0.5);
  }
  100% {
    box-shadow:
      0 0 0 8px var(--surface),
      0 0 0 24px rgba(0, 194, 203, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
  .benefit-art *,
  .is-visible .benefit-art * {
    animation: none !important;
  }
  .art-launch .launch {
    opacity: 1;
  }
  .art-float .doc-line,
  .art-sat .ok {
    stroke-dashoffset: 0;
  }
  .art-sat .panel,
  .art-climb .pl {
    transform: none;
  }
  .float-card,
  .hero-glow span,
  .stars *,
  .shooting,
  .rocket-flame,
  .rocket-body,
  .rocket-trail {
    animation: none;
  }
  .work-stack {
    transform: none !important;
  }
}

/* ---------- mobile: shorter page via swipeable rows ---------- */
@media (max-width: 767px) {
  .section {
    padding: 56px 0;
  }
  .work-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    margin: 0 -20px var(--s-lg);
    padding: 0 20px 12px;
    gap: 16px;
    scrollbar-width: none;
    scroll-padding-inline: 20px;
  }
  .work-grid::-webkit-scrollbar {
    display: none;
  }
  .work {
    scroll-snap-align: start;
  }
  .work-frame {
    padding: 18px 18px 0;
  }
  .benefit-art {
    width: 96px;
    height: 64px;
    margin-bottom: 12px;
  }
  .swipe-hint {
    display: block;
  }
}
.swipe-hint {
  display: none;
  font: 500 12px var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--footer-text);
  margin: -16px 0 24px;
}
@media (max-width: 767px) {
  .hero {
    padding-top: 112px;
  }
  /* phones: the portrait and the client quote on its bottom edge */
  .hero-visual {
    width: 340px;
    height: 430px;
  }
  .hero-portrait {
    left: 40px;
    top: 20px;
    width: 260px;
  }
  .quote-card {
    left: -6px;
    top: 300px;
    width: 260px;
  }
}
@media (max-width: 379px) {
  .hero-visual {
    scale: 0.86;
    margin: -30px auto;
  }
}

/* ---------- one continuous light canvas between a dark hero and a dark close ---------- */
body {
  background-color: var(--surface);
}
.section-light,
.section-raised {
  background: transparent;
}
.section-light > .container,
.section-raised > .container {
  position: relative;
}
/* calmer rhythm: light sections sit closer together */
.section-light + .section-light,
.section-light + .section-raised {
  padding-top: 24px;
}
@media (min-width: 992px) {
  .section-light + .section-light,
  .section-light + .section-raised {
    padding-top: 40px;
  }
}
/* hero melts into the page instead of ending on a hard edge */
.marquee-band {
  position: relative;
}
.marquee-band::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 80px;
  background: linear-gradient(rgba(5, 15, 25, 0.1), transparent);
  pointer-events: none;
}

/* faint tinted bands behind services + work; edges fade so blocks stay connected */
.section-light.section-tint {
  --tint: rgba(40, 125, 195, 0.08);
  background: linear-gradient(
    to bottom,
    transparent 0,
    var(--tint) 120px,
    var(--tint) calc(100% - 120px),
    transparent 100%
  );
  padding: var(--s-xl) 0;
}
@media (min-width: 992px) {
  .section-light.section-tint {
    padding: calc(var(--s-section) + 24px) 0;
  }
}
/* the work band sits right under the hero: start in the band colour, no white fade at the top */
.section-light.section-tint.work-section {
  background: linear-gradient(to bottom, var(--tint) 0, var(--tint) calc(100% - 120px), transparent 100%);
}
.section-tint + .section-light {
  padding-top: 24px;
}

.faq details {
  border-bottom-color: rgba(211, 225, 227, 0.7);
}
@media (prefers-reduced-motion: reduce) {
  .team-orbit,
  .team-net path,
  .team-space *,
  .work-divider * {
    animation: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-art *,
  .service.is-visible .service-art * {
    animation: none !important;
  }
  .service-art .code {
    stroke-dashoffset: 0;
  }
  .service-flow path {
    animation: none;
  }
}

/* testimonials → services: tighter hand-off (was ~216px of air) */
#velemenyek {
  padding-bottom: 24px;
}
.section-light.section-tint.services {
  padding-top: 72px;
}
@media (max-width: 767px) {
  .section-light.section-tint.services {
    padding-top: 48px;
  }
}

/* ---------- munkáink aloldal: kompakt hero + teljes projektrács ---------- */
.hero--page {
  min-height: 0;
  padding: 160px 0 var(--s-xl);
}
@media (min-width: 992px) {
  .hero--page {
    padding: 184px 0 var(--s-section);
  }
}
.page-hero {
  position: relative;
  z-index: 1;
}
.page-hero > * {
  max-width: 760px;
}
.page-hero h1 {
  text-wrap: balance;
}
/* with a photo: copy left, photo right on an offset frame with a glowing dot; the planet makes room */
.page-hero-visual {
  position: relative;
  max-width: 560px;
  margin-top: 48px;
}
.page-hero-photo {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
}
.page-hero-visual::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-lg);
}
.page-hero-visual::after {
  content: '';
  position: absolute;
  right: -22px;
  top: 34%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}
@media (min-width: 992px) {
  .page-hero--photo {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 72px;
    align-items: center;
  }
  .page-hero--photo > * {
    max-width: none;
  }
  .page-hero-visual {
    margin-top: 0;
  }
}
.hero--page-photo .space--page .planet,
.hero--page-photo .space--page .moon-dot {
  display: none;
}
.space--page .planet-ring {
  stroke-width: 7;
}
.space--page .moon-dot {
  fill: #c0ebf1;
  opacity: 0.8;
}
@media (max-width: 767px) {
  .space--page .planet {
    opacity: 0.5;
  }
}
/* same look as the home hero's numbers (.hero-proof / .hero-stat) */
.page-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 32px 0 0;
}
.page-stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}
.page-stats div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line-on-dark);
}
.page-stats dd {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.page-stats dt {
  font-size: 13px;
  line-height: 1.3;
  color: rgba(192, 235, 241, 0.7);
}

.work-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 15px/1.2 var(--font-sans);
  color: var(--on-surface);
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  cursor: pointer;
  transition:
    background-color var(--fast) ease,
    border-color var(--fast) ease,
    color var(--fast) ease;
}
.chip:hover {
  border-color: var(--tertiary);
}
.chip[aria-pressed='true'] {
  background: var(--abyss);
  border-color: var(--abyss);
  color: var(--raised);
}
.chip-count {
  font: 500 12px/1 var(--font-mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.chip[aria-pressed='true'] .chip-count {
  color: var(--primary);
}

.work-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 12px 0 0;
  padding: 0;
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--muted);
}
.work-tags li + li::before {
  content: '·';
  margin: 0 8px;
}
.work--feature .work-tags {
  margin-top: 16px;
}

/* a teljes rács: 2 oszlop tableten és desktopon (kevés projektnél nagyobb kártyák); mobilon egymás alatt, nem lapozós, mint a főoldalon */
.work-page .work-grid--all {
  gap: 56px 32px;
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .work-page .work-grid--all {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .work-page .work-grid--all {
    gap: 72px 48px;
  }
}
@media (max-width: 767px) {
  .work-page .work-grid--all {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
    margin: 0;
    padding: 0;
    gap: 48px;
  }
}

/* ---------- cikkszerű oldal (pl. Rólunk): szöveghasáb, a szövegbe ágyazott blokkok kicsit szélesebbek ---------- */
/* the first paragraph under the hero is the lead, as in an article */
@media (min-width: 768px) {
  .hero--page + .page-section .page-article > .prose:first-child > p:first-child {
    font-size: 21px;
    line-height: 1.6;
  }
}
.article-insert {
  max-width: 1000px;
  margin: 64px auto;
}
.article-insert--narrow {
  max-width: 760px;
}
.page-article > :first-child {
  margin-top: 0;
}
.page-article > :last-child {
  margin-bottom: 0;
}
/* text that leads into an insert ends on a colon: keep it close to what it introduces */
.page-article > .prose + .article-insert {
  margin-top: 40px;
}

/* benefits as a row between two hairlines */
.benefits-inline {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.benefits-inline .benefit-art {
  width: 96px;
  height: 64px;
  margin-bottom: 16px;
}
.benefits-inline .benefit h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

/* steps on a tinted panel */
.process-inline {
  padding: 36px 28px;
  border-radius: var(--r-lg);
  background: rgba(40, 125, 195, 0.07);
}
@media (min-width: 768px) {
  .process-inline {
    padding: 44px 48px;
  }
}
.process-inline .process-steps {
  max-width: none;
  gap: 28px;
}
/* the route ends at the button: the dashed line runs on from the last step to a rocket, set like a step with the
   button in place of the text */
.process-launch {
  position: relative;
  display: flow-root;
  min-height: 56px;
  margin-top: 28px;
  padding-left: 80px;
}
.process-launch p {
  margin: 14px 0 16px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--on-surface);
}
.process-launch-badge {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-full);
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(0, 194, 203, 0.16);
}
.launch-art {
  width: 38px;
  height: 38px;
  overflow: visible;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: translate 400ms var(--ease-out);
}
.process-launch:hover .launch-art {
  translate: 3px -3px;
}
/* phones: smaller numbers and panel padding, so the text keeps a readable width */
@media (max-width: 767px) {
  .process-inline {
    padding: 28px 18px;
  }
  .process-inline .process-step {
    min-height: 40px;
    padding-left: 56px;
  }
  .process-inline .process-num {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }
  .process-inline .process-step h3 {
    margin-top: 7px;
  }
  .process-inline .process-steps .process-step::after {
    left: 19px;
    top: 48px;
  }
  .process-launch {
    min-height: 40px;
    padding-left: 56px;
  }
  .process-launch p {
    margin-top: 7px;
  }
  .process-launch-badge {
    width: 40px;
    height: 40px;
  }
  .launch-art {
    width: 28px;
    height: 28px;
  }
}

.testimonials-inline .quote-slider {
  max-width: none;
}

/* photo next to a tinted text box (split), or wide with a caption */
.media-insert--split,
.media-insert--split-left {
  display: grid;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--secondary);
}
@media (min-width: 768px) {
  .media-insert--split,
  .media-insert--split-left {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
  .media-insert--split-left {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  }
  .media-insert--split-left .media-photo {
    order: -1;
  }
}
.media-copy {
  align-self: center;
  padding: 36px 28px;
}
@media (min-width: 992px) {
  .media-copy {
    padding: 56px 48px;
  }
}
.media-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.4vw, 28px);
}
.media-copy p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--abyss);
}
.media-copy p:last-child {
  margin-bottom: 0;
}
.media-insert--split .media-photo,
.media-insert--split-left .media-photo {
  min-height: 320px;
  border: 0;
}
@media (min-width: 768px) {
  .media-insert--split .media-photo,
  .media-insert--split-left .media-photo {
    min-height: 420px;
  }
}
.media-insert--wide {
  margin-left: auto;
  margin-right: auto;
}
.media-insert--wide .media-photo {
  aspect-ratio: 3 / 2;
  border-radius: var(--r-lg);
}
.media-insert--wide > figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* steps: a column joined by a dashed line, on desktop one row with the line running between the numbers */
.process-steps {
  display: grid;
  gap: 32px;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.process-step {
  position: relative;
  min-height: 56px;
  padding-left: 80px;
}
.process-num {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-full);
  background: var(--abyss);
  color: var(--primary);
  font-size: 15px;
  letter-spacing: 0.04em;
}
/* each stop a small planet: a faint orbit around the number, a moon going round it */
.process-num::before,
.process-num::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--r-full);
  pointer-events: none;
}
.process-num::before {
  border: 1px solid rgba(5, 26, 45, 0.16);
}
/* the moon sits on the orbit line: its box is 3.5px bigger than the orbit, the dot 3.5px in from the top */
.process-num::after {
  inset: -9.5px;
  background: radial-gradient(circle at 50% 3.5px, var(--primary) 0 3.5px, transparent 4px);
  animation: spin 14s linear infinite;
}
.process-step:nth-child(2n) .process-num::after {
  animation-duration: 18s;
  animation-direction: reverse;
}
.process-step:nth-child(3n) .process-num::after {
  animation-delay: -6s;
}
@media (prefers-reduced-motion: reduce) {
  .process-num::after {
    animation: none;
    rotate: 40deg;
  }
}
.process-step h3 {
  margin: 14px 0 8px;
  font-size: 19px;
}
.process-step p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
.process-step:not(:last-child)::after,
:where(.process-inline:has(.process-launch)) .process-step:last-child::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 64px;
  bottom: -24px;
  border-left: 1.5px dashed rgba(5, 26, 45, 0.3);
  transform-origin: top;
}
@media (min-width: 1100px) {
  .process-steps:not(.process-steps--column) {
    grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr));
    max-width: none;
  }
  .process-steps:not(.process-steps--column) .process-step {
    padding: 80px 0 0;
  }
  .process-steps:not(.process-steps--column) h3 {
    margin-top: 0;
  }
  .process-steps:not(.process-steps--column) .process-step:not(:last-child)::after {
    left: 68px;
    right: -20px;
    top: 28px;
    bottom: auto;
    border-left: 0;
    border-top: 1.5px dashed rgba(5, 26, 45, 0.3);
    transform-origin: left;
  }
}
/* the line draws itself once the step has come in */
.js .process-step::after {
  scale: 1 0;
  transition: scale 600ms var(--ease-out) calc(var(--rd, 0ms) + 350ms);
}
@media (min-width: 1100px) {
  .js .process-steps:where(:not(.process-steps--column)) .process-step::after {
    scale: 0 1;
  }
}
.js .process-step.is-visible::after {
  scale: 1;
}
@media (prefers-reduced-motion: reduce) {
  .js .process-steps .process-step::after {
    scale: 1;
    transition: none;
  }
}
.process-cta {
  margin: 48px 0 0;
  text-align: center;
}
.process-cta p {
  margin: 0 0 20px;
  font-size: 19px;
  font-weight: 700;
}

/* ---------- blog: cikkkártyák, lapozó, záró CTA ---------- */
.post-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 768px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--raised);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--on-surface);
}
.post-cover {
  aspect-ratio: 16 / 9;
  border: 0;
  border-bottom: 1px dashed #b5cbcf;
}
.post-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 28px 28px;
}
.post-card h3 {
  font-size: 20px;
  margin: 0 0 10px;
  text-wrap: balance;
  transition: color var(--fast) ease;
}
.post-card:hover h3 {
  color: var(--tertiary);
}
.post-excerpt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.post-meta {
  margin: auto 0 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.post-card--feature {
  margin-bottom: 32px;
}
.post-card--feature .post-body {
  padding: 32px;
}
.post-card--feature h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  margin-bottom: 14px;
}
.post-card--feature .post-excerpt {
  font-size: 16px;
  max-width: 46ch;
}
.post-card--feature .post-meta {
  margin: 0 0 28px;
}
.post-card--feature .link-arrow {
  align-self: flex-start;
}
@media (min-width: 992px) {
  .post-card--feature {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
  }
  .post-card--feature .post-cover {
    aspect-ratio: auto;
    min-height: 380px;
    border-bottom: 0;
    border-right: 1px dashed #b5cbcf;
  }
  .post-card--feature .post-body {
    padding: 48px;
    justify-content: center;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
}
.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--raised);
  color: var(--on-surface);
  text-decoration: none;
  font-size: 14px;
  transition: border-color var(--fast) ease;
}
.pagination a:hover {
  border-color: var(--tertiary);
}
.pagination [aria-current='page'] {
  background: var(--abyss);
  border-color: var(--abyss);
  color: var(--raised);
}
.pagination svg {
  width: 16px;
  fill: none;
  stroke: var(--tertiary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- cikkoldal ---------- */
.hero--article h1 {
  font-size: clamp(32px, 4.4vw, 50px);
}
.breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  font: 500 13px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-text);
}
.section-dark .breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}
.section-dark .breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* tag and author archives: a facts line under the heading, set off like the article meta */
.archive-facts {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-on-dark);
  max-width: 640px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--on-dark);
}
.page-hero h1 .hash {
  color: var(--primary);
  margin-right: 0.04em;
}
.archive-author {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 24px;
}
.archive-author h1 {
  margin: 0;
}
.archive-author .eyebrow {
  margin-bottom: 8px;
}
.archive-avatar {
  flex: none;
  width: 96px;
  height: 96px;
  box-shadow:
    0 0 0 6px var(--abyss),
    0 0 0 7px var(--line-on-dark);
}
.archive-avatar svg {
  width: 36px;
}
@media (max-width: 559px) {
  .archive-author {
    gap: 20px;
  }
  .archive-avatar {
    width: 72px;
    height: 72px;
  }
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-dark);
  max-width: 640px;
}
.article-avatar {
  width: 48px;
  height: 48px;
  flex: none;
}
.article-avatar svg {
  width: 22px;
}
.article-author {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.4;
  color: var(--footer-text);
}
.article-author strong {
  color: var(--raised);
  font-size: 15px;
}
.article-facts {
  margin: 0 0 0 auto;
  display: flex;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--on-dark);
}
@media (max-width: 559px) {
  .article-facts {
    margin-left: 0;
    width: 100%;
  }
}

.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
}
.read-progress span {
  display: block;
  height: 100%;
  background: var(--primary);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

.article-section {
  padding-top: 48px;
}
.article-cover {
  aspect-ratio: 21 / 9;
  border-radius: var(--r-lg);
  margin: 0 0 56px;
}
@media (max-width: 767px) {
  .article-cover {
    aspect-ratio: 16 / 10;
    margin-bottom: 32px;
  }
}
.article-layout {
  display: grid;
  gap: 32px;
}
@media (min-width: 992px) {
  .article-layout {
    grid-template-columns: 220px minmax(0, 700px);
    justify-content: center;
    gap: 72px;
    align-items: start;
  }
  .article-layout--no-toc {
    grid-template-columns: minmax(0, 700px);
  }
}

.toc {
  background: var(--raised);
  border-radius: var(--r-lg);
  padding: 24px;
}
.toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.toc li {
  counter-increment: toc;
}
.toc a {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--fast) ease;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font: 500 12px/1.7 var(--font-mono);
  color: var(--tertiary);
}
.toc a:hover,
.toc a.is-active {
  color: var(--on-surface);
}
.toc a.is-active {
  font-weight: 700;
}
@media (min-width: 992px) {
  .toc {
    position: sticky;
    top: 112px;
    background: none;
    padding: 0;
  }
}

.prose {
  font-size: 17px;
  line-height: 1.75;
}
@media (min-width: 992px) {
  .prose {
    font-size: 18px;
  }
}
.prose > p,
.prose li {
  color: var(--on-surface);
}
.prose h2 {
  font-size: clamp(24px, 2.4vw, 28px);
  margin: 56px 0 16px;
  scroll-margin-top: 104px;
}
.prose h3 {
  font-size: 18px;
  margin: 0 0 12px;
}
.prose p {
  margin: 0 0 20px;
}
.prose ul {
  margin: 0 0 24px;
  padding-left: 1.25em;
}
.prose li {
  margin-bottom: 10px;
  padding-left: 4px;
}
.prose li::marker {
  color: var(--tertiary);
}
.prose a {
  color: var(--tertiary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-thickness: 2px;
}

.tldr {
  background: var(--raised);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin-bottom: 40px;
}
.tldr ul {
  margin: 0;
  font-size: 16px;
}
.tldr li:last-child {
  margin-bottom: 0;
}

.prose-figure {
  margin: 40px 0;
}
.prose-figure .placeholder {
  aspect-ratio: 3 / 2;
  border-radius: var(--r-lg);
}
.prose-figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.choice-grid {
  display: grid;
  gap: 16px;
  margin: 0 0 24px;
}
@media (min-width: 640px) {
  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.choice {
  background: var(--raised);
  border-radius: var(--r-lg);
  padding: 24px 24px 8px;
}
.choice ul {
  font-size: 16px;
  margin-bottom: 16px;
}

.article-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.post-tags li {
  margin: 0;
  padding: 0;
}
.prose .post-tags a {
  display: block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--raised);
  font: 500 12px/1.3 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  transition: border-color var(--fast) ease;
}
.prose .post-tags a:hover {
  border-color: var(--tertiary);
}
.copy-link svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.author-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 32px;
  padding: 28px;
  background: var(--raised);
  border-radius: var(--r-lg);
  font-size: 15px;
  line-height: 1.6;
}
.author-card .eyebrow {
  margin-bottom: 4px;
}
.author-card .author-name ~ p {
  margin: 0;
  color: var(--muted);
}
.author-card .author-name ~ .author-more {
  margin-top: 14px;
}
.prose .author-more a {
  font-size: 14px;
  color: var(--on-surface);
  text-decoration: none;
}
.article-author a {
  text-decoration: none;
}
.article-author a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.author-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px !important;
}
.author-avatar {
  width: 72px;
  height: 72px;
  flex: none;
  font-size: 9px;
  line-height: 1.3;
  gap: 2px;
}
.author-avatar svg {
  width: 24px;
}
@media (max-width: 559px) {
  .author-card {
    flex-direction: column;
  }
}

.related-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.related-head h2 {
  margin: 0;
}
.prose .post-tags {
  padding: 0;
  margin: 0;
}

/* ---------- WordPress post content (block editor markup inside .prose) ---------- */
.post-cover img,
.article-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-cover {
  overflow: hidden;
}

.prose h4 {
  font-size: 17px;
  margin: 28px 0 8px;
}
.prose ol {
  padding-left: 22px;
  margin: 0 0 var(--s-md);
}
.prose h2 strong,
.prose h3 strong {
  font-weight: inherit;
}

.prose .wp-block-image {
  margin: 32px 0;
}
.prose .wp-block-image img {
  height: auto;
  border-radius: var(--r-lg);
}
.prose .wp-block-image.alignright {
  float: right;
  max-width: 45%;
  margin: 4px 0 16px 24px;
}
.prose .wp-block-image figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.prose blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--primary);
  color: var(--on-surface);
  font-size: 18px;
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose cite {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-style: normal;
  color: var(--muted);
}

.prose code {
  font-family: var(--font-mono);
  /* show code exactly as typed: no "=>" → arrow ligatures */
  font-variant-ligatures: none;
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: var(--r-sm);
  background: rgba(5, 26, 45, 0.06);
}
.prose pre {
  margin: 28px 0;
  padding: 20px 22px;
  overflow-x: auto;
  border-radius: var(--r-lg);
  background: var(--abyss);
  color: var(--on-dark);
  font-size: 14px;
  line-height: 1.6;
}
.prose pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

.prose iframe {
  max-width: 100%;
  border: 0;
}

.prose .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0;
}
.prose .wp-block-button__link {
  display: inline-flex;
  padding: 12px 22px;
  border-radius: var(--r-md);
  background: var(--primary);
  color: var(--abyss);
  font-weight: 700;
  text-decoration: none;
}
.prose .wp-block-spacer {
  height: 24px !important;
}

/* ---------- WordPress: core helpers ---------- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* ---------- real photos in the placeholder slots (uploaded in the theme settings / project editor) ---------- */
.placeholder.is-photo {
  display: block;
  padding: 0;
  border: 0;
  background: var(--trench);
  overflow: hidden;
}
.placeholder.is-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot.is-photo img {
  object-position: top;
}
/* desktop screenshots always show their full width from the top; a shot shorter than the slot leaves page white below */
.shot--back.is-photo,
.shot--front.is-photo {
  background: var(--raised);
}
.shot--back.is-photo img,
.shot--front.is-photo img {
  position: absolute;
  top: 0;
  left: 0;
  height: auto;
}
.hero-photo.is-photo {
  position: relative;
}
.team-photo .placeholder.is-photo {
  background: var(--raised);
}

/* ---------- filter chips as links (blog categories are server side archives) ---------- */
a.chip {
  text-decoration: none;
}
.chip[aria-current='page'] {
  background: var(--abyss);
  border-color: var(--abyss);
  color: var(--raised);
}
.chip[aria-current='page'] .chip-count {
  color: var(--primary);
}

/* ---------- logo wall: grey logos in centred rows, in colour on hover ---------- */
.section-light.logo-wall {
  padding-top: var(--s-xl);
}
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 64px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.logo-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}
.logo-grid img {
  --scale: 1;
  display: block;
  width: calc(var(--w) * var(--scale));
  height: calc(var(--h) * var(--scale));
  object-fit: contain;
  filter: grayscale(1);
  mix-blend-mode: multiply;
  opacity: 0.7;
  transition:
    filter var(--fast) ease,
    opacity var(--fast) ease,
    transform 400ms var(--ease-out);
}
.logo-grid li:hover img {
  filter: none;
  opacity: 1;
  transform: translateY(-3px);
}
/* white logos (made for dark backgrounds) are turned dark, also on hover */
.logo-grid .is-light img,
.logo-grid .is-light:hover img {
  filter: invert(1) grayscale(1);
}
/* phones: two or three per row, a bit smaller */
@media (max-width: 767px) {
  .logo-grid {
    gap: 28px 36px;
  }
  .logo-grid img {
    --scale: 0.78;
  }
  .logo-grid li {
    min-height: 52px;
  }
}

/* ---------- pagination (paginate_links) ---------- */
/* the list pages (blog, archives, projects): the same space above and below the chips, and above and below the pager */
.work-page,
.blog-list {
  --list-gap: 48px;
}
@media (min-width: 992px) {
  .work-page,
  .blog-list {
    --list-gap: 64px;
  }
}
.section-light.section-tint.work-page,
.section-light.section-tint.blog-list {
  padding-top: var(--list-gap);
}
.section-light.section-tint.work-page:has(.pagination),
.section-light.section-tint.blog-list:has(.pagination) {
  padding-bottom: var(--list-gap);
}
.blog-list .work-filter {
  margin-bottom: var(--list-gap);
}
.work-page .pagination,
.blog-list .pagination {
  margin-top: var(--list-gap);
}
.pagination .dots {
  border: 0;
  background: none;
}
.pagination .prev,
.pagination .next {
  width: auto;
  min-width: 44px;
}

/* ---------- generic page (page.php) ---------- */
.page-section {
  padding-top: 56px;
}
.page-section .prose {
  max-width: 700px;
  margin: 0 auto;
}
.prose > :first-child {
  margin-top: 0;
}

/* ---------- block editor content inside .prose ---------- */
.prose .alignleft {
  float: left;
  margin: 4px 24px 16px 0;
  max-width: 45%;
}
.prose .alignright {
  float: right;
  margin: 4px 0 16px 24px;
  max-width: 45%;
}
.prose .aligncenter {
  margin-left: auto;
  margin-right: auto;
}
.prose img {
  max-width: 100%;
  height: auto;
}
.prose figure {
  margin: 32px 0;
}
.prose figcaption,
.prose .wp-caption-text {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.prose .wp-block-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.prose .wp-block-embed iframe,
.prose .wp-block-video video {
  width: 100%;
}
.prose .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
}
.prose .wp-block-embed.wp-has-aspect-ratio iframe {
  position: absolute;
  inset: 0;
  height: 100%;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 16px;
}
.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.prose th {
  font-weight: 700;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}
.prose::after {
  content: '';
  display: table;
  clear: both;
}

/* ---------- Gravity Forms in the dark contact panel (GF's own CSS is turned off in inc/forms.php) ---------- */
.contact-form .gform_title,
.contact-form .gform_description,
.contact-form .gform_validation_container,
.contact-form .gform_hidden,
.contact-form .gfield--type-hidden,
.contact-form .gfield_visibility_hidden,
.contact-form .gform_validation_errors .gform_submission_error.hide_summary + ol {
  display: none !important;
}
.contact-form .gform_fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 16px;
}
.contact-form .gfield {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
@media (min-width: 560px) {
  .contact-form .gfield--width-half {
    grid-column: span 6;
  }
  .contact-form .gfield--width-third {
    grid-column: span 4;
  }
  .contact-form .gfield--width-two-thirds {
    grid-column: span 8;
  }
  .contact-form .gfield--width-quarter {
    grid-column: span 3;
  }
  .contact-form .gfield--width-three-quarter {
    grid-column: span 9;
  }
}
.contact-form .gfield_label,
.contact-form legend.gfield_label {
  display: block;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--raised);
}
.contact-form .gfield_required {
  margin-left: 2px;
  color: var(--primary);
}
.contact-form .gfield_required .gfield_required {
  margin: 0;
}
.contact-form .gform_required_legend {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--footer-text);
  margin: 0 0 12px;
}
.contact-form input[type='text'],
.contact-form input[type='email'],
.contact-form input[type='tel'],
.contact-form input[type='url'],
.contact-form input[type='number'],
.contact-form input[type='password'],
.contact-form input[type='date'],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: 400 16px/1.5 var(--font-sans);
  color: var(--raised);
  background: #0e2639;
  border: 1px solid #5a7280;
  border-radius: var(--r-sm);
  padding: 12px;
  transition:
    border-color var(--fast) ease,
    box-shadow var(--fast) ease;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  height: 140px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 194, 203, 0.2);
}
.contact-form ::placeholder {
  color: var(--footer-text);
}
.contact-form option {
  color: var(--on-surface);
  background: var(--raised);
}
.contact-form .ginput_complex {
  display: grid;
  gap: 12px 16px;
}
@media (min-width: 560px) {
  .contact-form .ginput_complex {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
  }
}
.contact-form .ginput_complex label,
.contact-form .gfield_description,
.contact-form .ginput_counter {
  display: block;
  color: var(--footer-text);
  font-size: 13px;
  margin-top: 4px;
}
.contact-form .gfield_checkbox,
.contact-form .gfield_radio {
  display: grid;
  gap: 8px;
}
.contact-form .gchoice,
.contact-form .ginput_container_consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.contact-form .gchoice input,
.contact-form .ginput_container_consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}
.contact-form .gchoice label,
.contact-form .gfield_consent_label {
  color: var(--on-dark);
}
.contact-form .gfield_consent_label a {
  color: var(--raised);
  text-decoration-color: var(--primary);
  text-underline-offset: 3px;
}
.contact-form .gfield_error input,
.contact-form .gfield_error select,
.contact-form .gfield_error textarea {
  border-color: #f2978e;
}
.contact-form .gfield_validation_message,
.contact-form .validation_message {
  display: block;
  color: #f2978e;
  font-size: 14px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
}
.contact-form .gform_validation_errors {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #f2978e;
  border-radius: var(--r-sm);
  outline: none;
}
.contact-form .gform_validation_errors h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #f2978e;
}
.contact-form .gform_validation_errors ol {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 14px;
}
.contact-form .gform_validation_errors a {
  color: #f2978e;
}
.contact-form .gform_footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}
/* the submit button gets .btn .btn-primary in inc/forms.php; this is the fallback if that filter did not run */
.contact-form .gform_button:not(.btn) {
  width: 100%;
  font: 700 16px/1.2 var(--font-sans);
  color: var(--abyss);
  background: var(--primary);
  border: 0;
  border-radius: var(--r-md);
  padding: 14px 36px;
  cursor: pointer;
  transition: background-color var(--fast) ease;
}
.contact-form .gform_button:not(.btn):hover {
  background: var(--secondary);
}
.contact-form .gform_button:disabled {
  opacity: 0.7;
  cursor: progress;
}
.contact-form .gform_ajax_spinner,
.contact-form .gform-loader {
  width: 20px;
  height: 20px;
  margin: 0 auto;
}
.contact-form .gform_confirmation_message {
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--trench);
  border: 1px solid var(--line-on-dark);
  font-weight: 700;
  color: var(--primary);
}
.contact-form-missing {
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--trench);
  border: 1px solid var(--line-on-dark);
}
