:root {
    --bg: #08090b;
    --bg-2: #0d0e11;
    --bg-elev: #101116;
    --bg-elev-2: #16171c;
    --ink: #ededec;
    --ink-2: #c8c8c5;
    --muted: #6a6a68;
    --muted-2: #888885;
    --line: #1c1d22;
    --line-strong: #2a2b31;
    --accent: #c6ff3e;
    --accent-glow: rgba(198,255,62,.2);
    --accent-2: #ff5e3a;
    --ok: #51c878;

    --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --pad-x: clamp(20px, 4.5vw, 64px);
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }
  ::selection { background: var(--accent); color: #0a0a0a; }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }

  /* animated grid background */
  body::before {
    content: "";
    position: fixed; 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 80% 60% at 50% 30%, #000 10%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 10%, transparent 80%);
    opacity: .45;
    pointer-events: none;
    z-index: 0;
    animation: drift 60s linear infinite;
  }
  @keyframes drift {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 64px 64px, 64px 64px; }
  }

  /* spotlight accent in hero */
  .hero::before {
    content: "";
    position: absolute;
    top: -10%; left: 30%; right: -10%; bottom: -20%;
    background: radial-gradient(ellipse 60% 50% at 60% 40%, var(--accent-glow), transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
  }

  /* ---------- STATUS BAR ---------- */
  .status-bar {
    position: relative; z-index: 10;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding: 10px var(--pad-x);
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--muted-2);
    letter-spacing: .04em;
    background: var(--bg);
  }
  .status-bar > div { display: inline-flex; align-items: center; gap: 18px; }
  .status-bar .dot { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
  .status-bar .dot::before {
    content: "";
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    animation: blink 2s infinite;
  }
  @keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
  @media (max-width: 720px) {
    .status-bar { font-size: 10.5px; }
    .status-bar > div { gap: 12px; }
    .status-bar .hide-sm { display: none; }
  }

  /* ---------- NAV ---------- */
  .nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    padding: 18px var(--pad-x);
    background: color-mix(in oklab, var(--bg), transparent 6%);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
  }
  .nav.scrolled { border-bottom-color: var(--line); }
  .brand {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--mono);
    font-weight: 600;
    font-size: 14px;
  }
  .brand-mark {
    width: 24px; height: 24px;
    border-radius: 5px;
    background: var(--accent);
    color: #0a0a0a;
    display: grid; place-items: center;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 0 16px var(--accent-glow);
  }
  .brand .slash { color: var(--muted); }
  .nav-links {
    display: flex; align-items: center; gap: 28px;
    font-family: var(--mono);
    font-size: 13px;
  }
  .nav-links a { color: var(--ink-2); transition: color .15s ease; position: relative; }
  .nav-links a:hover { color: var(--accent); }
  .nav-links a::before {
    content: "["; margin-right: 2px; color: var(--muted); opacity: 0;
    transition: opacity .15s ease;
  }
  .nav-links a::after {
    content: "]"; margin-left: 2px; color: var(--muted); opacity: 0;
    transition: opacity .15s ease;
  }
  .nav-links a:hover::before, .nav-links a:hover::after { opacity: 1; }

  .nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    background: var(--accent); color: #0a0a0a;
    font-family: var(--mono);
    font-weight: 600; font-size: 13px;
    transition: all .2s ease;
    box-shadow: 0 0 0 0 var(--accent-glow);
  }
  .nav-cta:hover {
    box-shadow: 0 0 24px var(--accent-glow);
    transform: translateY(-1px);
  }
  @media (max-width: 920px) { .nav-links { display: none; } }

  /* ---------- HERO ---------- */
  .hero {
    position: relative; z-index: 1;
    padding: clamp(48px, 6vw, 90px) var(--pad-x) clamp(40px, 5vw, 64px);
  }

  .hero-tag {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted-2);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 40px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-2);
  }
  .hero-tag .pulse {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    animation: blink 2s infinite;
  }
  .hero-tag b { color: var(--ink); font-weight: 500; }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .9fr;
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
  }
  @media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

  .hero h1 {
    font-family: var(--sans);
    font-weight: 600;
    font-size: clamp(54px, 8.6vw, 132px);
    line-height: .94;
    letter-spacing: -.04em;
    margin: 0 0 36px;
  }
  .hero h1 .accent { color: var(--accent); }
  .hero h1 .punct { color: var(--accent); }
  .hero h1 .strike {
    position: relative; display: inline-block;
    color: var(--muted-2);
  }
  .hero h1 .strike::after {
    content: ""; position: absolute;
    left: -2%; right: -2%; top: 52%; height: 4px;
    background: var(--accent-2);
    transform: rotate(-2deg);
  }

  .hero-lede {
    font-size: clamp(17px, 1.4vw, 19px);
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 56ch;
    margin: 0 0 36px;
  }
  .hero-lede b { color: var(--ink); font-weight: 600; }
  .hero-lede .hl { color: var(--accent); font-weight: 500; }

  .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px;
    border-radius: 6px;
    font-family: var(--mono);
    font-weight: 500; font-size: 13px;
    border: 1px solid transparent;
    transition: all .2s ease;
    cursor: pointer;
  }
  .btn .arr { transition: transform .2s ease; }
  .btn:hover .arr { transform: translateX(3px); }
  .btn-primary {
    background: var(--accent); color: #0a0a0a;
    box-shadow: 0 0 0 0 var(--accent-glow);
  }
  .btn-primary:hover { box-shadow: 0 0 32px var(--accent-glow); }
  .btn-ghost { border-color: var(--line-strong); color: var(--ink); }
  .btn-ghost:hover { border-color: var(--ink); background: var(--bg-elev); }

  /* hero-right: portrait + terminal stacked */
  .hero-right { display: grid; gap: 16px; }

  /* portrait card */
  .portrait-card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 260px;
  }
  .portrait {
    position: relative;
    aspect-ratio: 4 / 5;
    background:
      repeating-linear-gradient(135deg,
        #1a1c20 0 14px, #131419 14px 28px);
    overflow: hidden;
  }
  .portrait::after {
    content: "FOTKA — ZDENĚK";
    position: absolute;
    inset: 0;
    display: grid; place-items: center;
    font-family: var(--mono);
    font-size: 10.5px; letter-spacing: .18em;
    color: var(--muted);
  }
  .portrait-meta {
    padding: 22px;
    display: flex; flex-direction: column;
    justify-content: space-between;
    gap: 18px;
  }
  .portrait-meta .row {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--muted);
    display: grid; gap: 4px;
  }
  .portrait-meta .row b { color: var(--ink); font-weight: 500; font-family: var(--sans); font-size: 15px; }
  .portrait-meta .row b.big {
    font-family: var(--sans); font-weight: 600;
    font-size: 22px; line-height: 1; letter-spacing: -.02em;
  }
  .portrait-meta .row.accent b { color: var(--accent); }
  .portrait-meta .label { text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

  /* terminal */
  .terminal {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.7;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,.55);
  }
  .term-head {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-elev-2);
  }
  .term-dots { display: flex; gap: 6px; }
  .term-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
  .term-dots span:nth-child(1) { background: #ff5f57; }
  .term-dots span:nth-child(2) { background: #febc2e; }
  .term-dots span:nth-child(3) { background: #28c840; }
  .term-title { color: var(--muted); font-size: 11.5px; margin-left: 8px; }
  .term-body {
    padding: 16px 18px;
    min-height: 200px;
  }
  .term-line { white-space: pre-wrap; word-break: break-word; }
  .term-line .prompt { color: var(--accent); margin-right: 8px; }
  .term-line .arrow  { color: var(--muted-2); margin-right: 8px; }
  .term-line .cmd    { color: var(--ink); }
  .term-line .ok     { color: var(--ok); }
  .term-line .dim    { color: var(--muted); }
  .term-line .accent { color: var(--accent); }
  .term-line .url    { color: #7dd3fc; }
  .cursor {
    display: inline-block;
    width: 8px; height: 14px;
    background: var(--accent);
    vertical-align: -2px;
    animation: cursor 1s steps(2) infinite;
  }
  @keyframes cursor { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

  /* ---------- BIG MARQUEE (typographic band) ---------- */
  .mega-band {
    position: relative; z-index: 1;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background: var(--bg);
    padding: 8px 0;
  }
  .mega-track {
    display: inline-flex; align-items: center;
    white-space: nowrap;
    animation: scroll 28s linear infinite;
    font-family: var(--sans);
    font-weight: 700;
    font-size: clamp(80px, 14vw, 200px);
    line-height: 1;
    letter-spacing: -.04em;
  }
  .mega-track > span {
    display: inline-flex; align-items: center;
    gap: 36px;
  }
  .mega-track .item { display: inline-block; padding: 0 28px; }
  .mega-track .dim { color: transparent; -webkit-text-stroke: 1.5px var(--ink-2); }
  .mega-track .accent { color: var(--accent); }
  .mega-track .star {
    display: inline-block;
    width: .65em; height: .65em;
    border-radius: 50%;
    background: var(--accent);
    margin: 0 28px;
    animation: rot 6s linear infinite;
  }
  @keyframes rot { from { transform: rotate(0); } to { transform: rotate(360deg); } }
  @keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* tech-stack ribbon */
  .tech-ribbon {
    position: relative; z-index: 1;
    overflow: hidden;
    padding: 16px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .tech-track {
    display: inline-flex; gap: 0;
    animation: scroll 50s linear infinite reverse;
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted-2);
  }
  .tech-track .item { padding: 0 26px; }
  .tech-track .sep { color: var(--accent); }

  /* ---------- WHY SOLO ---------- */
  #proc {
    position: relative; z-index: 1;
    padding: clamp(40px, 5vw, 80px) var(--pad-x);
  }
  .sec-head {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 60px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }
  @media (max-width: 720px) { .sec-head { grid-template-columns: 1fr; gap: 16px; } }
  .sec-tag {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .sec-tag { display: inline-flex; align-items: center; gap: 8px; }
  .sec-tag::before {
    content: "";
    display: inline-block;
    width: 16px; height: 1px;
    background: var(--accent);
  }
  .sec-title {
    font-family: var(--sans);
    font-weight: 600;
    font-size: clamp(36px, 5.4vw, 72px);
    line-height: .95;
    letter-spacing: -.035em;
    margin: 0;
  }
  .sec-title .accent { color: var(--accent); }
  .sec-title .dim { color: var(--muted); }

  .compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
  }
  @media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
  .compare > div {
    padding: 36px 32px;
    position: relative;
  }
  .compare > div:first-child {
    border-right: 1px solid var(--line);
    background: var(--bg-elev);
  }
  @media (max-width: 760px) {
    .compare > div:first-child { border-right: none; border-bottom: 1px solid var(--line); }
  }
  .compare h4 {
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin: 0 0 8px;
    font-weight: 500;
  }
  .compare h4.win { color: var(--accent); }
  .compare h4.win::before { content: "✓ "; }
  .compare h4.lose::before { content: "✗ "; color: var(--accent-2); }
  .compare .big-num {
    font-family: var(--sans);
    font-weight: 700;
    font-size: clamp(48px, 6.5vw, 96px);
    line-height: 1;
    letter-spacing: -.03em;
    margin: 0 0 16px;
  }
  .compare .big-num .accent { color: var(--accent); }
  .compare .big-num .strike-thin {
    color: var(--muted-2);
    text-decoration: line-through;
    text-decoration-color: var(--accent-2);
    text-decoration-thickness: 3px;
  }
  .compare p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 0 0 18px;
    max-width: 38ch;
  }
  .compare ul {
    margin: 0; padding: 0; list-style: none;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink-2);
    display: grid; gap: 10px;
  }
  .compare li::before { margin-right: 10px; }
  .compare .col-them li::before { content: "›"; color: var(--accent-2); }
  .compare .col-me   li::before { content: "›"; color: var(--accent); }

  .solo-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  @media (max-width: 880px) { .solo-grid { grid-template-columns: 1fr; } }
  .solo-card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 28px;
    transition: border-color .2s ease, transform .25s ease;
  }
  .solo-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
  .solo-card .n {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 14px;
    letter-spacing: .06em;
  }
  .solo-card h3 {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 24px;
    letter-spacing: -.02em;
    margin: 0 0 12px;
    line-height: 1.15;
  }
  .solo-card p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted-2);
    margin: 0;
  }

  /* ---------- SECTIONS COMMON ---------- */
  section { position: relative; z-index: 1; padding: clamp(40px, 5vw, 80px) var(--pad-x); }

  /* ---------- SLUŽBY ---------- */
  .services { border-top: 1px solid var(--line); }
  .svc {
    display: grid;
    grid-template-columns: 60px minmax(0, 1.1fr) minmax(0, 1.4fr) 330px;
    gap: 32px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    transition: padding .3s ease, background .3s ease;
    position: relative;
    overflow: hidden;
  }
  .svc::before {
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s ease;
  }
  .svc:hover::before { transform: scaleY(1); }
  .svc:hover { padding-left: 24px; }
  .svc-num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
  .svc-title {
    font-family: var(--sans);
    font-weight: 500;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.1;
    letter-spacing: -.015em;
    margin: 0;
    transition: color .2s ease;
  }
  .svc:hover .svc-title { color: var(--accent); }
  .svc-desc { font-size: 15px; line-height: 1.6; color: var(--muted-2); margin: 0; max-width: 52ch; }
  .svc-tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 6px; justify-items: start; align-content: start; }
  .svc-tags span {
    font-family: var(--mono); font-size: 11px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted-2);
    white-space: nowrap;
  }
  @media (max-width: 880px) {
    .svc { grid-template-columns: 40px 1fr; }
    .svc-desc, .svc-tags { grid-column: 2 / -1; padding-top: 0; justify-content: flex-start; }
  }

  /* ---------- PROJEKTY ---------- */
  .projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  @media (max-width: 880px) { .projects { grid-template-columns: 1fr; } }
  .proj {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .3s ease, transform .3s ease;
    display: flex; flex-direction: column;
  }
  .proj:hover { border-color: rgba(198,255,62,.3); transform: translateY(-3px); }
  .proj-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-elev-2);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
  }
  .proj-bar .path { color: var(--ink-2); }
  .proj-bar .path .sep { color: var(--muted); margin: 0 4px; }
  .status {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid currentColor;
  }
  .status .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 2s infinite; }
  .status-alpha { color: #c084fc; }
  .status-beta  { color: #fbbf24; }
  .status-live  { color: var(--accent); }
  .status-plan  { color: var(--muted-2); }

  .proj-body { padding: 22px 22px 18px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
  .proj-name {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -.02em;
    margin: 0;
  }
  .proj-desc { font-size: 14.5px; line-height: 1.55; color: var(--muted-2); margin: 0; flex: 1; }
  .proj-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    font-family: var(--mono);
    font-size: 11px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
  }
  .proj-meta .k { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
  .proj-meta .v { color: var(--ink); font-size: 13px; }
  .progress {
    height: 3px; background: var(--bg); border-radius: 999px; overflow: hidden; position: relative;
  }
  .progress > i {
    display: block; height: 100%;
    background: var(--accent);
    border-radius: inherit;
    position: relative;
  }
  .progress > i::after {
    content: "";
    position: absolute; right: 0; top: 0; bottom: 0;
    width: 24px;
    background: linear-gradient(90deg, transparent, var(--accent));
    animation: shimmer 2.4s ease-in-out infinite;
  }
  @keyframes shimmer { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

  /* ---------- PROCESS ---------- */
  .process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    counter-reset: step;
  }
  @media (max-width: 880px) { .process { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 520px) { .process { grid-template-columns: 1fr; } }
  .step {
    padding: 28px 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-elev);
    position: relative;
    counter-increment: step;
  }
  .step::before {
    content: "0" counter(step);
    position: absolute;
    top: 18px; right: 18px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
  }
  .step h3 {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 20px;
    margin: 0 0 8px;
    letter-spacing: -.015em;
  }
  .step .when {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 14px;
  }
  .step p { font-size: 14px; line-height: 1.55; color: var(--muted-2); margin: 0; }

  /* ---------- BLOG ---------- */
  .blog {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
  }
  @media (max-width: 980px) { .blog { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 660px) { .blog { grid-template-columns: 1fr; } }
  .post {
    padding: 28px 24px 28px 24px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: background .2s ease;
    display: flex; flex-direction: column; gap: 16px;
    min-height: 280px;
    background: transparent;
  }
  .post:hover { background: var(--bg-elev); }
  .post:last-child { border-right: none; }
  @media (max-width: 980px) { .post:nth-child(2n) { border-right: none; } }
  @media (max-width: 660px) { .post { border-right: none; } }
  .post:hover .post-title { color: var(--accent); }
  .post-meta {
    display: flex; justify-content: space-between;
    font-family: var(--mono); font-size: 11px;
    color: var(--muted); letter-spacing: .04em;
  }
  .post-meta .tag { color: var(--accent); text-transform: uppercase; }
  .post-title {
    font-family: var(--sans); font-weight: 600;
    font-size: 22px; line-height: 1.2;
    letter-spacing: -.015em;
    margin: 0;
    transition: color .2s ease;
  }
  .post-excerpt { font-size: 14.5px; line-height: 1.55; color: var(--muted-2); margin: 0; flex: 1; }
  .post-arrow { font-family: var(--mono); font-size: 12px; color: var(--muted); transition: color .2s ease; }
  .post:hover .post-arrow { color: var(--accent); }

  /* ---------- KONTAKT ---------- */
  .contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(40px, 6vw, 90px);
  }
  @media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
  .contact-intro h3 {
    font-family: var(--sans); font-weight: 600;
    font-size: clamp(28px, 3.4vw, 48px);
    line-height: 1.1;
    letter-spacing: -.025em;
    margin: 0 0 24px;
  }
  .contact-intro h3 .accent { color: var(--accent); }
  .contact-intro p { font-size: 16px; color: var(--ink-2); line-height: 1.6; margin: 0 0 16px; }

  .contact-info {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: grid; gap: 14px;
    font-family: var(--mono);
    font-size: 13px;
  }
  .contact-info .row { display: flex; justify-content: space-between; gap: 16px; }
  .contact-info .k { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
  .contact-info a:hover { color: var(--accent); }

  .form-card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 32px;
  }
  @media (max-width: 600px) { .form-card { padding: 22px; } }
  form { display: grid; gap: 22px; }
  .field { display: grid; gap: 8px; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  @media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
  label {
    font-family: var(--mono);
    font-size: 11px; text-transform: uppercase;
    letter-spacing: .08em; color: var(--muted);
  }
  input, textarea, select {
    background: var(--bg);
    border: 1px solid var(--line-strong);
    padding: 12px 14px;
    font-family: var(--sans);
    font-size: 16px;
    color: var(--ink);
    width: 100%;
    box-sizing: border-box;
    border-radius: 9px;
    transition: border-color .2s ease, box-shadow .2s ease;
  }
  select option { background: var(--bg-elev); color: var(--ink); }
  input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
  }
  input::placeholder, textarea::placeholder { color: var(--muted); }
  textarea { resize: vertical; min-height: 110px; font-family: var(--sans); }

  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip {
    display: inline-flex; align-items: center;
    padding: 7px 14px;
    font-family: var(--mono); font-size: 12px;
    color: var(--ink-2);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s ease;
    user-select: none;
  }
  .chip input { display: none; }
  .chip:has(input:checked) { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
  .chip:hover { border-color: var(--ink); color: var(--ink); }

  .submit-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 14px; flex-wrap: wrap;
  }
  .submit-row .note { font-family: var(--mono); font-size: 11px; color: var(--muted); max-width: 32ch; }

  /* ---------- FOOTER ---------- */
  footer {
    position: relative; z-index: 1;
    border-top: 1px solid var(--line);
    padding: clamp(60px, 7vw, 100px) var(--pad-x) 28px;
  }
  .foot-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px; flex-wrap: wrap;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--line);
  }
  .foot-mark {
    display: inline-flex; align-items: center; gap: 14px;
    font-family: var(--mono); font-weight: 600;
    font-size: 18px;
  }
  .foot-mark .brand-mark {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--accent);
    color: #0a0a0a;
    display: grid; place-items: center;
    font-family: var(--mono); font-weight: 700; font-size: 18px;
    box-shadow: 0 0 22px var(--accent-glow);
  }
  .foot-mark .slash { color: var(--muted); }
  .foot-claim {
    font-family: var(--sans);
    font-weight: 500;
    font-size: clamp(20px, 2.4vw, 32px);
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--ink);
    margin: 0;
    max-width: 22ch;
    text-align: right;
  }
  .foot-claim .accent { color: var(--accent); }
  @media (max-width: 720px) { .foot-claim { text-align: left; font-size: 22px; } }

  .foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-top: 44px;
    margin-top: 0;
  }
  @media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

  .foot-col h4 {
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--muted);
    margin: 0 0 18px; font-weight: 500;
  }
  .foot-col h4 { display: flex; align-items: center; gap: 8px; }
  .foot-col h4::before {
    content: "";
    width: 14px; height: 1px;
    background: var(--accent);
  }
  .foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
  .foot-col a { font-family: var(--mono); font-size: 14px; color: var(--ink-2); transition: color .2s ease; }
  .foot-col a:hover { color: var(--accent); }

  .sister {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 22px;
    transition: border-color .2s ease;
  }
  .sister:hover { border-color: rgba(198,255,62,.3); }
  .sister .kicker {
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--muted); margin-bottom: 12px;
  }
  .sister .name {
    font-family: var(--sans); font-weight: 600;
    font-size: 26px; letter-spacing: -.02em; margin-bottom: 10px;
  }
  .sister p { font-size: 13.5px; color: var(--muted-2); margin: 0 0 14px; line-height: 1.55; }
  .sister a.go {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 12px;
    color: var(--accent);
  }
  .sister a.go:hover { text-decoration: underline; }

  .legal {
    margin-top: 60px; padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
    font-family: var(--mono); font-size: 11px;
    color: var(--muted); letter-spacing: .04em;
  }

  /* reveal */
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }

  .live-counter { font-variant-numeric: tabular-nums; }

  /* ---------- PARALLAX BG ORBS ---------- */
  .parallax-bg {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }
  .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
  }
  .orb-1 {
    width: 720px; height: 720px;
    background: radial-gradient(circle, rgba(198,255,62,.35), transparent 65%);
    top: -15%; right: -15%;
  }
  .orb-2 {
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(99,102,241,.30), transparent 65%);
    top: 50%; left: -18%;
  }
  .orb-3 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(255,94,58,.22), transparent 65%);
    top: 130%; right: 15%;
  }
  .orb-4 {
    width: 540px; height: 540px;
    background: radial-gradient(circle, rgba(198,255,62,.22), transparent 65%);
    top: 220%; left: 20%;
  }

  /* subtle noise */
  .noise {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: .04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  }

  /* ---------- FLOATING GLASS CARDS ---------- */
  .floating-cards {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
  }
  .float-card {
    background: rgba(20, 22, 28, .58);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    padding: 14px 18px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink);
    box-shadow: 0 20px 50px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.02) inset;
    min-width: 180px;
    transform: rotate(var(--tilt, 0deg));
    animation: floatY 6s ease-in-out infinite;
  }
  .float-pos {
    position: absolute;
    will-change: transform;
    transition: transform .25s cubic-bezier(.2,.7,.3,1);
  }
  .float-pos:nth-child(2) .float-card { animation-delay: -2s; animation-duration: 7s; }
  .float-pos:nth-child(3) .float-card { animation-delay: -4s; animation-duration: 8s; }
  @keyframes floatY {
    0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
    50%      { transform: translateY(-10px) rotate(var(--tilt, 0deg)); }
  }

  .float-card-1 { top: 4%; right: 30%; --tilt: -4deg; }
  .float-card-2 { bottom: 12%; right: 4%; --tilt: 3deg; }
  .float-card-3 { top: 50%; right: 22%; --tilt: -2deg; }

  .float-card .badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
    margin-bottom: 6px;
  }
  .float-card .badge .b-dot {
    width: 6px; height: 6px; border-radius: 50%; background: currentColor;
    animation: blink 2s infinite;
  }
  .float-card .title {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 14px;
    color: var(--ink);
    letter-spacing: -.01em;
  }
  .float-card .meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
  .float-card .amount {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 18px;
    color: var(--accent);
    letter-spacing: -.02em;
  }
  .float-card .bars { display: flex; align-items: end; gap: 3px; height: 24px; margin-top: 8px; }
  .float-card .bars span {
    width: 6px; background: var(--accent); border-radius: 1px;
    opacity: .8;
  }

  @media (max-width: 1180px) { .floating-cards { display: none; } }

  /* ---------- PROJECT PREVIEWS ---------- */
  .proj-preview {
    height: 140px;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .proj-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.4));
    pointer-events: none;
  }

  /* web preview */
  .preview-web {
    background:
      radial-gradient(circle at 70% 30%, rgba(198,255,62,.18), transparent 50%),
      linear-gradient(135deg, #14161c, #0a0c10);
  }
  .browser-mock {
    width: 78%; max-width: 280px;
    background: var(--bg-elev-2);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,.6);
    border: 1px solid var(--line);
    transform: perspective(800px) rotateX(10deg) translateY(8px);
    transition: transform .4s ease;
  }
  .proj:hover .browser-mock { transform: perspective(800px) rotateX(6deg) translateY(2px); }
  .browser-bar {
    display: flex; align-items: center; gap: 4px;
    padding: 6px 8px;
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid var(--line);
  }
  .browser-bar i {
    width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong);
  }
  .browser-bar i:nth-child(1) { background: #ff5f57; }
  .browser-bar i:nth-child(2) { background: #febc2e; }
  .browser-bar i:nth-child(3) { background: #28c840; }
  .browser-content {
    padding: 10px 12px;
    display: grid; gap: 6px;
  }
  .browser-content .row { height: 5px; border-radius: 2px; background: rgba(255,255,255,.09); }
  .browser-content .row.short { width: 40%; }
  .browser-content .row.med { width: 65%; }
  .browser-content .row.accent { background: var(--accent); width: 28%; height: 7px; }

  /* phone preview */
  .preview-phone {
    background:
      radial-gradient(circle at 30% 60%, rgba(99,102,241,.18), transparent 50%),
      linear-gradient(135deg, #16181f, #0a0c10);
  }
  .phone-mock {
    width: 78px; height: 138px;
    background: var(--bg-elev-2);
    border-radius: 14px;
    border: 2px solid var(--line-strong);
    padding: 10px 7px 7px;
    position: relative;
    display: grid; gap: 4px;
    align-content: start;
    transform: perspective(800px) rotateY(-14deg) rotateX(6deg);
    box-shadow: 0 25px 50px -15px rgba(0,0,0,.8);
    transition: transform .4s ease;
  }
  .proj:hover .phone-mock { transform: perspective(800px) rotateY(-8deg) rotateX(2deg); }
  .phone-mock::before {
    content: ""; position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
    width: 22px; height: 3px; border-radius: 2px;
    background: var(--line-strong);
  }
  .phone-mock .h {
    height: 5px; border-radius: 2px; background: rgba(255,255,255,.18); width: 60%; margin-top: 4px;
  }
  .phone-mock .item { height: 7px; border-radius: 2px; background: rgba(255,255,255,.08); }
  .phone-mock .item.accent { background: var(--accent); width: 70%; }
  .phone-mock .item.short { width: 55%; }

  /* POS/tablet preview */
  .preview-pos {
    background:
      radial-gradient(circle at 50% 100%, rgba(198,255,62,.14), transparent 50%),
      linear-gradient(135deg, #15171c, #0a0c10);
  }
  .tablet-mock {
    width: 200px;
    background: var(--bg-elev-2);
    border-radius: 8px;
    padding: 10px;
    display: grid; gap: 4px; grid-template-columns: 1fr 1fr 1fr; grid-auto-rows: 24px;
    transform: perspective(900px) rotateX(28deg);
    box-shadow: 0 25px 50px -15px rgba(0,0,0,.8);
    border: 1px solid var(--line);
    transition: transform .4s ease;
  }
  .proj:hover .tablet-mock { transform: perspective(900px) rotateX(18deg); }
  .tablet-mock .tile { background: rgba(255,255,255,.07); border-radius: 3px; }
  .tablet-mock .tile.accent { background: var(--accent); }
  .tablet-mock .tile.warm   { background: rgba(255,94,58,.5); }
  .tablet-mock .tile.cool   { background: rgba(125,211,252,.4); }

  /* AI preview - chat bubbles */
  .preview-ai {
    background:
      radial-gradient(circle at 75% 30%, rgba(196,132,252,.18), transparent 50%),
      linear-gradient(135deg, #15161c, #0a0c10);
    padding: 16px 20px;
  }
  .chat-mock {
    width: 100%; max-width: 230px;
    display: grid; gap: 6px;
  }
  .chat-mock .bubble {
    padding: 7px 11px;
    border-radius: 10px;
    font-family: var(--mono);
    font-size: 10.5px;
    line-height: 1.3;
    max-width: 78%;
    border: 1px solid rgba(255,255,255,.06);
  }
  .chat-mock .bubble.from {
    background: rgba(255,255,255,.05);
    color: var(--ink-2);
    justify-self: start;
    border-bottom-left-radius: 3px;
  }
  .chat-mock .bubble.to {
    background: var(--accent);
    color: #0a0a0a;
    border-color: transparent;
    justify-self: end;
    border-bottom-right-radius: 3px;
    font-weight: 500;
  }

  /* section glow accents */
  .glow-accent {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198,255,62,.12), transparent 60%);
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
  }

  /* ---------- PHOTO CARDS / STRIPS ---------- */
  .float-card.photo {
    padding: 0;
    overflow: hidden;
    min-width: 220px;
  }
  .float-card.photo .ph {
    width: 100%; height: 130px;
    background-size: cover;
    background-position: center;
    position: relative;
  }
  .float-card.photo .ph::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.7));
  }
  .float-card.photo .cap {
    position: absolute;
    left: 14px; right: 14px; bottom: 12px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink);
    display: flex; align-items: center; gap: 8px;
    z-index: 2;
  }
  .float-card.photo .cap .pulse {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    animation: blink 2s infinite;
  }

  /* photo strip section */
  #fotky {
    position: relative; z-index: 1;
    padding: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .photo-strip {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 0;
    height: clamp(280px, 32vw, 460px);
  }
  @media (max-width: 720px) { .photo-strip { grid-template-columns: 1fr; height: auto; } }
  .photo-tile {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: filter .3s ease;
    min-height: 280px;
    border-right: 1px solid var(--line);
  }
  .photo-tile:last-child { border-right: none; }
  @media (max-width: 720px) {
    .photo-tile { border-right: none; border-bottom: 1px solid var(--line); }
    .photo-tile:last-child { border-bottom: none; }
  }
  .photo-tile::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8,9,11,.3) 0%, rgba(8,9,11,.85) 100%);
    z-index: 1;
    transition: opacity .3s ease;
  }
  .photo-tile:hover::before { opacity: .65; }
  .photo-tile .photo-cap {
    position: absolute;
    left: 24px; right: 24px; bottom: 22px;
    z-index: 2;
  }
  .photo-tile .photo-cap .tag {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .photo-tile .photo-cap .tag::before {
    content: "";
    width: 14px; height: 1px;
    background: var(--accent);
  }
  .photo-tile .photo-cap .ttl {
    font-family: var(--sans);
    font-weight: 600;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.15;
    letter-spacing: -.015em;
    color: var(--ink);
    margin: 0;
  }

  /* background photo behind a section */
  .bg-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: .15;
    filter: grayscale(40%) contrast(110%);
  }
  .bg-photo::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
  }

/* ============================================================
   ADDITIONS FOR MULTI-PAGE SITE
   ============================================================ */

/* ---------- HERO PHOTO (homepage) ---------- */
.hero-photo {
  position: relative;
  z-index: 1;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
  overflow: hidden;
}
.hero-photo-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}
.hero-photo-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,9,11,.55) 0%, rgba(8,9,11,.55) 40%, rgba(8,9,11,.98) 100%),
    linear-gradient(90deg, rgba(8,9,11,.85) 0%, transparent 65%);
}
.hero-photo-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: 80px 0;
}

/* ---------- PAGE HERO (subpages) ---------- */
.page-hero {
  position: relative;
  z-index: 1;
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(72px, 9vw, 110px) var(--pad-x) clamp(28px, 3.5vw, 52px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}
.page-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,9,11,.72) 0%, rgba(8,9,11,.88) 60%, rgba(8,9,11,1) 100%),
    linear-gradient(90deg, rgba(8,9,11,.85) 0%, rgba(8,9,11,.3) 50%, transparent 100%);
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
}
.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted-2);
  margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 8px;
}
.breadcrumb a { color: var(--ink-2); transition: color .15s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--muted); }
.breadcrumb .current { color: var(--accent); }
.page-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(44px, 7vw, 96px);
  line-height: .95;
  letter-spacing: -.035em;
  margin: 0 0 22px;
  max-width: 16ch;
}
.page-title .accent { color: var(--accent); }
.page-lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0;
}

/* ---------- SECTION-INDEX (homepage card grid) ---------- */
.section-index-wrap {
  position: relative; z-index: 1;
  padding: clamp(40px, 5vw, 80px) var(--pad-x);
}
.section-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .section-index { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .section-index { grid-template-columns: 1fr; } }
.section-card {
  position: relative;
  display: block;
  aspect-ratio: 8 / 5;
  min-height: 120px;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform .3s ease;
  border: 1px solid var(--line);
}
.section-card:hover { transform: translateY(-4px); border-color: rgba(198,255,62,.3); }
.section-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,9,11,.35) 0%, rgba(8,9,11,.7) 50%, rgba(8,9,11,1) 90%);
  transition: opacity .3s ease;
  z-index: 1;
}
.section-card:hover::before { background: linear-gradient(180deg, rgba(8,9,11,.4) 0%, rgba(8,9,11,.7) 50%, rgba(8,9,11,.92) 90%); }
.section-card-inner {
  position: absolute;
  left: 24px; right: 24px; bottom: 22px;
  z-index: 2;
}
.section-card-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .06em;
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.section-card-num::before {
  content: ""; width: 14px; height: 1px; background: var(--accent);
}
.section-card-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 8px;
  color: var(--ink);
}
.section-card-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 36ch;
}
.section-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
.section-card-link .arr { transition: transform .2s ease; }
.section-card:hover .section-card-link .arr { transform: translateX(4px); }

/* nav active state */
.nav-links a.active { color: var(--accent); }
.nav-links a.active::before, .nav-links a.active::after { opacity: 1; }

/* ---------- NEXT PAGE CTA ---------- */
.next-page {
  display: block;
  position: relative;
  z-index: 1;
  margin: 80px var(--pad-x);
  padding: 56px clamp(28px, 4vw, 64px);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .3s ease, transform .3s ease;
  overflow: hidden;
}
.next-page:hover { border-color: rgba(198,255,62,.4); transform: translateY(-3px); }
.next-page-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .15;
  z-index: 0;
}
.next-page-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg-elev) 0%, transparent 70%);
}
.next-page-inner {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.next-page .next-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.next-page .next-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 24ch;
}
.next-page .next-arrow {
  font-size: 44px;
  font-family: var(--mono);
  color: var(--accent);
  transition: transform .3s ease;
  line-height: 1;
}
.next-page:hover .next-arrow { transform: translateX(10px); }

/* page content sections */
.page-section {
  padding: clamp(40px, 5vw, 80px) var(--pad-x);
  position: relative; z-index: 1;
}
.page-section + .page-section {
  border-top: 1px solid var(--line);
}

/* generic prose for subpages */
.prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}
.prose h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.025em;
  margin: 56px 0 20px;
  color: var(--ink);
}
.prose h2:first-child { margin-top: 0; }
.prose h2 .accent { color: var(--accent); }
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 18px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- PROJEKTY: dlazdice + modal ---------- */
.proj-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.proj-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--bg-elev);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease;
}
.proj-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,9,11,.15) 0%, rgba(8,9,11,.5) 55%, rgba(8,9,11,.92) 100%);
  z-index: 1;
}
.proj-tile:hover { transform: translateY(-4px); border-color: rgba(198,255,62,.35); }
.proj-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.proj-tile .status { position: absolute; top: 12px; left: 12px; z-index: 2; }
.proj-tile-name {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2;
  margin: 0;
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(16px, 1.6vw, 20px); line-height: 1.15;
  letter-spacing: -.01em; color: var(--ink);
}
.proj-tile-detail { display: none; }
body.ed-rezim .proj-tile { cursor: default; }
body.ed-rezim .proj-tile-detail {
  display: block; position: absolute; left: 12px; right: 12px; bottom: 42px; z-index: 3;
  font-size: 12px; line-height: 1.4; color: var(--ink);
  background: rgba(8,9,11,.78); padding: 6px 8px; border-radius: 6px;
}

.proj-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.proj-modal[hidden] { display: none; }
.proj-modal-backdrop { position: absolute; inset: 0; background: rgba(4,5,7,.72); backdrop-filter: blur(4px); }
.proj-modal-box {
  position: relative; z-index: 1; width: 100%; max-width: 520px;
  background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  animation: pm-in .2s ease;
}
@keyframes pm-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.proj-modal-img { height: 190px; background-size: cover; background-position: center; background-color: var(--bg-elev-2); }
.proj-modal-body { padding: 22px 26px 28px; }
.proj-modal-body h3 { font-family: var(--sans); font-weight: 600; font-size: 26px; letter-spacing: -.02em; margin: 12px 0 10px; color: var(--ink); }
.proj-modal-body p { color: var(--ink-2); line-height: 1.6; font-size: 15px; margin: 0; }
.proj-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 34px; height: 34px; border-radius: 8px; border: none; cursor: pointer;
  background: rgba(8,9,11,.6); color: var(--ink); font-size: 22px; line-height: 1;
}
.proj-modal-close:hover { background: var(--accent); color: #0a0a0a; }
body.proj-modal-open { overflow: hidden; }

/* ---------- Konzistentni sirka obsahu (zarovnano s hero, 1100px) ---------- */
.services,
.proj-tiles,
.process,
.blog,
.compare,
.solo-grid,
.contact-grid,
.section-index,
.sec-head { max-width: 1100px; }

/* ---------- Tvorba webu na miru: seznam s nahledy ---------- */
.web-list { max-width: 1100px; }
.web-item {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.web-thumb {
  display: block; line-height: 0;
  border-radius: 9px; overflow: hidden;
  border: 1px solid var(--line-strong);
  transition: transform .2s ease, border-color .2s ease;
}
.web-thumb img { display: block; width: 170px; height: 113px; object-fit: cover; object-position: top center; }
.web-thumb:hover { transform: translateY(-2px); border-color: rgba(198,255,62,.4); }
.web-typ {
  display: inline-block;
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  color: var(--accent);
  border: 1px solid var(--line-strong); border-radius: 20px;
  padding: 3px 10px;
}
.web-nazev {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -.01em;
  color: var(--ink); margin: 10px 0 8px;
}
.web-popis { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 54ch; }
.web-link {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  white-space: nowrap; text-decoration: none;
}
.web-link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .web-item { grid-template-columns: 110px 1fr; gap: 16px; }
  .web-thumb img { width: 110px; height: 73px; }
  .web-link { display: none; }
}

/* ---------- Formular: povinna pole ---------- */
.req { color: var(--accent-2); font-weight: 700; }
.form-legenda {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted-2); margin: 0 0 4px;
}
.form-legenda .req { margin-right: 4px; }
