/* MEVARO GROUP – automatizácia pre firmy (vizuál pôvodného webu: grafit + limetka) */
@font-face { font-family: "Big Shoulders"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/bs-latin-ext.woff2") format("woff2-variations"); 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: "Big Shoulders"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/bs-latin.woff2") format("woff2-variations"); 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: "Schibsted Grotesk"; font-style: normal; font-display: swap; font-weight: 400 900; src: url("../fonts/sg-latin-ext.woff2") format("woff2-variations"); 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: "Schibsted Grotesk"; font-style: normal; font-display: swap; font-weight: 400 900; src: url("../fonts/sg-latin.woff2") format("woff2-variations"); 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: "Martian Mono"; font-style: normal; font-display: swap; font-weight: 100 800; src: url("../fonts/mm-latin-ext.woff2") format("woff2-variations"); 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: "Martian Mono"; font-style: normal; font-display: swap; font-weight: 100 800; src: url("../fonts/mm-latin.woff2") format("woff2-variations"); 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; }

:root {
  --ink: #101214;
  --ink-2: #15181b;
  --ink-3: #1c2024;
  --ivory: #f4f1e8;
  --paper: #faf8f2;
  --mute: #a3a89f;
  --mute-dark: #5b5f58;
  --lime: #c5f467;
  --ember: #ff8a4c;
  --danger: #ff8f7a;
  --line: #f4f1e81f;
  --line-strong: #f4f1e83d;
  --line-dark: #10121424;

  --display: "Big Shoulders", "Arial Narrow", ui-sans-serif, sans-serif;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, Menlo, Consolas, monospace;

  --header-h: 4.5rem;
  --section-y: clamp(5.5rem, 12vw, 10rem);
  --gutter: clamp(1rem, 0.5rem + 2.4vw, 2.5rem);
  --maxw: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--ink); color: var(--ivory); font-family: var(--sans);
  font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--lime); color: var(--ink); padding: 0.6rem 1rem; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }

/* Zrnitosť */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Typografia */
.display { font-family: var(--display); font-weight: 800; line-height: 0.92; letter-spacing: -0.005em; font-optical-sizing: auto; }
.eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0; }
.lime { color: var(--lime); }
.dim { color: var(--mute); }

/* Tlačidlá */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3rem; padding: 0.7rem 1.35rem;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.btn svg { width: 1rem; height: 1rem; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #d4fa86; }
.btn-ghost { border-color: var(--line-strong); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--ivory); }

/* Hlavička */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 0.4s, border-color 0.4s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgb(16 18 20 / 0.82); backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand svg { width: 2rem; height: 2rem; flex: none; }
.brand-name { display: flex; align-items: baseline; gap: 0.4rem; line-height: 1; }
.brand-name b { font-family: var(--display); font-weight: 850; font-size: 1.45rem; letter-spacing: 0.01em; }
.brand-name span { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.3em; color: var(--mute); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { position: relative; font-size: 0.92rem; text-decoration: none; color: rgb(244 241 232 / 0.75); transition: color 0.2s; }
.nav a:not(.btn):hover { color: var(--ivory); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--lime); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { min-height: 2.6rem; padding: 0.5rem 1.1rem; font-size: 0.88rem; }
.menu-btn { display: none; }
@media (max-width: 880px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-weight: 600; cursor: pointer; }
  .nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: fixed; inset: var(--header-h) 0 0 0; height: calc(100dvh - var(--header-h)); overflow-y: auto; background: var(--ink); border-top: 1px solid var(--line); padding: 0.5rem var(--gutter) 1.5rem; }
  .nav.is-open a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--ivory); }
  .nav.is-open a:not(.btn)::after { display: none; }
  .nav.is-open .btn { margin-top: 1.5rem; min-height: 3rem; }
  .site-header:has(.nav.is-open) { background: var(--ink); }
  html:has(.nav.is-open) { overflow: hidden; }
  html:has(.nav.is-open) .fab { display: none; }
}

/* Hero */
.hero { min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 5rem)); }
.lane-pulse { stroke-dasharray: 110 1890; animation: lane-run 7s linear infinite; }
.node-pulse { transform-box: fill-box; transform-origin: center; animation: node 2.8s var(--ease-soft) infinite; }
@keyframes lane-run { to { stroke-dashoffset: -2000; } }
@keyframes node { 0%, 100% { opacity: 0.9; transform: scale(1); } 50% { opacity: 0.25; transform: scale(2.2); } }
.hero .wrap { flex: 1; display: flex; flex-direction: column; }
.hero-eyebrow { display: flex; align-items: center; gap: 0.6rem; color: var(--mute); }
.hero-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgb(197 244 103 / 0.15); }
.hero h1 { margin-top: 1.6rem; font-size: clamp(3.4rem, 1.5rem + 8.4vw, 9.4rem); }
.hero h1 .l { display: block; }
.hero h1 .l2 { padding-left: clamp(1rem, 6vw, 6rem); }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem 4rem; margin-top: clamp(2rem, 4vw, 3.5rem); }
.hero-row p { max-width: 38ch; color: rgb(244 241 232 / 0.75); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-foot { margin-top: auto; padding-block: 3rem 1.5rem; }
.hero-foot .inner { display: grid; grid-template-columns: auto 1fr 1fr; gap: 1.5rem 3rem; align-items: center; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.scroll { display: flex; align-items: center; gap: 0.75rem; color: var(--mute); }
.scroll i { position: relative; width: 1px; height: 2.25rem; background: var(--line-strong); overflow: hidden; }
.scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--lime); animation: drop 2.2s var(--ease-soft) infinite; }
@keyframes drop { to { top: 100%; } }
.hero-note { display: flex; gap: 0.75rem; font-size: 0.85rem; color: rgb(244 241 232 / 0.7); }
.hero-note .eyebrow { color: var(--lime); padding-top: 0.2rem; }
.hero-note strong { color: var(--ivory); font-weight: 600; }

/* Pás */
.ticker { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 5vw, 3.5rem); isolation: isolate; }
.band { transform: rotate(-2.2deg); width: 110%; margin-left: -5%; background: var(--lime); color: var(--ink); overflow: hidden; }
.band-2 { position: absolute; left: 0; top: 50%; transform: translateY(-50%) rotate(2deg); background: transparent; color: var(--ivory); border-block: 1px solid var(--line-strong); opacity: 0.5; z-index: -1; }
.band-track { display: flex; width: max-content; will-change: transform; }
.band-track span { display: inline-flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); padding-inline: clamp(0.75rem, 1.5vw, 1.5rem); white-space: nowrap; font-family: var(--display); font-weight: 850; font-size: clamp(2.2rem, 1.2rem + 4vw, 4.6rem); line-height: 1; padding-block: 0.7rem 0.55rem; text-transform: uppercase; }
.band-track svg { width: 0.5em; height: 0.5em; flex: none; }

/* Sekcie */
.section { padding-block: var(--section-y); position: relative; }
.sec-head { max-width: 62rem; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.sec-label { display: flex; align-items: baseline; gap: 2.5rem; color: var(--mute); }
.sec-label b { color: var(--lime); font-weight: 400; }
.sec-head h2 { font-size: clamp(2.8rem, 1.6rem + 5vw, 6.2rem); }
.sec-head h2 .dim { color: rgb(244 241 232 / 0.55); }
.sec-head p { margin-top: 1.75rem; max-width: 46ch; color: rgb(244 241 232 / 0.72); }

/* Služby – akordeón */
.acc { border-top: 1px solid var(--line-strong); }
.acc-item { border-bottom: 1px solid var(--line); position: relative; }
.acc-item::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease); }
.acc-item.is-open::before { transform: scaleX(1); }
.acc-btn { width: 100%; display: grid; grid-template-columns: 4rem minmax(0, 1.2fr) minmax(0, 1fr) 2.5rem; gap: 1.5rem; align-items: start; text-align: left; padding: clamp(1.5rem, 3vw, 2.25rem) 0; background: none; border: 0; cursor: pointer; }
.acc-no { font-family: var(--mono); font-size: 0.7rem; color: var(--mute); padding-top: 0.9rem; transition: color 0.3s; }
.acc-item.is-open .acc-no { color: var(--lime); }
.acc-title { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 1.3rem + 3vw, 4rem); line-height: 0.95; transition: transform 0.6s var(--ease); }
.acc-btn:hover .acc-title { transform: translateX(0.4rem); }
.acc-sum { font-size: 0.95rem; color: rgb(244 241 232 / 0.7); padding-top: 0.6rem; max-width: 40ch; }
.acc-ico { justify-self: end; margin-top: 0.5rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background-color 0.3s, border-color 0.3s; }
.acc-ico svg { width: 0.9rem; height: 0.9rem; transition: transform 0.5s var(--ease); }
.acc-item.is-open .acc-ico { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.acc-item.is-open .acc-ico svg { transform: rotate(45deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; min-height: 0; }
.acc-body { display: grid; grid-template-columns: 4rem minmax(0, 1.2fr) minmax(0, 1fr) 2.5rem; gap: 1.5rem; padding-bottom: 2.5rem; }
.acc-body .eyebrow { grid-column: 2; color: var(--mute); padding-top: 0.4rem; }
.acc-body ul { grid-column: 3; list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.acc-body li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.65rem; font-size: 0.95rem; color: rgb(244 241 232 / 0.85); }
.acc-body li::before { content: ""; width: 0.45rem; height: 0.45rem; margin-top: 0.55rem; border-radius: 50%; border: 1.5px solid var(--lime); }
.acc-body .note { grid-column: 3; margin-top: 0.5rem; font-size: 0.85rem; color: var(--mute); }

/* Ukážky – svetlá sekcia so stohovanými panelmi */
.on-light { background: var(--ivory); color: var(--ink); }
.on-light .sec-label { color: var(--mute-dark); }
.on-light .sec-label b { color: var(--ink); }
.on-light .sec-head h2 .dim { color: rgb(16 18 20 / 0.45); }
.on-light .sec-head p { color: rgb(16 18 20 / 0.7); }
.on-light :focus-visible { outline-color: var(--ink); }
.panel {
  position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  min-height: min(76vh, 620px); margin-bottom: clamp(3rem, 8vh, 6rem); border-radius: 6px; overflow: hidden; background: var(--paper);
  box-shadow: 0 0 0 1px var(--line-dark), 0 30px 60px -40px rgb(16 18 20 / 0.45); transform-origin: center top; will-change: transform;
}
.panel:last-child { margin-bottom: 0; }
.panel:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.panel:nth-child(even) .panel-vis { order: 2; }
.panel-vis { position: relative; background: var(--ink-3); color: var(--ivory); padding: 1.5rem; display: flex; flex-direction: column; }
.panel-vis .meta { display: flex; justify-content: space-between; color: rgb(244 241 232 / 0.5); }
.panel-vis .stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 1.5rem; }
.panel-txt { padding: clamp(1.75rem, 3vw, 2.75rem); display: flex; flex-direction: column; }
.panel-txt .top { display: flex; justify-content: space-between; color: var(--mute-dark); font-size: 0.9rem; font-weight: 600; }
.panel-txt .top span:first-child { display: inline-flex; align-items: center; gap: 0.5rem; }
.panel-txt .top span:first-child::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgb(16 18 20 / 0.1); }
.panel-txt h3 { margin-top: 1.25rem; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); line-height: 0.95; }
.panel-txt p { margin-top: 1rem; color: rgb(16 18 20 / 0.72); max-width: 44ch; font-size: 0.98rem; }
.steps-mini { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; counter-reset: s; }
.steps-mini li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; gap: 0.5rem; font-size: 0.92rem; padding: 0.6rem 0; border-top: 1px solid var(--line-dark); }
.steps-mini li::before { content: "0" counter(s); font-family: var(--mono); font-size: 0.68rem; color: var(--mute-dark); padding-top: 0.2rem; }
.panel-txt .foot { margin-top: auto; padding-top: 1.5rem; font-size: 0.8rem; color: var(--mute-dark); }

/* Vizuál: faktúra */
.inv { width: min(100%, 23rem); background: var(--paper); color: var(--ink); border-radius: 4px; padding: 1.1rem 1.2rem; font-size: 0.8rem; box-shadow: 0 24px 50px -30px #000; transform: rotate(-1.5deg); }
.inv-h { display: flex; justify-content: space-between; align-items: end; border-bottom: 2px solid var(--ink); padding-bottom: 0.6rem; }
.inv-h b { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.inv-h span { font-family: var(--mono); font-size: 0.6rem; color: var(--mute-dark); text-align: right; }
.inv-g { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; padding: 0.75rem 0; }
.inv-g small { display: block; font-size: 0.62rem; color: var(--mute-dark); }
.inv-g code, .inv-t code { font-family: var(--mono); font-size: 0.68rem; }
.inv-t { display: flex; justify-content: space-between; align-items: center; border-top: 2px solid var(--ink); padding-top: 0.55rem; }
.mark { position: relative; z-index: 0; padding: 0 0.15em; margin: 0 -0.15em; white-space: nowrap; }
.mark::before { content: ""; position: absolute; inset: -0.05em 0; z-index: -1; background: var(--lime); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.mark.is-on::before { transform: scaleX(1); }
.ledger { width: min(100%, 23rem); margin-top: 1.1rem; border: 1px solid var(--line-strong); border-radius: 4px; font-family: var(--mono); font-size: 0.62rem; overflow: hidden; }
.ledger div { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr) auto; gap: 0.6rem; padding: 0.5rem 0.75rem; border-top: 1px solid var(--line); white-space: nowrap; }
.ledger div > span { overflow: hidden; text-overflow: ellipsis; }
.ledger div:first-child { border-top: 0; color: var(--mute); }
.ledger .new { transition: background-color 0.6s; }
.ledger .new.is-on { background: rgb(197 244 103 / 0.14); }
.ledger .new span { opacity: 0; transition: opacity 0.4s; }
.ledger .new.is-on span { opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; width: min(100%, 23rem); }
.chips span { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; padding: 0.25rem 0.6rem; border-radius: 999px; border: 1px solid var(--line-strong); opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s var(--ease); }
.chips span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.chips span.is-on { opacity: 1; transform: none; }
.replay { margin-top: 1rem; background: none; border: 0; padding: 0.3rem 0; color: var(--lime); font-size: 0.85rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 0.3em; }

/* Vizuál: prepojenie systémov */
.flow { position: relative; width: min(100%, 26rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.flow .node { position: relative; z-index: 1; border: 1px solid var(--line-strong); background: var(--ink-2); border-radius: 6px; padding: 0.8rem 0.9rem; }
.flow .node small { display: block; font-size: 0.7rem; font-weight: 500; color: var(--mute); }
.flow .node b { display: block; margin-top: 0.3rem; font-family: var(--display); font-size: 1.35rem; font-weight: 800; line-height: 1; }
.flow .node.src { grid-column: 1 / -1; justify-self: center; width: 62%; border-color: var(--lime); text-align: center; }
.flow svg.wires { grid-column: 1 / -1; width: 100%; height: 4rem; overflow: visible; }
.flow .node:not(.src) { margin-inline: 0.25rem; padding: 0.75rem 0.35rem; text-align: center; min-width: 0; }
.flow .node:not(.src) small { font-size: clamp(0.62rem, 2.6vw, 0.7rem); }
.flow .node:not(.src) b { font-size: clamp(0.8rem, 3.9vw, 1.15rem); white-space: nowrap; }
.flow .wire { fill: none; stroke: rgb(244 241 232 / 0.22); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.flow .wire-pulse { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-dasharray: 10 90; animation: wire 2.6s linear infinite; vector-effect: non-scaling-stroke; }
.flow .wire-pulse.d2 { animation-delay: -0.9s; }
.flow .wire-pulse.d3 { animation-delay: -1.7s; }
@keyframes wire { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* Vizuál: kalendár sociálnych sietí */
.cal { width: min(100%, 24rem); }
.cal-h { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 600; color: var(--mute);  }
.cal-g { margin-top: 0.75rem; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.35rem; }
.cal-w { margin-top: 0.9rem; }
.cal-w + .cal-g { margin-top: 0.4rem; }
.cal-w span { font-size: 0.68rem; color: var(--mute); padding-left: 0.3rem; }
.cal-g div { aspect-ratio: 1; border-radius: 4px; border: 1px solid var(--line); padding: 0.25rem 0.3rem; font-family: var(--mono); font-size: 0.55rem; color: var(--mute); display: flex; flex-direction: column; justify-content: space-between; }
.cal-g div.post { border-color: rgb(197 244 103 / 0.5); color: var(--ivory); }
.cal-g div.post i { display: flex; gap: 2px; }
.cal-g div.post i::before, .cal-g div.post i::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.cal-g div.post i::after { background: var(--ivory); }
.cal-g div.post.one i::after { display: none; }
.cal-g div.today { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.cal-g div.today i::before { background: var(--ink); }
.cal-g div.today i::after { background: var(--ink); opacity: 0.5; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.9rem; font-size: 0.72rem; color: var(--mute); }
.cal-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.cal-legend span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.cal-legend span:nth-child(2)::before { background: var(--ivory); }

/* Vizuál: interná aplikácia */
.app { width: min(100%, 25rem); border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: var(--ink-2); }
.app-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--line); font-size: 0.8rem; font-weight: 600; }
.app-bar span { font-family: var(--mono); font-size: 0.56rem; color: var(--mute); font-weight: 400; }
.app-row { display: grid; grid-template-columns: 1fr auto; gap: 0.8rem; align-items: center; padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--line); font-size: 0.8rem; }
.app-row:last-child { border-bottom: 0; }
.app-row small { display: block; font-size: 0.66rem; color: var(--mute); }
.pill { font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.24rem 0.5rem; border-radius: 999px; border: 1px solid var(--line-strong); white-space: nowrap; }
.pill.ok { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.pill.wait { border-color: var(--ember); color: var(--ember); }

/* Zásady */
.principles { border-top: 1px solid var(--line); }
.pr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 1.5rem 2rem; align-items: center; padding-block: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.pr .eyebrow { color: var(--lime); display: flex; align-items: center; gap: 0.6rem; }
.pr .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--lime); }
.pr h3 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.8rem); line-height: 0.92; }
.pr p { font-size: 0.92rem; color: rgb(244 241 232 / 0.7); }

/* Postup */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.timeline::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.timeline::after { content: ""; position: absolute; top: 5px; left: 0; height: 1px; width: calc(var(--p, 0) * 100%); background: var(--lime); }
.timeline li { position: relative; padding-top: 2.25rem; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); border: 1.5px solid var(--mute-dark); z-index: 1; transition: background-color 0.4s, border-color 0.4s; }
.timeline li.is-on::before { background: var(--lime); border-color: var(--lime); }
.timeline .eyebrow { color: var(--lime); }
.timeline h3 { margin-top: 0.9rem; font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.15rem); line-height: 0.98; }
.timeline p { margin-top: 0.75rem; font-size: 0.9rem; color: rgb(244 241 232 / 0.68); }

/* Kontakt */
.contact { border-top: 1px solid var(--line); overflow: hidden; }
.contact .eyebrow-row { display: flex; align-items: center; gap: 1rem; color: var(--mute); }
.contact .eyebrow-row b { color: var(--lime); font-weight: 400; }
.contact .eyebrow-row i { width: 3rem; height: 1px; background: var(--line-strong); }
.contact h2 { font-size: clamp(3.2rem, 1.6rem + 7vw, 8.6rem); margin-top: 1.25rem; }
.contact h2 .l { display: block; }
.contact h2 .l2 { padding-left: clamp(1rem, 6vw, 6rem); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3rem clamp(2rem, 6vw, 6rem); margin-top: clamp(3rem, 6vw, 5rem); }
.contact-info > p { color: rgb(244 241 232 / 0.75); max-width: 34ch; }
.contact-info dl { margin: 2.5rem 0 0; display: grid; gap: 1.5rem; }
.contact-info dt { color: var(--mute); }
.contact-info dd { margin: 0.4rem 0 0; }
.contact-info a { text-decoration-color: var(--line-strong); text-underline-offset: 0.25em; }
.contact-info a:hover { text-decoration-color: var(--lime); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem 2rem; align-content: start; position: relative; }
.field { display: grid; gap: 0.35rem; position: relative; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field label i { color: var(--lime); font-style: normal; margin-left: 0.2rem; }
.field label .opt { font-weight: 400; color: var(--mute); }
.field .ctl { position: relative; }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); padding: 0.75rem 0; border-radius: 0; transition: border-color 0.3s; }
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.5; display: block; }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f4f1e8' stroke-width='1.6'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; background-size: 1rem; }
.field select option { background: var(--ink-2); color: var(--ivory); }
.field input::placeholder, .field textarea::placeholder { color: rgb(244 241 232 / 0.4); }
.field .ctl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); pointer-events: none; }
.field .ctl:focus-within::after { transform: scaleX(1); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field [aria-invalid="true"] { border-bottom-color: var(--danger); }
.field .err { font-size: 0.78rem; color: var(--danger); }
.field .err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.form-foot p { font-size: 0.82rem; color: var(--mute); max-width: 40ch; }
.form-foot a { color: var(--ivory); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.form-msg { grid-column: 1 / -1; padding: 1rem 1.2rem; border-radius: 6px; font-size: 0.95rem; }
.form-msg[hidden] { display: none; }
.form-msg.ok { background: rgb(197 244 103 / 0.12); border: 1px solid rgb(197 244 103 / 0.45); }
.form-msg.bad { background: rgb(255 143 122 / 0.1); border: 1px solid rgb(255 143 122 / 0.5); }

/* Plávajúce tlačidlo */
.fab { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: 0.7rem; padding: 0.4rem 1.1rem 0.4rem 0.4rem; border-radius: 999px; background: var(--lime); color: var(--ink); text-decoration: none; box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.6); transition: transform 0.4s var(--ease), opacity 0.3s; }
.fab:hover { transform: translateY(-2px); }
.fab.is-hidden { opacity: 0; pointer-events: none; transform: translateY(1rem); }
.fab svg { width: 2.3rem; height: 2.3rem; }
.fab b { display: block; font-family: var(--display); font-weight: 850; font-size: 1.15rem; line-height: 1; text-transform: uppercase; }
.fab small { display: block; font-size: 0.68rem; opacity: 0.75; }

/* Pätička */
.site-footer { border-top: 1px solid var(--line); padding-block: 4rem 2rem; font-size: 0.9rem; color: rgb(244 241 232 / 0.68); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-grid > div:first-child p { margin-top: 1.25rem; max-width: 30ch; }
.site-footer h2 { font-weight: 600; font-size: 0.85rem; color: var(--mute); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--lime); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-base { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.8rem; color: var(--mute); }
.footer-base a { color: var(--mute); }

/* Podstránky */
.page-head { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { font-size: clamp(3.2rem, 1.6rem + 6vw, 7rem); }
.page-head .lead { margin-top: 1.75rem; max-width: 50ch; color: rgb(244 241 232 / 0.75); font-size: 1.15rem; }
.page-head .eyebrow { color: var(--lime); }
.projects { margin-bottom: var(--section-y); border-top: 1px solid var(--line-strong); }
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 15rem; gap: 1.5rem 3rem; align-items: start; padding-block: 2.5rem; border-bottom: 1px solid var(--line); }
.project h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 1.5rem + 3vw, 4rem); line-height: 0.95; }
.project .eyebrow { margin-top: 0.75rem; color: var(--mute); }
.project > .btn { justify-self: end; }
.project p { color: rgb(244 241 232 / 0.75); max-width: 50ch; }

.legal-wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 3rem 4rem; padding-bottom: var(--section-y); }
.legal-nav { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.legal-nav .eyebrow { color: var(--lime); }
.legal-nav ul { list-style: none; margin: 1.5rem 0 0; padding: 0; border-left: 1px solid var(--line); }
.legal-nav a { display: block; margin-left: -1px; padding: 0.4rem 0 0.4rem 1rem; border-left: 2px solid transparent; text-decoration: none; color: rgb(244 241 232 / 0.6); }
.legal-nav a:hover { color: var(--ivory); }
.legal-nav a[aria-current="page"] { border-left-color: var(--lime); color: var(--ivory); }
.legal { max-width: 68ch; min-width: 0; }
.legal .meta { font-size: 0.85rem; color: var(--mute); margin-bottom: 2.5rem; }
.legal .intro { font-size: 1.15rem; color: var(--ivory); line-height: 1.55; }
.legal h2 { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1.05; margin: 3rem 0 1rem; }
.legal p, .legal li { color: rgb(244 241 232 / 0.78); }
.legal p + p { margin-top: 0.9rem; }
.legal ol, .legal ul { padding-left: 1.3rem; margin: 0.6rem 0; display: grid; gap: 0.55rem; }
.legal li::marker { color: var(--lime); font-family: var(--mono); font-size: 0.8em; }
.legal strong { color: var(--ivory); font-weight: 600; }
.legal a { color: var(--lime); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.notfound { min-height: 80svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); }
.notfound h1 { font-size: clamp(3.4rem, 1.6rem + 8vw, 9rem); margin-top: 1.25rem; }
.notfound .eyebrow { color: var(--lime); }
.notfound p { margin-top: 1.5rem; color: rgb(244 241 232 / 0.75); }
.notfound .btn { margin-top: 2rem; align-self: flex-start; }

/* Odhalenie pri scrollovaní (bez JS je všetko viditeľné) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .split .l { overflow: hidden; padding-block: 0.16em 0.26em; margin-block: -0.16em -0.26em; }
.js .split .l > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .split.is-in .l > span { transform: none; }

/* Responzivita */
@media (max-width: 1100px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 3rem; }
  .timeline::before, .timeline::after { display: none; }
}
@media (max-width: 960px) {
  .sec-head { grid-template-columns: 1fr; }
  .hero-row { grid-template-columns: 1fr; }
  .hero-foot .inner { grid-template-columns: 1fr 1fr; }
  .hero-foot .scroll { display: none; }
  .acc-btn, .acc-body { grid-template-columns: 2.25rem minmax(0, 1fr) 2.5rem; gap: 0.75rem 1rem; }
  .acc-sum { grid-column: 2; grid-row: 2; padding-top: 0; }
  .acc-ico { grid-column: 3; grid-row: 1; margin-top: 0.2rem; }
  .acc-no { padding-top: 0.6rem; }
  .acc-body .eyebrow, .acc-body ul, .acc-body .note { grid-column: 2; }
  .panel, .panel:nth-child(even) { grid-template-columns: 1fr; min-height: 0; }
  .panel:nth-child(even) .panel-vis { order: 0; }
  .panel-vis { min-height: 22rem; }
  .pr { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .project { grid-template-columns: 1fr; }
  .project > .btn { justify-self: stretch; }
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
}
@media (max-width: 640px) {
  .hero-foot .inner { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { padding: 0 0 2.25rem 2rem; border-left: 1px solid var(--line-strong); margin-left: 5px; }
  .timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
  .timeline li::before { left: -6px; }
  .timeline h3 { margin-top: 0.5rem; }
  .form { grid-template-columns: 1fr; }
  .panel { position: relative; top: 0; margin-bottom: 1.5rem; }
  .panel-vis { min-height: 0; }
  .fab small { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .pr:nth-child(even) h3 { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .split .l > span { transform: none; }
  .lane-pulse, .wire-pulse { display: none; }
}

/* Riadky rozdelených nadpisov */
.split .l { display: block; }

/* Vizuál: týždenný plán zákaziek */
.board { width: min(100%, 26rem); }
.board-h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line-strong); }
.board-h span:first-child { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.board-h span:last-child, .board .day, .board .who { font-size: 0.7rem; font-weight: 500; color: var(--mute); }
.board-g { display: grid; grid-template-columns: 2.6rem repeat(5, minmax(0, 1fr)); grid-auto-rows: 2.6rem; gap: 0.35rem 0.3rem; margin-top: 0.6rem; align-items: center; }
.board-g .day { grid-row: 1; align-self: end; padding-bottom: 0.2rem; }
.board-g .who { grid-column: 1; }
.job { align-self: stretch; display: flex; align-items: center; padding: 0 0.55rem; border-radius: 3px; font-size: 0.7rem; line-height: 1.15; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.job.done { background: var(--lime); color: var(--ink); font-weight: 600; }
.job.plan { border: 1px solid var(--line-strong); color: var(--ivory); }
.job.wait { border: 1px dashed var(--ember); color: var(--ember); }
.board-l { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-top: 1rem; font-size: 0.7rem; color: var(--mute); }
.board-l span { display: inline-flex; align-items: center; gap: 0.45rem; }
.board-l span::before { content: ""; width: 1.1rem; height: 0.5rem; border-radius: 2px; }
.board-l .done::before { background: var(--lime); }
.board-l .plan::before { border: 1px solid var(--line-strong); }
.board-l .wait::before { border: 1px dashed var(--ember); }

@media (max-width: 640px) {
  .sec-head h2 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .contact h2 { font-size: clamp(2.4rem, 11.5vw, 3.2rem); }
}
