:root {
  --bg: #0b0d10;
  --surface: #12161b;
  --surface-2: #171c22;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef1f4;
  --muted: #8a94a0;
  --accent: #f2a33a;
  --blue: #5ea0d6;
  --radius: 14px;
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }

.eyebrow { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 20px; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; }
h2 { font-size: clamp(34px, 5.4vw, 68px); max-width: 16ch; }
.lead { font-size: clamp(17px, 1.7vw, 21px); color: var(--muted); max-width: 56ch; margin-top: 26px; }

/* header */
header.site { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, backdrop-filter .3s; }
header.site.scrolled { background: rgba(11, 13, 16, .72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
header.site .bar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo .lt { display: flex; flex-direction: column; line-height: 1; }
.logo b { font-weight: 800; letter-spacing: .34em; font-size: 17px; margin-right: -.34em; }
.logo small { font-size: 10px; letter-spacing: .22em; color: var(--muted); margin-top: 6px; text-transform: uppercase; }
nav.main { display: flex; gap: 34px; align-items: center; }
nav.main a { font-size: 14px; color: var(--muted); transition: color .2s; }
nav.main a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; font-family: inherit; }
.btn.primary { background: var(--accent); color: #17110a; }
.btn.primary:hover { transform: translateY(-2px); background: #ffb44f; }
.btn.ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn.ghost:hover { border-color: var(--text); }
nav.main .btn { padding: 10px 20px; font-size: 14px; color: #17110a; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); margin: 6px auto; transition: transform .3s, opacity .3s; }

/* hero */
.hero { border-bottom: 1px solid var(--line); min-height: 100svh; display: flex; align-items: center; padding: 100px 0 clamp(90px, 19.5vw, 400px); overflow: hidden; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 70%); }
.hero-glow { position: absolute; width: 900px; height: 900px; right: -260px; top: -120px; background: radial-gradient(circle, rgba(242,163,58,.16), transparent 62%); filter: blur(20px); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.08); } }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 88px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 24px; }
.hero .cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.blueprint { width: 100%; height: auto; overflow: visible; }
.blueprint .draw { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s cubic-bezier(.6,.05,.2,1) forwards; }
.blueprint .draw.d2 { animation-delay: .5s; } .blueprint .draw.d3 { animation-delay: 1s; } .blueprint .draw.d4 { animation-delay: 1.5s; }
.blueprint .acc { stroke: var(--accent); }
.blueprint .dim { fill: var(--muted); font-size: 11px; letter-spacing: .12em; opacity: 0; animation: fade 1s 2.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 1px; height: 54px; background: linear-gradient(var(--text), transparent); opacity: .5; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .15; } }

@keyframes scroll { to { transform: translateX(-50%); } }

/* services: six letters, six services */
.letters { display: flex; height: 540px; margin-top: 70px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lp { flex: 1; position: relative; overflow: hidden; cursor: pointer; border-right: 1px solid var(--line); background: var(--bg); padding: 30px 26px; display: flex; flex-direction: column; justify-content: flex-end; transition: flex .7s cubic-bezier(.2,.7,.2,1), background .4s; outline: none; }
.lp:last-child { border-right: 0; }
.lp:hover, .lp:focus-visible, .lp.active { flex: 3.4; background: var(--surface-2); }
.letters:hover .lp.active:not(:hover) { flex: 1; background: var(--bg); }
.lp .big { position: absolute; top: 40px; left: 12px; width: 150px; height: 170px; overflow: visible; pointer-events: none; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.lp .big text { font-family: var(--font); font-size: 172px; font-weight: 800; fill: transparent; stroke: rgba(255,255,255,.16); stroke-width: 1.3; stroke-linejoin: round; transition: stroke .4s; }
.lp:hover .big, .lp.active .big { transform: translateY(14px); }
.lp:hover .big text, .lp.active .big text { stroke: var(--accent); }
.letters:hover .lp.active:not(:hover) .big { transform: none; }
.letters:hover .lp.active:not(:hover) .big text { stroke: rgba(255,255,255,.16); }
.lp .num { position: absolute; top: 24px; right: 24px; font-size: 13px; letter-spacing: .15em; color: var(--muted); }
.lp-body { position: relative; }
.lp-body svg { width: 42px; height: 42px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.lp h3 { font-size: 20px; letter-spacing: -.01em; margin-bottom: 0; line-height: 1.15; }
.lp p { color: var(--muted); font-size: 15px; max-width: 34ch; max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; transition: max-height .6s cubic-bezier(.2,.7,.2,1), opacity .5s .1s, margin .5s; }
.lp:hover p, .lp:focus-visible p, .lp.active p { max-height: 160px; opacity: 1; margin-top: 12px; }
.letters:hover .lp.active:not(:hover) p { max-height: 0; opacity: 0; margin-top: 0; }

/* tech */
.tech { background: var(--surface); }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.tech-list { margin-top: 44px; display: grid; gap: 0; }
.tech-list div { display: flex; gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); }
.tech-list div:last-child { border-bottom: 1px solid var(--line); }
.tech-list b { color: var(--accent); font-size: 14px; letter-spacing: .12em; min-width: 34px; padding-top: 3px; }
.tech-list h3 { font-size: 19px; letter-spacing: -.005em; margin-bottom: 4px; }
.tech-list p { color: var(--muted); font-size: 15px; }
.tech-visual { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at 30% 20%, rgba(94,160,214,.14), transparent 55%), var(--bg); overflow: hidden; }
.tech-visual svg { width: 100%; height: 100%; }
.spin { transform-origin: center; animation: spin 40s linear infinite; }
.spin.rev { animation-direction: reverse; animation-duration: 60s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 70px; counter-reset: s; }
.step { border-top: 2px solid var(--line); padding-top: 26px; position: relative; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--accent); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.step.in::before { width: 100%; }
.step .n { font-size: 14px; color: var(--accent); letter-spacing: .15em; margin-bottom: 18px; }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* projects */
.projects { background: var(--surface); }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 70px; }
.proj { border-radius: var(--radius); overflow: hidden; background: var(--bg); border: 1px solid var(--line); transition: transform .35s, border-color .3s; }
.proj:hover { transform: translateY(-8px); border-color: rgba(242,163,58,.5); }
.proj .art { aspect-ratio: 4/3; background: linear-gradient(160deg, var(--surface-2), var(--bg)); position: relative; }
.proj .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.proj .tag { position: absolute; top: 14px; left: 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: rgba(0,0,0,.55); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; color: var(--muted); }
.proj .meta { padding: 24px 26px 28px; }
.proj .meta small { color: var(--accent); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.proj .meta h3 { font-size: 21px; margin: 8px 0 6px; letter-spacing: -.01em; }
.proj .meta p { color: var(--muted); font-size: 14.5px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); }
.contact-info { margin-top: 44px; display: grid; gap: 22px; }
.contact-info small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px; }
.contact-info a, .contact-info span { font-size: 19px; }
.contact-info a:hover { color: var(--accent); }
form.contact { display: grid; gap: 16px; }
form.contact label { display: grid; gap: 8px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
form.contact input, form.contact select, form.contact textarea { width: 100%; background: var(--surface); border: 1px solid var(--line); color: var(--text); padding: 15px 16px; border-radius: 10px; font-family: inherit; font-size: 16px; transition: border-color .2s; }
form.contact input:focus, form.contact select:focus, form.contact textarea:focus { outline: 0; border-color: var(--accent); }
form.contact textarea { min-height: 130px; resize: vertical; }
.consent { display: flex !important; grid-template-columns: none; gap: 12px !important; align-items: flex-start; font-size: 13px; line-height: 1.5; }
form.contact .consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; padding: 0; accent-color: var(--accent); }
.consent span { min-width: 0; overflow-wrap: anywhere; }
.form-note { font-size: 13px; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 44px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }

@media (max-width: 980px) {
  .hero .wrap, .tech-grid, .contact-grid { grid-template-columns: 1fr; }
  .blueprint-wrap { max-width: 460px; }
  .services-grid, .proj-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 26px; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  nav.main { position: fixed; inset: 76px 0 auto 0; background: rgba(11,13,16,.97); backdrop-filter: blur(14px); flex-direction: column; align-items: flex-start; padding: 26px 24px 34px; gap: 22px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .35s; }
  nav.main.open { transform: none; }
  nav.main a { font-size: 18px; color: var(--text); }
  .services-grid, .proj-grid, .steps { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .hero { padding-top: 110px; }
  .scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .blueprint .draw { stroke-dashoffset: 0; } .blueprint .dim { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* wordmark E L T E C O */
.wordmark { position: absolute; left: 0; bottom: -6.2vw; width: 100%; height: auto; padding: 0 clamp(16px, 3vw, 44px); overflow: visible; user-select: none; pointer-events: none; }
.wordmark text { font-family: var(--font); font-size: 300px; font-weight: 800; fill: transparent; stroke: rgba(255,255,255,.34); stroke-width: 1.4; stroke-linejoin: round; text-anchor: middle; opacity: 0; transform: translateY(70px); animation: rise 1.2s cubic-bezier(.2,.7,.2,1) forwards; transition: stroke .3s, fill .3s, transform .55s cubic-bezier(.2,.7,.2,1); }
.wordmark text:nth-child(1) { animation-delay: .1s; } .wordmark text:nth-child(2) { animation-delay: .2s; } .wordmark text:nth-child(3) { animation-delay: .3s; }
.wordmark text:nth-child(4) { animation-delay: .4s; } .wordmark text:nth-child(5) { animation-delay: .5s; } .wordmark text:nth-child(6) { animation-delay: .6s; }
.wordmark text.hot { stroke: var(--accent); fill: rgba(242,163,58,.08); }
@keyframes rise { to { transform: translateY(0); opacity: 1; } }

@media (max-width: 980px) {
  .letters { flex-direction: column; height: auto; }
  .lp, .lp:hover, .lp.active { flex: none; min-height: 150px; border-right: 0; border-bottom: 1px solid var(--line); background: var(--bg); }
  .lp:last-child { border-bottom: 0; }
  .lp .big { width: 110px; height: 125px; left: auto; right: 14px; top: 6px; }
  .lp .big text { font-size: 125px; }
  .lp .num { display: none; }
  .lp p, .letters:hover .lp.active:not(:hover) p { max-height: 200px; opacity: 1; margin-top: 10px; }
  
  .lp .big, .lp:hover .big, .lp.active .big { transform: none; }
  .lp .big text, .lp:hover .big text, .lp.active .big text { stroke: rgba(255,255,255,.12); }
}

footer .logo svg { width: 30px; height: 30px; } footer .logo b { font-size: 14px; }
@media (max-width: 720px) { .logo b { font-size: 15px; } .logo svg { width: 34px; height: 34px; } }

/* logo s kótami v hlavičce a patičce: nahoře velké, po rolování se hlavička zmenší */
.logo .logo-svg { width: auto; height: 150px; display: block; transition: height .35s ease; }
header.site .bar { height: 160px; transition: height .35s ease; }
header.site.scrolled .bar { height: 84px; }
header.site.scrolled .logo .logo-svg { height: 68px; }
footer .logo .logo-svg { height: 150px; }
.hero { padding-top: 190px; }
@media (max-width: 720px) {
  header.site .bar { height: 128px; }
  .logo .logo-svg { height: 112px; }
  header.site.scrolled .bar { height: 72px; }
  header.site.scrolled .logo .logo-svg { height: 58px; }
  nav.main { inset: 128px 0 auto 0; }
  header.site.scrolled nav.main { inset: 72px 0 auto 0; }
  footer .logo .logo-svg { height: 110px; }
  .hero { padding-top: 150px; }
}

@media (max-width: 720px) {
  nav.main { transform: translateY(-120%); visibility: hidden; transition: transform .35s, visibility 0s .35s; }
  nav.main.open { transform: none; visibility: visible; transition: transform .35s, visibility 0s; }
}
