/* =========================================================
   UP2Digital — design tokens (brand book v1.0 aligned)
   60/30/10: 60% neutral · 30% surface · 10% yellow · 2-3% red
   ========================================================= */
:root {
  /* Brand core */
  --up2-yellow:       #F5C518;
  --up2-yellow-deep:  #D9AC0E;
  --up2-yellow-soft:  rgba(245, 197, 24, 0.16);
  --up2-yellow-tint:  #FFF6D6;
  --up2-black:        #0F0F0F;
  --up2-red:          #E53935;

  /* Functional */
  --up2-success:      #2E8B57;
  --up2-warning:      #E0A526;
  --up2-blue:         #3A6EA5;

  /* Neutrals — extended for depth */
  --bg:               #F7F7F5;    /* Light surface */
  --bg-2:             #EFEEE9;    /* warmer paper */
  --bg-3:             #E7E5DE;    /* deeper warm tone */
  --paper:            #FFFFFF;

  --ink:              #0F0F0F;
  --ink-2:            #2A2A2A;
  --ink-muted:        #6B6B6B;
  --ink-faint:        #B3B3B3;
  --hairline:         #E5E5E5;

  --dark:             #0F0F0F;    /* Deep black */
  --dark-2:           #161616;    /* near-black for layered cards */
  --dark-3:           #1E1E1E;    /* Dark Surface (brand) */
  --dark-4:           #2A2A2A;    /* secondary dark surface */
  --line-dark:        rgba(255,255,255,0.08);
  --line-dark-2:      rgba(255,255,255,0.14);
  --on-dark:          #FFFFFF;
  --on-dark-muted:    rgba(255,255,255,0.62);
  --on-dark-faint:    rgba(255,255,255,0.40);

  /* Type */
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1320px;
  --pad-x: clamp(20px, 4vw, 64px);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lift: 0 24px 56px -24px rgba(0,0,0,0.20);

  --section-y: clamp(80px, 9vw, 130px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
@media (max-width: 880px) { html { scroll-padding-top: 85px; } }

/* Focus visible — accessibility */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--up2-yellow);
  outline-offset: 3px;
  border-radius: 4px;
}
.section-dark :focus-visible,
.hero :focus-visible,
.nav :focus-visible,
.footer :focus-visible { outline-color: var(--up2-yellow); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .band__inner { animation: none !important; }
  .hero__arrows { display: none !important; }
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* type helpers */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.head { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.section-dark .eyebrow { color: var(--on-dark-faint); }

/* Brand mark — yellow highlight like a marker */
.hl {
  background-image: linear-gradient(120deg, var(--up2-yellow-soft) 0%, var(--up2-yellow-soft) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.40em;
  background-position: 0 88%;
  padding: 0 0.06em;
}
.hl-strong { background-color: var(--up2-yellow); padding: 0 0.16em; color: var(--up2-black); }

/* Red diagonal underline accent */
.dash-red {
  position: relative;
  display: inline-block;
}
.dash-red::after {
  content: '';
  position: absolute;
  left: -2%; right: -2%; bottom: -8px;
  height: 4px;
  background: var(--up2-red);
  transform: rotate(-2deg);
  border-radius: 4px;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: rgba(15,15,15,0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark);
}
.nav__brand {
  display: flex;
  align-items: center;
  height: 85px;
  flex-shrink: 0;
}
.nav__logo {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 880px) {
  .nav__brand { height: 75px; }
}
/* Legacy SVG-mark variant kept for safety (no-op if not used) */
.nav__brand .mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--up2-black);
  border: 1px solid var(--line-dark-2);
  border-radius: 8px;
}
.nav__brand .mark svg { width: 18px; height: 18px; }
.nav__brand .name { display: flex; align-items: baseline; gap: 6px; }
.nav__brand .name .y { color: var(--up2-yellow); }
.nav__links {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav__links a {
  color: rgba(255,255,255,0.65);
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__links a:hover { color: var(--on-dark); }
.nav__links a .num { color: var(--up2-yellow); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--up2-yellow);
  color: var(--up2-black);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-body);
  transition: transform .15s, background .2s;
}
.nav__cta:hover { background: #FFD737; transform: translateY(-1px); }
.nav__cta svg { width: 14px; height: 14px; }
@media (max-width: 880px) { .nav__links { display: none; } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--up2-black);
  color: var(--on-dark);
  padding: 140px var(--pad-x) 80px;
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero__corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__corner--tl { top: 110px; left: var(--pad-x); }
.hero__corner--tr { top: 110px; right: var(--pad-x); }
.hero__corner--bl { bottom: 32px; left: var(--pad-x); }
.hero__corner--br { bottom: 32px; right: var(--pad-x); }
.hero__corner .dot {
  width: 6px; height: 6px;
  background: var(--up2-yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(245,197,24,0.18);
}

.hero__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 220px);
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; padding-top: 24px; }
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--up2-yellow);
  margin-bottom: 36px;
}
.hero__eyebrow .bar { width: 32px; height: 2px; background: var(--up2-yellow); }
.hero__eyebrow .pip {
  width: 8px; height: 8px;
  background: var(--up2-red);
  border-radius: 2px;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero h1 .strike {
  color: var(--ink-faint);
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--up2-red);
}
.hero h1 .accent {
  color: var(--up2-yellow);
  position: relative;
  display: inline-block;
}
.hero h1 .accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 6px;
  background: var(--up2-yellow);
  opacity: .22;
  border-radius: 4px;
}
.hero__sub {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--on-dark-muted);
  max-width: 540px;
  margin-bottom: 40px;
  text-wrap: pretty;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
  border: 1px solid transparent;
}
.btn--primary { background: var(--up2-yellow); color: var(--up2-black); }
.btn--primary:hover { background: #FFD737; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,0.20); }
.btn--ghost:hover { border-color: var(--up2-yellow); color: var(--up2-yellow); }
.btn--dark { background: var(--up2-black); color: var(--on-dark); }
.btn--dark:hover { background: var(--dark-3); transform: translateY(-1px); }
.btn svg { width: 14px; height: 14px; }

.hero__meta {
  margin-top: 56px;
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  max-width: 580px;
}
.hero__meta .stat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}
.hero__meta .stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: var(--on-dark);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.hero__meta .stat strong .y { color: var(--up2-yellow); }

/* Hero visual — system schematic */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  display: grid;
  place-items: center;
}
@media (max-width: 980px) {
  .hero__visual { margin: 0 auto; max-width: 520px; }
}
.schematic { width: 100%; height: 100%; position: relative; }
.schematic svg { width: 100%; height: 100%; overflow: visible; }
.schematic__label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  white-space: nowrap;
}
.schematic__label.is-yellow { color: var(--up2-yellow); }
.schematic__label.is-green { color: var(--up2-success); }
.schematic__label.is-blue { color: var(--up2-blue); }
.schematic__node {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--up2-yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(245,197,24,0.15);
}

/* upward floating arrows */
@keyframes floatUp {
  0%   { transform: translateY(20px); opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { transform: translateY(-30px); opacity: 0; }
}
.hero__arrows {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
}
.hero__arrows span {
  position: absolute;
  bottom: -20px;
  color: var(--up2-yellow);
  opacity: 0;
  animation: floatUp 7s linear infinite;
  font-size: 12px;
  font-family: var(--font-mono);
}

/* =========================================================
   POSITIONING BAND (yellow marquee)
   ========================================================= */
.band {
  background: var(--up2-yellow);
  color: var(--up2-black);
  padding: 28px var(--pad-x);
  border-top: 1px solid var(--up2-black);
  border-bottom: 1px solid var(--up2-black);
  overflow: hidden;
  position: relative;
}
.band__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
  width: max-content;
}
.band__inner .dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: var(--up2-black);
  color: var(--up2-yellow);
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 16px;
}
.band__inner .pip { width: 12px; height: 12px; background: var(--up2-red); border-radius: 2px; flex-shrink: 0; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================================
   SECTION shells
   ========================================================= */
.section { padding: var(--section-y) 0; position: relative; }
.section-bg-2 { background: var(--bg-2); }
.section-dark { background: var(--up2-black); color: var(--on-dark); }

.section__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 0 var(--pad-x);
  max-width: var(--container);
  margin: 0 auto 56px;
}
.section__head > div { width: 100%; }
.section__head > div:first-child { max-width: none; }
.section__head > div:last-child  { max-width: 880px; }
.section__head--center {
  align-items: center;
  text-align: center;
}
.section__head--center > div:last-child { max-width: 760px; }
.section__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.section-dark .section__num { color: var(--on-dark-faint); }
.section__num .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--up2-yellow-soft);
  color: var(--up2-yellow-deep);
  border-radius: var(--r-pill);
}
.section-dark .section__num .tag {
  color: var(--up2-yellow);
  background: rgba(245,197,24,0.10);
}
.section__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section__title .accent { color: var(--up2-yellow-deep); }
.section-dark .section__title .accent { color: var(--up2-yellow); }
.section__lead {
  margin-top: 18px;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 60ch;
  text-wrap: pretty;
}
.section-dark .section__lead { color: var(--on-dark-muted); }
@media (max-width: 880px) {
  .section__head { gap: 14px; margin-bottom: 40px; }
}

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .services-grid { grid-template-columns: 1fr; } }
@media (max-width: 1100px) and (min-width: 881px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
.service {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 32px 28px 26px;
  position: relative;
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
}
.service:hover {
  border-color: var(--up2-yellow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.service__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.service__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.service__arrow {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.service:hover .service__arrow {
  background: var(--up2-yellow);
  border-color: var(--up2-yellow);
  transform: rotate(-45deg) translate(2px, 2px);
}
.service__arrow svg { width: 14px; height: 14px; }
.service__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.service__desc {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
}
.service__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.service__tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  color: var(--ink-muted);
}

/* =========================================================
   SYSTEM (process)
   ========================================================= */
.system {
  padding: 0 var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
}
.system__quote {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(36px, 4.8vw, 70px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-align: center;
  margin: 0 auto 80px;
  max-width: 16ch;
  text-wrap: balance;
}
.system__quote .ammo { position: relative; display: inline-block; }
.system__quote .ammo::after {
  content: '';
  position: absolute;
  left: -3%; right: -3%; top: 50%;
  height: 6px;
  background: var(--up2-red);
  transform: translateY(-50%) rotate(-3deg);
  border-radius: 3px;
}
.system__quote .y { color: var(--up2-yellow); }

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
@media (max-width: 980px) { .process { grid-template-columns: 1fr; } }
.process__step {
  padding: 32px 26px;
  border-left: 1px solid var(--line-dark);
  position: relative;
}
.process__step:last-child { border-right: 1px solid var(--line-dark); }
.process__step::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px; right: -1px;
  height: 3px;
  background: var(--up2-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s ease;
}
.process__step.is-in::before { transform: scaleX(1); }
.process__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--up2-yellow);
  margin-bottom: 22px;
}
.process__title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.process__desc {
  color: var(--on-dark-muted);
  font-size: 14px;
  line-height: 1.6;
}
.process__arrow { margin: 22px 0 0; color: var(--up2-yellow); opacity: .55; }

.system__rules {
  margin-top: 88px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .system__rules { grid-template-columns: 1fr; } }
.rule {
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  background: var(--dark-3);
}
.rule__mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--up2-yellow);
  margin-bottom: 18px;
}
.rule__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.rule__desc { color: var(--on-dark-muted); font-size: 14px; line-height: 1.6; }

/* =========================================================
   REFERENCES
   ========================================================= */
.refs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  padding: 0 var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
}
.ref {
  grid-column: span 3;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.ref:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.ref--wide { grid-column: span 4; }
.ref--tall { grid-column: span 2; }
@media (max-width: 980px) {
  .refs { grid-template-columns: 1fr; }
  .ref, .ref--wide, .ref--tall { grid-column: span 1; }
}
.ref__mock {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}
.ref--tall .ref__mock { aspect-ratio: 4 / 5; }
.ref__meta {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ref__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ref__cat .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up2-yellow); }
.ref__cat .dot.green { background: var(--up2-success); }
.ref__cat .dot.blue { background: var(--up2-blue); }
.ref__cat .dot.red { background: var(--up2-red); }
.ref__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.ref__sum { color: var(--ink-muted); font-size: 14px; line-height: 1.55; }
.ref__metric {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  color: var(--up2-success);
  margin-top: 6px;
}
.ref__metric .label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* mockup placeholders */
.mock-browser { height: 100%; display: flex; flex-direction: column; }
.mock-browser__bar {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: var(--up2-black);
}
.mock-browser__bar .d { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.22); }
.mock-browser__bar .url {
  margin-left: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.6);
}
.mock-browser__body { flex: 1; padding: 18px; overflow: hidden; background: var(--paper); }

.mock-mobile {
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--bg-3);
}
.mock-mobile__frame {
  width: 55%;
  aspect-ratio: 9/19;
  background: var(--up2-black);
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.4);
}
.mock-mobile__screen {
  width: 100%; height: 100%;
  background: var(--paper);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}

/* mini wireframe */
.wf { display: flex; flex-direction: column; gap: 8px; }
.wf__row { height: 8px; border-radius: 3px; background: var(--bg-3); }
.wf__row.x { background: var(--up2-yellow); }
.wf__row.r { background: var(--up2-red); width: 30% !important; }
.wf__row.h { height: 24px; background: var(--up2-black); }
.wf__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.wf__card { aspect-ratio: 1; background: var(--bg-3); border-radius: 4px; }
.wf__card.x { background: var(--up2-yellow); }
.wf__card.g { background: var(--up2-success); }
.wf__card.b { background: var(--up2-blue); }

/* dashboard chart mock */
.mock-chart { height: 100%; padding: 18px; background: var(--paper); display: flex; flex-direction: column; gap: 12px; }
.mock-chart__head { display: flex; justify-content: space-between; align-items: center; }
.mock-chart__head h6 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.mock-chart__head .pct { font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--up2-success); }
.mock-chart__bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; }
.mock-chart__bars span { flex: 1; background: var(--bg-3); border-radius: 3px 3px 0 0; }
.mock-chart__bars span.x { background: var(--up2-yellow); }
.mock-chart__bars span.g { background: var(--up2-success); }
.mock-chart__bars span.b { background: var(--up2-blue); }

/* =========================================================
   CASE STUDIES
   ========================================================= */
.cases {
  padding: 0 var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.case {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
}
.case:nth-child(even) { grid-template-columns: 1fr 1.2fr; }
.case:nth-child(even) .case__visual { order: 2; }
@media (max-width: 980px) {
  .case, .case:nth-child(even) { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__visual { order: 0; }
}
.case__visual {
  background: var(--bg-3);
  padding: 40px;
  display: grid;
  place-items: center;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.case__visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.case__body { padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.case__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.case__tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up2-yellow); }
.case__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 2.4vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.case__desc { color: var(--ink-muted); font-size: 15px; line-height: 1.6; }
.case__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}
.case__stat { padding-right: 16px; border-right: 1px solid var(--hairline); }
.case__stat:last-child { border-right: 0; }
.case__stat strong {
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  display: block;
  color: var(--ink);
}
.case__stat strong .y { color: var(--up2-yellow-deep); }
.case__stat strong .g { color: var(--up2-success); }
.case__stat strong .b { color: var(--up2-blue); }
.case__stat span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.case__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  margin-top: 4px;
  align-self: flex-start;
  color: var(--ink);
}
.case__link::after {
  content: '↗';
  font-family: var(--font-mono);
  color: var(--up2-yellow-deep);
}

/* big mockup inside case */
.case-mock {
  background: var(--paper);
  width: 88%;
  max-width: 440px;
  border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.30);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.case-mock__bar { height: 32px; background: var(--up2-black); display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.case-mock__bar .d { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.case-mock__bar .url {
  margin-left: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.6);
}
.case-mock__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.case-stamp {
  position: absolute;
  bottom: 20px; right: 20px;
  z-index: 2;
  background: var(--up2-yellow);
  color: var(--up2-black);
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.18);
  transform: rotate(-2deg);
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  padding: 0 var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
}
@media (max-width: 980px) { .testimonials { grid-template-columns: 1fr; } }
.testi {
  background: var(--bg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testi__quote-mark {
  font-family: var(--font-head);
  font-size: 64px;
  font-weight: 800;
  line-height: 0.5;
  color: var(--up2-yellow);
}
.testi__quote {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  flex: 1;
  text-wrap: pretty;
}
.testi__person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.testi__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--up2-black);
  color: var(--up2-yellow);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
}
.testi__who strong { display: block; font-weight: 600; font-size: 14px; }
.testi__who span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* =========================================================
   BLOG
   ========================================================= */
.blog {
  padding: 0 var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 980px) { .blog { grid-template-columns: 1fr; } }
.post {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.post__soon {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  background: rgba(15,15,15,0.78);
  color: var(--up2-yellow);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* Service card as anchor (homepage grid) */
a.service { text-decoration: none; color: inherit; }
a.service:focus-visible { outline-offset: -3px; }

.post--link {
  text-decoration: none;
  color: inherit;
  transition: transform .25s;
}
.post__title { transition: color .2s; }
.post--link:hover .post__cover { transform: translateY(-4px); }
.post--link:hover .post__title { color: var(--up2-yellow-deep); }
.section-dark .post--link:hover .post__title { color: var(--up2-yellow); }
.post__cover {
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  transition: transform .25s;
  border: 1px solid var(--hairline);
}
.post:hover .post__cover { transform: translateY(-4px); }
.post__cover svg { width: 60%; height: auto; }
.post__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--up2-yellow-deep);
}
.post__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}
.post__sum { color: var(--ink-muted); font-size: 14px; line-height: 1.55; }
.post__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  gap: 12px;
}

/* =========================================================
   FOUNDER + CONTACT
   ========================================================= */
.founder {
  padding: 0 var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 980px) { .founder { grid-template-columns: 1fr; gap: 40px; } }

.founder__photo {
  aspect-ratio: 4 / 5;
  background: var(--dark-3);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.founder__photo::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.founder__photo .silhouette {
  position: absolute; inset: 0;
  display: grid;
  place-items: end center;
}
.founder__photo .silhouette::after {
  content: 'HJ';
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 240px;
  line-height: 0.8;
  color: rgba(255,255,255,0.05);
  letter-spacing: -0.05em;
  padding-bottom: 8%;
}
.founder__name-badge {
  position: absolute;
  top: 22px; left: 22px;
  z-index: 3;
  background: var(--up2-yellow);
  color: var(--up2-black);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.founder__placeholder-note {
  position: absolute;
  bottom: 18px; left: 22px; right: 22px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  text-align: center;
}
.founder__motto {
  position: absolute;
  bottom: 22%; left: 22px; right: 22px;
  z-index: 3;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  color: rgba(255,255,255,0.85);
  text-align: center;
  text-wrap: balance;
}
.founder__motto::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--up2-yellow);
  margin: 0 auto 14px;
}

.founder__bio h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--on-dark);
  text-wrap: balance;
}
.founder__bio h3 .y { color: var(--up2-yellow); }
.founder__bio p {
  color: var(--on-dark-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 18px;
  text-wrap: pretty;
}
.founder__bio p strong { color: var(--on-dark); font-weight: 500; }
.founder__skills {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}
.founder__skills h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-bottom: 16px;
}
.founder__skills ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.founder__skills li {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.80);
  display: flex;
  align-items: center;
  gap: 10px;
}
.founder__skills li::before { content: '↑'; color: var(--up2-yellow); font-weight: 800; }

/* Contact CTA */
.contact-cta {
  margin-top: 96px;
  padding: 60px var(--pad-x) 0;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) { .contact-cta { grid-template-columns: 1fr; gap: 32px; } }
.contact-cta h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(32px, 3.8vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--on-dark);
  text-wrap: balance;
}
.contact-cta h3 .y { color: var(--up2-yellow); }
.contact-cta__sub {
  margin-top: 20px;
  color: var(--on-dark-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 44ch;
}
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-info a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  background: var(--dark-2);
  color: var(--on-dark);
  transition: background .2s, border-color .2s, transform .2s;
}
.contact-info a:hover { background: var(--dark-3); border-color: var(--up2-yellow); transform: translateY(-2px); }
.contact-info a .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  display: block;
  margin-bottom: 4px;
}
.contact-info a strong {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.contact-info .arrow {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--up2-yellow);
  flex-shrink: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #050505;
  color: var(--on-dark-muted);
  padding: 80px var(--pad-x) 36px;
  border-top: 1px solid var(--line-dark);
}
.footer__top {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 880px) { .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer__brand img { height: 84px; width: auto; margin-bottom: 20px; }
.footer__brand p { font-size: 14px; line-height: 1.6; max-width: 36ch; }
.footer__address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.6;
  color: var(--on-dark-muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  max-width: 36ch;
}
.footer__address strong {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--up2-yellow);
  font-weight: 600;
  margin-bottom: 2px;
}
.footer__address a {
  color: var(--up2-yellow);
  border-bottom: 1px solid rgba(245,197,24,0.3);
  transition: border-color .2s;
}
.footer__address a:hover { border-color: var(--up2-yellow); }
.footer__family {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer__family span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  color: var(--on-dark-muted);
}
.footer__family span.this { background: var(--up2-yellow); color: var(--up2-black); border-color: var(--up2-yellow); }
.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-bottom: 18px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14px; color: var(--on-dark-muted); transition: color .2s; }
.footer__col a:hover { color: var(--up2-yellow); }
.footer__bot {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  flex-wrap: wrap;
  gap: 16px;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* density */
body[data-density="cozy"] { --section-y: clamp(60px, 7vw, 100px); }
body[data-density="cozy"] .section__head { margin-bottom: 40px; }

/* =========================================================
   TUDÁSTÁR PREVIEW (homepage)
   ========================================================= */
.kb-preview {
  padding: 0 var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) { .kb-preview { grid-template-columns: 1fr; gap: 40px; } }
.kb-preview__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.kb-preview__list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg);
  transition: background .2s, padding-left .2s;
}
.kb-preview__list a:hover { background: var(--paper); padding-left: 30px; }
.kb-preview__list .kb-q {
  flex: 1;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.kb-preview__list .kb-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  flex-shrink: 0;
}
.kb-preview__list .kb-arrow { color: var(--up2-yellow-deep); font-family: var(--font-mono); flex-shrink: 0; }

/* =========================================================
   MEGA MENU (Szolgáltatások dropdown)
   ========================================================= */
.nav__has-mega { position: relative; display: inline-flex; align-items: center; }
/* Hover-bridge — áthidalja a trigger és a mega panel közti 14px rést,
   hogy az egér átmehessen a mega menübe anélkül, hogy elveszne a hover */
.nav__has-mega::after {
  content: '';
  position: absolute;
  left: -16px;
  right: -16px;
  top: 100%;
  height: 22px;
}
@media (max-width: 880px) {
  .nav__has-mega::after { display: none; } /* mobilon tap-based, nem kell */
}
.nav__mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__chev {
  width: 10px; height: 7px;
  margin-left: 2px;
  transition: transform .25s;
}
.nav__has-mega.is-open .nav__chev { transform: rotate(180deg); }

.mega {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  transform: translate(-50%, -8px);
  width: min(960px, calc(100vw - 32px));
  background: #0F0F0F;
  border: 1px solid var(--up2-yellow);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 64px -16px rgba(0,0,0,0.7), 0 0 0 4px rgba(245,197,24,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .25s ease;
  z-index: 110;
}
.nav__has-mega.is-open .mega,
.nav__has-mega:hover .mega,
.nav__has-mega:focus-within .mega {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega__inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 980px) { .mega__inner { grid-template-columns: 1fr; gap: 18px; } }

.mega__intro {
  padding-right: 22px;
  border-right: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
}
@media (max-width: 980px) {
  .mega__intro { border-right: 0; border-bottom: 1px solid var(--line-dark); padding: 0 0 18px; }
}
.mega__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--up2-yellow);
  margin-bottom: 14px;
}
.mega__intro h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--on-dark);
  margin-bottom: 12px;
}
.mega__intro p {
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 18px;
}
.mega__intro p a { color: var(--up2-yellow); border-bottom: 1px solid var(--up2-yellow); }
.mega__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--up2-yellow);
  font-weight: 600;
}

/* 4 oszlopos kategória-rács */
.mega__cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .mega__cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .mega__cats { grid-template-columns: 1fr; } }

.mega-cat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mega-cat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(245,197,24,0.06);
  border: 1px solid rgba(245,197,24,0.2);
  color: var(--on-dark);
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.mega-cat__head:hover {
  background: rgba(245,197,24,0.14);
  border-color: var(--up2-yellow);
}
.mega-cat__icon {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  background: var(--up2-black);
  color: var(--up2-yellow);
  border-radius: 8px;
  flex-shrink: 0;
}
.mega-cat__icon svg { width: 16px; height: 16px; }
.mega-cat__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--up2-yellow);
  margin-bottom: 2px;
}
.mega-cat__title-wrap h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.mega-cat__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}
.mega-cat__list li {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  color: var(--on-dark-faint);
  padding: 4px 0 4px 14px;
  position: relative;
}
.mega-cat__list li::before {
  content: '↑';
  position: absolute;
  left: 0; top: 4px;
  color: var(--up2-yellow-deep);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* Mobile mega: render as expanded inline block in mobile menu */
@media (max-width: 880px) {
  .nav__has-mega { display: block; width: 100%; }
  .nav__mega-trigger { display: flex; justify-content: space-between; width: 100%; }
  .mega {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-radius: 0;
    padding: 12px 0 4px 12px;
    box-shadow: none;
    display: none;
  }
  .nav__has-mega.is-open .mega { display: block; }
  .mega__inner { grid-template-columns: 1fr; gap: 0; }
  .mega__intro { display: none; }
  .mega-card { padding: 10px 8px; }
  .mega-card__body p { display: none; }
}

/* =========================================================
   MOBILE NAV (hamburger)
   ========================================================= */
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark-2);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--on-dark);
  transition: background .2s, border-color .2s;
}
.nav__toggle:hover { background: rgba(255,255,255,0.08); border-color: var(--up2-yellow); }
.nav__toggle svg { width: 18px; height: 18px; }
.nav__toggle .ico-close { display: none; }
.nav.is-open .nav__toggle .ico-open { display: none; }
.nav.is-open .nav__toggle .ico-close { display: block; }

@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(15,15,15,0.96);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--line-dark);
    padding: 8px var(--pad-x) 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    display: flex !important;
  }
  .nav.is-open .nav__links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav__links a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line-dark);
    font-size: 14px;
    color: var(--on-dark);
  }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a .num { width: 28px; display: inline-block; }
  .nav.is-open + * { /* prevent scroll under, light approach */ }
  body.nav-open { overflow: hidden; }
}

/* =========================================================
   SCROLL CUE (clickable, animated)
   ========================================================= */
.hero__corner--bl.scroll-cue {
  text-decoration: none;
  transition: color .2s, transform .2s;
  cursor: pointer;
}
.hero__corner--bl.scroll-cue:hover { color: var(--up2-yellow); }
.hero__corner--bl.scroll-cue .cue-arrow {
  display: inline-block;
  animation: cueBounce 1.8s ease-in-out infinite;
}
@keyframes cueBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* =========================================================
   HERO mobile corner & stat alignment fixes
   ========================================================= */
@media (max-width: 720px) {
  .hero { padding-top: 120px; padding-bottom: 56px; }
  .hero__corner--tr,
  .hero__corner--br { display: none; }
  .hero__corner--tl {
    position: static;
    margin-bottom: 14px;
  }
  .hero__corner--bl { bottom: 18px; }
  .hero__eyebrow { flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
  .hero__meta { gap: 28px 36px; margin-top: 40px; }
  .hero__meta .stat strong { font-size: 26px; }
}
.hero__meta .stat strong[data-stat-equal="true"],
.hero__meta .stat strong.stat-label {
  font-size: 22px;
  line-height: 1.15;
}

/* =========================================================
   CARD AS LINK — make whole card clickable while preserving look
   ========================================================= */
a.card-link,
a.ref,
a.post {
  color: inherit;
  text-decoration: none;
  display: block;
}
a.ref { display: flex; flex-direction: column; }
a.ref:focus-visible { outline-offset: 4px; }
a.post:focus-visible { outline-offset: 6px; }

/* References — ensure the "live" indicator looks like a link */
a.ref .ref__metric {
  cursor: pointer;
}
a.ref:hover .ref__metric .label { color: var(--ink); }

/* =========================================================
   BACK TO TOP
   ========================================================= */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--up2-black);
  color: var(--up2-yellow);
  border: 1px solid var(--up2-yellow);
  border-radius: 50%;
  z-index: 90;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s, transform .25s, background .2s;
  box-shadow: 0 12px 32px -10px rgba(0,0,0,0.35);
}
.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover { background: var(--up2-yellow); color: var(--up2-black); }
.to-top svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* =========================================================
   FOUNDER photo — refined placeholder
   ========================================================= */
.founder__photo .silhouette::after {
  font-size: clamp(160px, 24vw, 240px);
}
.founder__photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(to top, rgba(245,197,24,0.06), transparent);
  pointer-events: none;
}

/* =========================================================
   FOOTER — refined logo size + spacing
   ========================================================= */
.footer__brand img {
  height: 96px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 20px;
}
@media (max-width: 880px) {
  .footer__brand img { height: 80px; }
  .footer__bot { font-size: 10px; }
}

/* =========================================================
   TESTIMONIAL placeholder — softer treatment
   ========================================================= */
.testi--ghost {
  background: transparent !important;
  border: 1px dashed var(--hairline) !important;
}
.testi--ghost .testi__quote-mark { color: var(--ink-faint); }
.testi--ghost .testi__quote { color: var(--ink-muted); }
.testi--ghost .testi__person { border-top-color: var(--hairline); }

/* =========================================================
   Service card — ensure tap target on mobile
   ========================================================= */
@media (max-width: 880px) {
  .service { min-height: 0; padding: 28px 22px 24px; }
  .service__title { font-size: 22px; }
}

/* =========================================================
   Counter element — prevent layout shift
   ========================================================= */
.hero__meta .stat strong [data-count] { font-variant-numeric: tabular-nums; }

/* =========================================================
   ABOUT TEASER (homepage)
   ========================================================= */
.about-teaser {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) { .about-teaser { grid-template-columns: 1fr; gap: 40px; } }

.about-teaser__rules {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-teaser__rule {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--dark-3);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--on-dark);
}
.about-teaser__rule .m {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--up2-yellow);
  flex-shrink: 0;
}

.about-teaser__years {
  background: var(--dark-3);
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.about-teaser__years::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}
.about-teaser__big {
  position: relative;
  text-align: center;
  margin-bottom: 36px;
}
.about-teaser__big span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(82px, 12vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--up2-yellow);
  display: inline-block;
}
.about-teaser__big sup {
  font-size: 0.4em;
  color: var(--up2-red);
  top: -0.6em;
  position: relative;
  font-weight: 700;
}
.about-teaser__big em {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-top: -4px;
}
.about-teaser__ticks {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-teaser__ticks .t {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-dark);
}
.about-teaser__ticks .t b {
  color: var(--up2-yellow);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.about-teaser__ticks .t.is-active {
  background: rgba(245,197,24,0.08);
  border-color: var(--up2-yellow);
  color: var(--on-dark);
}
.about-teaser__ticks .t.is-active b { color: var(--up2-yellow); }

/* =========================================================
   COOKIE CONSENT v3 — backdrop + raised modal
   ========================================================= */
.cc-wrap {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.cc-wrap.is-open {
  opacity: 1;
  pointer-events: auto;
}
.cc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cc {
  position: relative;
  width: 100%;
  max-width: 920px;
  background: #161616;
  color: var(--on-dark);
  border: 1px solid var(--up2-yellow);
  border-radius: 16px;
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.7), 0 0 0 6px rgba(245, 197, 24, 0.08);
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px 28px;
  align-items: flex-start;
  transform: translateY(24px);
  transition: transform .35s ease;
}
.cc-wrap.is-open .cc { transform: translateY(0); }
/* Page scroll-lock when banner is open as a modal */
body.cc-active { overflow: hidden; }

/* HTML hidden attribute must override flex/grid display */
.cc__cats[hidden] { display: none !important; }
@media (max-width: 720px) {
  .cc { grid-template-columns: 1fr; padding: 18px 18px 20px; gap: 16px; }
}
.cc__main { min-width: 0; }
.cc__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cc__icon { font-size: 20px; }
.cc__head h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.cc__lead {
  font-size: 14px;
  line-height: 1.55;
  color: var(--on-dark-muted);
}
.cc__lead a {
  color: var(--up2-yellow);
  border-bottom: 1px solid rgba(245,197,24,0.4);
  transition: border-color .2s;
}
.cc__lead a:hover { border-bottom-color: var(--up2-yellow); }

.cc__cats {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
}
.cc__cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  background: var(--dark-3);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  cursor: pointer;
}
.cc__cat > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc__cat strong { font-size: 13px; font-weight: 600; color: var(--on-dark); }
.cc__cat span:not(.cc__switch) {
  font-size: 12px;
  color: var(--on-dark-faint);
  line-height: 1.4;
}

.cc__switch {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
}
.cc__switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%; height: 100%;
  cursor: pointer;
  margin: 0;
}
.cc__slider {
  position: absolute;
  inset: 0;
  background: var(--dark-4);
  border: 1px solid var(--line-dark-2);
  border-radius: var(--r-pill);
  transition: background .2s, border-color .2s;
}
.cc__slider::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--on-dark);
  border-radius: 50%;
  transition: transform .2s;
}
.cc__switch input:checked + .cc__slider {
  background: var(--up2-yellow);
  border-color: var(--up2-yellow);
}
.cc__switch input:checked + .cc__slider::after {
  transform: translateX(18px);
  background: var(--up2-black);
}
.cc__switch input:focus-visible + .cc__slider {
  outline: 2px solid var(--up2-yellow);
  outline-offset: 2px;
}
.cc__switch--locked {
  position: static;
  width: auto;
  height: auto;
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--up2-yellow);
  white-space: nowrap;
}

.cc__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  justify-content: center;
  min-width: 200px;
}
@media (max-width: 720px) {
  .cc__actions { flex-direction: column-reverse; min-width: 0; }
}
.cc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, border-color .2s, transform .15s;
}
.cc__btn--primary {
  background: var(--up2-yellow);
  color: var(--up2-black);
}
.cc__btn--primary:hover { background: #FFD737; transform: translateY(-1px); }
.cc__btn--ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: var(--line-dark-2);
}
.cc__btn--ghost:hover { border-color: var(--up2-yellow); color: var(--up2-yellow); }

/* Avoid covering back-to-top button */
.to-top { z-index: 195; }

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--up2-yellow);
  color: var(--up2-black);
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}
.skip-link:focus { left: 12px; }
