/* ==========================================================================
   PROOFSTA — custom sluoksnis ant Tailwind (CDN)
   ========================================================================== */

:root {
  --gold: #c9a227;
  --gold-soft: #e3cb7a;
  --ink: #07090c;
  --ink-800: #0c1015;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
html.lenis { scroll-behavior: auto; }
html.lenis body { min-height: 100%; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

body {
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #232c36; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #34404d; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--ink);
  padding: .8rem 1.25rem; font-size: .8rem;
}
.skip-link:focus { left: 0; }

body.is-locked { overflow: hidden; }

/* ------------------------------ Preloader -------------------------------- */

#loader { transition: none; }
#loaderWord {
  transform: translateY(105%);
  animation: loaderUp 1.1s var(--ease) forwards;
}
@keyframes loaderUp { to { transform: translateY(0); } }
#loaderBar { transition: width .5s var(--ease); }

/* ------------------------------- Header ---------------------------------- */

#hdr {
  transition: background-color .6s var(--ease), backdrop-filter .6s var(--ease),
              border-color .6s var(--ease), transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
#hdr.is-stuck {
  background: rgba(7, 9, 12, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(255, 255, 255, .07);
}
#hdr.is-hidden { transform: translateY(-102%); }

.nav-link { position: relative; transition: color .4s var(--ease); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -7px;
  height: 1px; width: 100%; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.burger { position: relative; width: 26px; height: 16px; }
.burger span {
  position: absolute; left: 0; height: 1.5px; width: 100%; background: #fff;
  transition: transform .45s var(--ease);
}
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { bottom: 2px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-5.75px) rotate(-45deg); }

.mm-link {
  display: flex; align-items: baseline; gap: 1.25rem;
  padding: .75rem 0;
  font-family: Syne, Inter, sans-serif;
  font-size: clamp(1.9rem, 9vw, 2.75rem);
  font-weight: 600; line-height: 1.05;
  color: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: color .4s var(--ease), padding-left .4s var(--ease);
}
.mm-link span {
  font-family: Inter, sans-serif; font-size: .62rem; font-weight: 400;
  letter-spacing: .28em; color: var(--gold);
}
.mm-link:active, .mm-link:hover { color: var(--gold); padding-left: .5rem; }

/* Progress bar */
#progressBar { transition: width .12s linear; }

/* ------------------------------- Cursor ---------------------------------- */

#cursor { will-change: transform; }
#cursor i {
  display: block; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%;
  transition: width .35s var(--ease), height .35s var(--ease),
              margin .35s var(--ease), background-color .35s var(--ease);
}
#cursor.is-hot i {
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  background: rgba(201, 162, 39, .14);
}
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  #cursor { display: block; }
}

/* --------------------------------- Hero ---------------------------------- */

/* Pirmas kadras kaip fonas — momentinis piešinys ir atsarginis variantas be JS */
.hero-sticky {
  background: #07090c url("../seq/m/f_001.jpg") center / cover no-repeat;
}
@media (min-width: 768px) {
  .hero-sticky { background-image: url("../seq/d/f_001.jpg"); }
}

#seq { display: block; }
html.no-js #seq { display: none; }   /* be JS lieka foninis kadras */

.hero-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
  backface-visibility: hidden;
}
.hero-stage[data-stage="1"] { opacity: 1; }
html.no-js .hero-stage:not([data-stage="1"]) { display: none; }

.hero-stage .line { display: block; overflow: hidden; }
.hero-stage .line__i { display: block; }

.grain {
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* be blend režimo — kadrų sekai persipiešiant tai brangiausia operacija */
}

/* -------------------------------- Ticker --------------------------------- */

.ticker { overflow: hidden; }
.ticker__row {
  display: flex; align-items: center; gap: 2.5rem;
  white-space: nowrap; width: max-content;
  animation: slide 42s linear infinite;
}
.ticker__row span {
  font-size: .75rem; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.ticker__row i { color: var(--gold); font-size: .5rem; font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* --------------------------------- Stats --------------------------------- */

.stat { background: var(--ink); padding: 1.75rem 1.5rem; }
.stat__v {
  font-family: Syne, Inter, sans-serif; font-size: 2rem; font-weight: 600;
  line-height: 1; color: #fff;
}
.stat__k {
  margin-top: .65rem; font-size: .7rem; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255, 255, 255, .4);
}

/* -------------------------------- Cards ---------------------------------- */

.card {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: .75rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0) 60%);
  padding: 2rem 1.75rem 2.25rem;
  transform-style: preserve-3d;
  transition: border-color .6s var(--ease), background-color .6s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(201, 162, 39, .14), transparent 62%);
  opacity: 0; transition: opacity .5s var(--ease); pointer-events: none;
}
.card:hover { border-color: rgba(201, 162, 39, .35); }
.card:hover::after { opacity: 1; }
.card__num {
  font-family: Syne, Inter, sans-serif; font-size: .75rem; letter-spacing: .2em;
  color: var(--gold);
}
.card__t {
  margin-top: 2.5rem; font-family: Syne, Inter, sans-serif;
  font-size: 1.6rem; font-weight: 600; color: #fff;
}
.card__p {
  margin-top: .75rem; font-size: .95rem; line-height: 1.7;
  color: rgba(255, 255, 255, .55);
}

/* ------------------------------- Projektai ------------------------------- */

.proj {
  position: relative; display: block; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 1rem;
  background: var(--ink-800);
  transition: border-color .6s var(--ease);
}
.proj:hover { border-color: rgba(201, 162, 39, .4); }

.proj__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
@media (min-width: 640px) { .proj__media { aspect-ratio: 16 / 10; } }
@media (min-width: 1024px) { .proj__media { aspect-ratio: 21 / 9; } }

.proj__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.6s var(--ease), filter .9s var(--ease);
  filter: saturate(.95) brightness(.86);
}
.proj:hover .proj__media img { transform: scale(1.07); filter: saturate(1.06) brightness(.98); }

.proj__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(7, 9, 12, .95) 0%, rgba(7, 9, 12, .55) 42%, rgba(7, 9, 12, .1) 100%),
    linear-gradient(to right, rgba(7, 9, 12, .7), transparent 65%);
}

.proj__over {
  position: absolute; inset: auto 0 0 0;
  padding: 1.75rem 1.5rem 2rem;
}
@media (min-width: 640px) { .proj__over { padding: 2.75rem; } }
@media (min-width: 1024px) { .proj__over { padding: 3.5rem 4rem; } }

.proj__link {
  display: inline-flex; align-items: center; gap: .55rem;
  border-bottom: 1px solid rgba(201, 162, 39, .45);
  padding-bottom: .3rem;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
  transition: gap .45s var(--ease), border-color .45s var(--ease);
}
.proj:hover .proj__link { gap: .95rem; border-color: var(--gold); }

.proj__k {
  font-size: .65rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}
.proj__v {
  margin-top: .3rem; font-family: Syne, Inter, sans-serif;
  font-size: 1.15rem; font-weight: 600; color: #fff;
}

.badge {
  display: inline-block; border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px; padding: .35rem .8rem;
  font-size: .65rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.badge--live {
  border-color: rgba(201, 162, 39, .5); color: var(--gold);
  background: rgba(201, 162, 39, .08);
}

.arrow { font-style: normal; transition: transform .45s var(--ease); display: inline-block; }
a:hover .arrow, .proj:hover .arrow { transform: translateX(5px); }

/* ------------------------------ Duomenų eilutės -------------------------- */

.row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; padding: 1.05rem 0;
}
.row dt { font-size: .95rem; color: rgba(255, 255, 255, .5); }
.row dd {
  font-family: Syne, Inter, sans-serif; font-size: 1.4rem; font-weight: 600;
  color: #fff; text-align: right;
}

.spec__k {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}
.spec__v {
  margin-top: .45rem; font-family: Syne, Inter, sans-serif;
  font-size: 1.25rem; font-weight: 600; color: #fff;
}

/* --------------------------- Parduodami objektai ------------------------- */

.offer {
  position: relative; overflow: hidden;
  border: 1px solid rgba(201, 162, 39, .45);
  border-radius: 1rem;
  background:
    linear-gradient(160deg, rgba(201, 162, 39, .12), rgba(201, 162, 39, .02) 55%),
    var(--ink-800);
  padding: 2rem 1.5rem 2.25rem;
}
.offer::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--gold);
}
@media (min-width: 640px)  { .offer { padding: 3rem; } }
@media (min-width: 1024px) { .offer { padding: 3.5rem 4rem; } }

.badge--sale {
  border-color: var(--gold); background: var(--gold); color: var(--ink);
  font-weight: 600; font-size: .68rem; padding: .45rem 1rem;
}

.offer .row { padding: 1.3rem 0; }
.offer .row dt { font-size: 1.05rem; color: rgba(255, 255, 255, .75); }
.offer .row dd { font-size: 1.85rem; }

.offer__spec {
  border: 1px solid rgba(255, 255, 255, .1); border-radius: .75rem;
  background: rgba(7, 9, 12, .55);
  padding: 1.75rem;
}
@media (min-width: 640px) { .offer__spec { padding: 2.25rem 2.5rem; } }
.offer .spec__k { font-size: .7rem; color: rgba(255, 255, 255, .5); }
.offer .spec__v { font-size: 1.7rem; }

.offer__price {
  font-family: Syne, Inter, sans-serif; font-size: 2rem; font-weight: 600;
  line-height: 1; color: var(--gold);
}

@media (max-width: 767px) {
  .offer .row dd { font-size: 1.5rem; }
  .offer .spec__v { font-size: 1.45rem; }
  .offer__price { font-size: 1.7rem; }
}

/* ------------------------------- Galerija -------------------------------- */

.gal { overflow: hidden; border-radius: .75rem; background: var(--ink-800); }
.gal img {
  display: block; width: 100%; height: 100%; min-height: 210px;
  object-fit: cover; filter: saturate(.92);
  transition: transform 1.2s var(--ease), filter .7s var(--ease);
}
.gal:hover img { transform: scale(1.06); filter: saturate(1.06); }

/* ------------------------------- Kontaktai ------------------------------- */

.crow {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: .5rem 1.5rem;
  padding: 1.35rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .5s var(--ease), padding-left .5s var(--ease);
}
.crow:last-child { border-bottom: 0; }
a.crow:hover { background: rgba(255, 255, 255, .04); padding-left: 2.1rem; }
.crow__k {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}
.crow__v {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: 1.15rem; color: rgba(255, 255, 255, .92);
  transition: color .4s var(--ease);
}
a.crow:hover .crow__v { color: var(--gold); }

/* -------------------------------- Kreditai ------------------------------- */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.credit {
  display: inline-flex; align-items: center; gap: .4rem;
  letter-spacing: .04em;
}
.credit__heart {
  width: .8rem; height: .8rem; color: var(--gold);
  animation: beat 2.6s var(--ease) infinite;
}
@keyframes beat {
  0%, 88%, 100% { transform: scale(1); }
  92%           { transform: scale(1.28); }
  96%           { transform: scale(1.1); }
}
.credit a {
  color: rgba(255, 255, 255, .6);
  letter-spacing: .14em;
  transition: color .4s var(--ease);
}
.credit a:hover { color: var(--gold); }

/* Skelbimo mygtukas — periodinis dėmesio pulsas */
.btn-pulse { position: relative; isolation: isolate; }
.btn-pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid var(--gold); opacity: 0; z-index: -1;
  animation: btnPulse 3.2s var(--ease) infinite;
}
@keyframes btnPulse {
  0%, 55%   { transform: scale(1); opacity: 0; }
  60%       { opacity: .9; }
  100%      { transform: scale(1.22); opacity: 0; }
}

/* ------------------------------ Animacijos ------------------------------- */

[data-rv], [data-split] .word { will-change: transform, opacity; }

html.no-js [data-rv],
html.no-js [data-split] { opacity: 1 !important; transform: none !important; }
html.no-js #loader { display: none; }

/* ------------------------------ Responsive ------------------------------- */

@media (max-width: 767px) {
  .hero-stage { align-items: flex-end; padding-bottom: 5rem; }
  .stat { padding: 1.35rem 1.1rem; }
  .stat__v { font-size: 1.6rem; }
  .row { padding: .9rem 0; }
  .row dd { font-size: 1.2rem; }
  .gal img { min-height: 180px; }
  .crow { padding: 1.15rem 1.25rem; }
  a.crow:hover { padding-left: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__row { animation: none; }
  .credit__heart { animation: none; }
  .btn-pulse::after { animation: none; }
  .scroll-dot { animation: none; }
  #loaderWord { animation: none; transform: none; }
  .gal img, .proj__media img { transition: none; }
}
