/* lokálne fonty – variabilné, zúžené len na znaky SK/CZ/EN (latin + latin-1 + latin ext-A + typografia) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(../assets/fonts/inter-sk.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300 500; font-display: swap; src: url(../assets/fonts/inter-tight-sk.woff2) format("woff2"); }

/* ==========================================================================
   CANMORE – KONCEPT B („stone & ink“)
   Inšpirácia: teplý kamenný podklad, tvrdé bočné svetlo, jediná tmavá farba
   (atramentová modrá namiesto tmavozelenej), tenké veľké nadpisy, hairline linky,
   malé rozpálené uppercase popisky. Samostatný štýl, nezávislý od css/ hlavnej verzie.
   ========================================================================== */
:root {
  /* atramentová modrá = zelená z referencie prenesená do modrej (rovnaká tmavosť a sýtosť) */
  --ink:      #121A26;   /* najtmavšia – text nadpisov, footer */
  --ink-2:    #1B2634;   /* tlačidlá, tmavé bloky */
  --ink-3:    #26364A;   /* hover */
  --ink-soft: #3C4C62;   /* sekundárny text na tmavom */
  --hl:       #A9C8E8;   /* svetlá modrá linka (ako lesk na pere) */
  --hl-2:     #6F96C2;

  /* kameň / papier */
  --stone-50:  #F4F3EE;
  --stone-100: #EDECE5;   /* hero papier */
  --stone-200: #E5E4DB;   /* stránka */
  --stone-300: #D9D8CE;   /* karty na stránke / sekundárne plochy */
  --stone-400: #BFBDB1;
  --line:      #CDCBC0;
  --line-dark: rgba(255,255,255,.12);
  --muted:     #6B7178;
  --muted-2:   #8A9097;
  --fg:        var(--ink);
  --fg-on-dark:#EEF1F5;
  --fg-on-dark-muted: #AEB8C6;

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;

  --container: 1440px;
  --gutter: clamp(16px, 4.5vw, 64px);
  --section-y: clamp(64px, 8vw, 128px);
  --radius: 10px;
  --radius-sm: 6px;
  --nav-h: 84px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .7s;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--fg); background: var(--stone-200) url("../assets/concept/stone-texture-1024.webp") center top / 1024px auto repeat;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--hl-2); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

/* ---------- typografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: .6875rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--ink); opacity: .6; }
.d1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(3rem, 1.6rem + 6.4vw, 7.5rem); line-height: .96; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.d2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.25rem, 1.4rem + 3vw, 4.25rem); line-height: 1.02; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; max-width: 16ch; }
.d3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); line-height: 1.25; letter-spacing: -.015em; }
.lead { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); line-height: 1.4; color: #3A4149; max-width: 30ch; text-wrap: pretty; font-weight: 400; }
.lead--wide { max-width: 52ch; }
.small { font-size: .9375rem; color: var(--muted); }
.tag {
  font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 500; line-height: 1.7;
}
.hair { height: 1px; background: var(--line); border: 0; margin: 0; }
.hair--short { width: 40px; background: var(--ink); opacity: .55; }

/* ---------- navigácia ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.nav::before { /* sklenený pás pod menu – vždy, aby texty nesedeli priamo na tmavých miestach fotky */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(237,236,229,.78), rgba(237,236,229,.58));
  -webkit-backdrop-filter: blur(12px) saturate(120%); backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 1px 0 rgba(18,26,38,.08); transition: background .35s var(--ease);
}
.nav--scrolled::before { background: rgba(229,228,219,.9); box-shadow: 0 1px 0 var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__brand { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 500; letter-spacing: .32em; font-size: 1.0625rem; color: var(--ink); }
.nav__brand img { height: 30px; width: auto; opacity: .9; }
.nav__links { display: flex; gap: 36px; margin-left: 56px; }
.nav__links a { font-size: .9375rem; font-weight: 500; color: var(--ink); position: relative; padding-bottom: 6px; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav__right .link { font-size: .9375rem; font-weight: 500; color: var(--ink); }
@media (max-width: 1279px) { .nav__right .link { display: none; } .nav__links { gap: 28px; margin-left: 40px; } }
.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-left: auto; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { content: ""; display: block; width: 22px; height: 1.5px; background: var(--ink); position: relative; transition: transform .3s var(--ease), opacity .3s; }
.nav__toggle span::before { position: absolute; top: -7px; } .nav__toggle span::after { position: absolute; top: 7px; }
.nav__mobile {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: calc(var(--nav-h) + 16px) var(--gutter) 40px; background: var(--stone-100);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.nav-open .nav__mobile { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__mobile a { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -.02em; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nav__mobile .btn { margin-top: 28px; align-self: flex-start; }
.nav-open { overflow: hidden; }
@media (max-width: 980px) {
  .nav__links, .nav__right { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav-open .nav__toggle span { background: transparent; }
  .nav-open .nav__toggle span::before { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav__toggle span::after { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- prepínač jazyka ---------- */
html.i18n-wait body { visibility: hidden; }
.lang { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; }
.lang span { opacity: .35; }
.lang button { padding: 6px 2px; opacity: .7; font-weight: 500; color: var(--ink); border-bottom: 1px solid transparent; transition: opacity .2s, border-color .2s; }
.lang button:hover { opacity: 1; }
.lang button.is-active { opacity: 1; border-bottom-color: var(--ink); }
.lang--mobile { margin-top: 36px; font-size: .9375rem; }

/* ---------- tlačidlá ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 18px 28px; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 500; line-height: 1; white-space: nowrap; color: var(--fg-on-dark); background: var(--ink-2);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.btn:hover { background: var(--ink-3); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { padding: 13px 20px; font-size: .9375rem; }
.btn--light { background: var(--stone-50); color: var(--ink); }
.btn--light:hover { background: #fff; }
.link-ul { position: relative; font-size: 1rem; color: var(--ink); padding-bottom: 6px; }
.link-ul::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); opacity: .5; transition: opacity .2s; }
.link-ul:hover::after { opacity: 1; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; } .reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; isolation: isolate; overflow: hidden;
  padding-block: calc(var(--nav-h) + 40px) 64px; background: var(--stone-100);
}
/* placeholder pozadia: papier + diagonálny pás tvrdého svetla; nahradí ho assets/concept/hero-materials.jpg */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(112deg, transparent 0 46%, rgba(255,255,255,.55) 50%, rgba(255,255,255,.0) 62%),
    radial-gradient(1400px 900px at 100% 100%, rgba(18,26,38,.22), transparent 60%),
    linear-gradient(180deg, #EFEEE7, #E4E3DA);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--noise); background-size: 320px; opacity: .06; mix-blend-mode: multiply; pointer-events: none; }
.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero--img { background: transparent; }
.hero--img .hero__img {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 68%, rgba(0,0,0,.55) 84%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 68%, rgba(0,0,0,.55) 84%, transparent 100%);
}
.hero--img::before { display: none; }
.hero--img::after { opacity: .035; }
@media (max-width: 980px) {
  .hero--img .hero__img { object-position: 22% 50%; }
  /* jemné zosvetlenie za textom na mobile */
  .hero--img::before { display: block; background: linear-gradient(180deg, rgba(237,236,229,.55), rgba(237,236,229,.25) 60%, rgba(237,236,229,0)); z-index: -1; }
}
@media (max-width: 979px) and (orientation: portrait) { .hero--img .hero__img { object-position: 50% 50%; } }  /* mobilný výrez je už orezaný */
.hero picture { display: contents; }
.hero__grid { display: grid; gap: 40px; align-items: center; width: 100%; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }
.hero__copy { display: grid; gap: 28px; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 36px; margin-top: 8px; }
.hero__note { font-size: .9375rem; color: var(--muted); margin-top: 16px; }
.hero__stat { justify-self: end; align-self: end; text-align: left; display: grid; gap: 10px; padding: 22px 24px 24px; min-width: 220px; background: rgba(237,236,229,.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: var(--radius); }
.hero__stat .tag { white-space: pre-line; }
.hero__stat b { font-family: var(--font-display); font-weight: 300; font-size: 2rem; letter-spacing: -.02em; color: var(--ink); line-height: 1; margin-top: 8px; }
/* miesto na hero fotku (keď nie je obrázok na pozadí, zobrazí sa výrez vpravo) */
.hero__media { position: absolute; inset: 0 0 0 52%; z-index: -1; display: grid; place-items: center; color: var(--muted-2); }
.hero__media .hint { font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; text-align: center; line-height: 2; border: 1px dashed var(--stone-400); padding: 18px 22px; border-radius: var(--radius-sm); background: rgba(244,243,238,.4); }
@media (max-width: 980px) { .hero__media { display: none; } .hero__stat { justify-self: start; } }

/* ---------- SECTION HEAD (vľavo titulok, vpravo text) ---------- */
.head { display: grid; gap: 24px; margin-bottom: clamp(40px, 5vw, 72px); }
@media (min-width: 980px) { .head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: end; } .head .lead { justify-self: start; } }

/* ---------- O nás: linky (letokruhy + vlákna) + sklenené karty ---------- */
.about { position: relative; isolation: isolate; }
.about__lines {
  position: absolute; z-index: -1; left: 0; right: 0; top: -180px; bottom: 0; pointer-events: none;
  /* linky začínajú už v spodku hero (premostenie) a do stratena aj dole */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 70%, transparent 100%);
}
/* linky = inline SVG, vkladá ich concept.js po načítaní (nie sú kandidát na LCP) */
.about__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.about__lines::after {
  -webkit-mask-image: url("../assets/concept/lines-accent.svg");
          mask-image: url("../assets/concept/lines-accent.svg");
  background: #6F96C2;
}
.cards { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0,1fr)); }
.card {
  position: relative; border-radius: var(--radius); padding: 32px 30px 36px; display: grid; gap: 18px; align-content: start; min-height: 260px; overflow: hidden;
  background: rgba(237,236,229,.34);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 1px 0 rgba(18,26,38,.06);
  transition: background-color .3s var(--ease);
}
.card:hover { background: rgba(237,236,229,.5); }
.card__img { width: calc(100% + 60px); margin: -32px -30px 6px; aspect-ratio: 4 / 3; object-fit: cover; max-width: none; }
.card .d3 { color: var(--ink); }
.card p { color: #4A525B; font-size: 1rem; line-height: 1.55; }
.card .hair--short { margin: 4px 0 2px; background: var(--hl-2); opacity: .9; }
.card .num { font-size: .6875rem; letter-spacing: .22em; color: var(--muted); }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* ---------- proces: editoriálny zoznam ---------- */
.section--paper { background: rgba(244,243,238,.55); }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: clamp(32px, 5vw, 96px); border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.step__num { font-family: var(--font-display); font-weight: 300; font-size: 1.75rem; letter-spacing: -.02em; color: var(--ink); }
.step__title { font-weight: 500; font-size: 1.125rem; color: var(--ink); }
.step__sub { color: var(--muted); font-size: .9375rem; margin-top: 4px; }
.step__phase { font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--hl-2); margin-left: 12px; font-weight: 500; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }

/* ---------- pás s fotkou + karta ---------- */
.band { position: relative; min-height: 640px; display: grid; align-items: center; isolation: isolate; overflow: hidden; background: var(--stone-300); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(100deg, transparent 0 40%, rgba(255,255,255,.4) 46%, transparent 58%),
    radial-gradient(1200px 700px at 0% 100%, rgba(18,26,38,.28), transparent 60%),
    linear-gradient(180deg, #DAD9CE, #CFCDC2); }
.band img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; }
.band--img::before { display: none; }
.band .hint { position: absolute; right: 48px; top: 48px; z-index: 0; font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--stone-400); padding: 14px 18px; border-radius: var(--radius-sm); line-height: 2; text-align: center; }
.band__card { background: rgba(244,243,238,.5); -webkit-backdrop-filter: blur(18px) saturate(120%); backdrop-filter: blur(18px) saturate(120%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); border-radius: var(--radius); padding: clamp(28px, 3vw, 44px); max-width: 560px; display: grid; gap: 22px; margin-block: 72px; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; }
.check svg { width: 18px; height: 18px; color: var(--hl-2); margin-top: 5px; }
.check strong { display: block; font-weight: 500; color: var(--ink); }
.check span { color: var(--muted); font-size: .9375rem; }
@media (max-width: 760px) { .band .hint { right: 16px; top: 16px; } }

/* ---------- hodnoty ---------- */
.values { border-top: 1px solid var(--line); }
.value { display: grid; grid-template-columns: 120px 1.2fr 2fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.value__num { font-family: var(--font-display); font-weight: 300; font-size: 2.25rem; letter-spacing: -.02em; color: var(--ink); }
.value__title { font-weight: 500; font-size: 1.125rem; letter-spacing: .02em; color: var(--ink); }
.value p { color: var(--muted); }
@media (max-width: 760px) { .value { grid-template-columns: 60px 1fr; } .value p { grid-column: 2; } }

/* ---------- realizácie: projekty ako tehly (veľká + malá) ---------- */
.projects { display: grid; gap: clamp(28px, 4vw, 56px); }
.project { position: relative; isolation: isolate; display: grid; gap: 20px; }
.project__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.project__head .d3 { color: var(--ink); }
.project__head p { color: var(--muted); font-size: .9375rem; flex-basis: 100%; }
.project__head .tag { order: -1; flex-basis: 100%; }
.project__tiles { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0,1fr)); grid-auto-rows: clamp(220px, 26vw, 420px); }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--stone-300); padding: 0; cursor: zoom-in; display: block; text-align: left; }
.tile--lg { grid-column: span 8; } .tile--sm { grid-column: span 4; }
.project--rev .tile--lg { order: 2; }
.project--3 .project__tiles { grid-auto-rows: calc((clamp(220px, 26vw, 420px) - 14px) / 2); }
.project--3 .tile--lg { grid-column: 1 / span 8; grid-row: 1 / span 2; }
.project--3 .tile--sm { grid-column: 9 / span 4; }
.project--3.project--rev .tile--lg { grid-column: 5 / span 8; }
.project--3.project--rev .tile--sm { grid-column: 1 / span 4; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(18,26,38,.55)); pointer-events: none; transition: opacity .3s var(--ease); }
.tile__cap { position: absolute; left: 18px; bottom: 16px; z-index: 1; color: #fff; font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.tile__zoom { position: absolute; right: 14px; top: 14px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink); background: rgba(244,243,238,.75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s var(--ease); }
.tile__zoom svg { width: 16px; height: 16px; }
.tile:hover .tile__zoom, .tile:focus-visible .tile__zoom { opacity: 1; }
@media (hover: none) { .tile__zoom { opacity: .9; } }

/* desktop: rám ako škára – tenké linky okolo projektu, do stratena na koncoch */
@media (min-width: 980px) {
  .project { padding: 36px 36px 40px; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 36px; align-items: start; }
  .project__head { flex-direction: column; flex-wrap: nowrap; gap: 10px; position: sticky; top: calc(var(--nav-h) + 24px); }
  .project__head .tag, .project__head p { flex-basis: auto; }
  .project--rev { grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); }
  .project--rev .project__head { order: 2; }
  .project::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
      linear-gradient(90deg, transparent, var(--stone-400) 18%, var(--stone-400) 82%, transparent) top / 100% 1px no-repeat,
      linear-gradient(90deg, transparent, var(--stone-400) 18%, var(--stone-400) 82%, transparent) bottom / 100% 1px no-repeat,
      linear-gradient(180deg, transparent, var(--stone-400) 22%, var(--stone-400) 78%, transparent) left / 1px 100% no-repeat,
      linear-gradient(180deg, transparent, var(--stone-400) 22%, var(--stone-400) 78%, transparent) right / 1px 100% no-repeat;
  }
  /* jemná výplň rámu, aby priestor medzi tehlami nebol prázdny */
  /* veľmi jemné sklo – priehľadnejšie než karty, len oddelí tehlu od kameňa */
  .project::after {
    content: ""; position: absolute; inset: 1px; z-index: -1; pointer-events: none; border-radius: 2px;
    background: rgba(244,243,238,.18);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  }
  .project__tiles { grid-auto-rows: clamp(260px, 24vw, 400px); }
  .project--3 .project__tiles { grid-auto-rows: calc((clamp(260px, 24vw, 400px) - 14px) / 2); }
}
@media (max-width: 979px) {
  .project { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .project__tiles { grid-auto-rows: auto; }
  .tile--lg, .tile--sm, .project--3 .tile--lg, .project--3 .tile--sm, .project--3.project--rev .tile--lg, .project--3.project--rev .tile--sm { grid-column: span 12; grid-row: auto; aspect-ratio: 4 / 3; }
  .project--3 .project__tiles { grid-auto-rows: auto; }
  .project--rev .tile--lg { order: 0; }
}

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 72px 88px 96px;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s; }
.lb.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lb__backdrop { position: absolute; inset: 0; background: rgba(18,26,38,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lb__fig { position: relative; margin: 0; display: grid; gap: 16px; justify-items: center; max-width: min(1400px, 100%); }
.lb__img { max-width: 100%; max-height: calc(100svh - 220px); width: auto; height: auto; border-radius: var(--radius-sm);
  opacity: 0; transform: scale(.985); transition: opacity .35s var(--ease), transform .35s var(--ease); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.lb.is-loaded .lb__img { opacity: 1; transform: none; }
.lb__cap { color: var(--fg-on-dark); text-align: center; display: grid; gap: 4px; }
.lb__cap b { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; letter-spacing: -.01em; }
.lb__cap span { font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: var(--hl); }
.lb__cap em { font-style: normal; font-size: .9375rem; color: var(--fg-on-dark-muted); }
.lb__btn { position: absolute; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--fg-on-dark);
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); transition: background-color .2s; }
.lb__btn:hover { background: rgba(255,255,255,.16); }
.lb__btn svg { width: 22px; height: 22px; }
.lb__close { top: 20px; right: 20px; }
.lb__prev { left: 20px; top: 50%; margin-top: -26px; }
.lb__next { right: 20px; top: 50%; margin-top: -26px; }
.lb__count { position: absolute; top: 34px; left: 28px; z-index: 1; color: var(--fg-on-dark-muted); font-size: .75rem; letter-spacing: .2em; }
html.lb-lock, html.lb-lock body { overflow: hidden; }
@media (max-width: 760px) {
  .lb { padding: 64px 12px 120px; }
  .lb__img { max-height: calc(100svh - 260px); }
  .lb__prev, .lb__next { top: auto; bottom: 24px; margin-top: 0; }
  .lb__prev { left: calc(50% - 64px); } .lb__next { right: calc(50% - 64px); }
  .lb__close { top: 12px; right: 12px; } .lb__count { top: 28px; left: 18px; }
}

/* ---------- referencie ---------- */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.logos__item { display: grid; place-items: center; height: 90px; filter: grayscale(1); opacity: .6; transition: opacity .3s, filter .3s; }
.logos__item:hover { filter: none; opacity: 1; }
.logos__item img { max-height: 44px; width: auto; max-width: 70%; object-fit: contain; }
@media (max-width: 640px) { .logos { grid-template-columns: repeat(2, 1fr); } }

/* ---------- kontakt (atramentový blok) ---------- */
.contact { background: var(--ink-2); color: var(--fg-on-dark); position: relative; isolation: isolate; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(105deg, transparent 0 55%, rgba(169,200,232,.10) 60%, transparent 70%),
    radial-gradient(1200px 800px at 100% 0%, rgba(169,200,232,.12), transparent 60%); }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--noise); background-size: 320px; opacity: .08; mix-blend-mode: screen; pointer-events: none; }
.contact__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scaleX(-1); }
.contact--img::before { background: linear-gradient(270deg, rgba(27,38,52,.6), rgba(27,38,52,.15) 60%, transparent); }
.contact .eyebrow { color: var(--fg-on-dark-muted); } .contact .eyebrow::before { background: var(--hl); opacity: .8; }
.contact .d2 { color: var(--fg-on-dark); max-width: 14ch; }
.contact .lead { color: var(--fg-on-dark-muted); }
.contact__grid { display: grid; gap: 40px; }
@media (min-width: 980px) { .contact__grid { grid-template-columns: minmax(0,6fr) minmax(0,6fr); gap: 96px; align-items: start; } }
.contact__rows { border-top: 1px solid var(--line-dark); }
.contact__row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line-dark); align-items: baseline; }
.contact__row .tag { color: var(--fg-on-dark-muted); }
.contact__row a { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); letter-spacing: -.01em; }
.contact__row a:hover { color: var(--hl); }
.contact .btn { background: var(--stone-50); color: var(--ink); margin-top: 32px; }
.contact .btn:hover { background: #fff; }
@media (max-width: 560px) { .contact__row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- footer linka ---------- */
.foot { padding: 28px 0; }
.foot__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; }
.foot .tag { color: var(--muted); }
