/* ================================================================
   GINEIKA — style.css
   Šriftai : Henri Didot (display) · Plus Jakarta Sans 200 (body)
   Spalvos : #040404 fonas · #fff tekstas · #c8c5bf silpnas ·
             #484845 išblukęs · #282825 subtilus
   ================================================================ */

/* ─── Šriftai ────────────────────────────────────────────────── */
@font-face {
  font-family: 'HenriDidot';
  src: url('../fonts/HenriDidot.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PlusJakarta';
  src: url('../fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PlusJakarta';
  src: url('../fonts/PlusJakartaSans-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 800;
  font-style: italic;
  font-display: swap;
}

/* ─── Tokenai ────────────────────────────────────────────────── */
:root {
  --bg:          #040404;
  --white:       #ffffff;
  --off:         #d4d1ca;
  --muted:       #8a877e;
  --subtle:      #736f67;
  --card:        #0c0c0c;
  --card-hover:  #141414;

  --f-display:   'HenriDidot', Georgia, serif;
  --f-body:      'PlusJakarta', system-ui, sans-serif;

  --gap:         12px;
  --pad:         2.4rem;
  --section-gap: 6rem;

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--f-body);
  font-weight: 200;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ─── Navigacija ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s var(--ease), backdrop-filter 0.5s;
}

.nav--scrolled {
  background: rgba(4, 4, 4, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav__brand {
  font-family: var(--f-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--white);
}

.nav__list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__link {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.nav__link:hover { color: var(--white); }

.nav__link--cta {
  color: var(--off);
  border-bottom: 1px solid rgba(200, 197, 191, 0.25);
  padding-bottom: 2px;
}

.nav__link--cta:hover { color: var(--white); }

/* Hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  padding: 4px;
  line-height: 0;
}

/* Mobilus meniu */
.nav__menu {
  display: contents;
}

/* ─── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 12rem var(--pad) var(--section-gap);
  text-align: center;
}

.hero__logo-svg {
  width: clamp(240px, 42vw, 480px);
  height: auto;
  overflow: visible;
  display: block;
  margin: 0 auto 1.6rem;
}
.hero__logo-svg #hero-g, .hero__logo-svg #hero-i, .hero__logo-svg #hero-n,
.hero__logo-svg #hero-e, .hero__logo-svg #hero-i2, .hero__logo-svg #hero-k, .hero__logo-svg #hero-a {
  opacity: 0;
  transform: translateY(28px);
}
.hero__logo-svg.animate #hero-g  { animation: heroLetterUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.05s both; }
.hero__logo-svg.animate #hero-i  { animation: heroLetterUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.15s both; }
.hero__logo-svg.animate #hero-n  { animation: heroLetterUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.24s both; }
.hero__logo-svg.animate #hero-e  { animation: heroLetterUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.33s both; }
.hero__logo-svg.animate #hero-i2 { animation: heroLetterUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.42s both; }
.hero__logo-svg.animate #hero-k  { animation: heroLetterUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.51s both; }
.hero__logo-svg.animate #hero-a  { animation: heroLetterUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.60s both; }
@keyframes heroLetterUp { to { opacity: 1; transform: translateY(0); } }

.hero__slogan-line {
  font-size: 11px;
  letter-spacing: 0.26em;
  font-weight: 300;
  color: var(--white);
  white-space: nowrap;
  min-height: 16px;
  text-align: center;
}
.hero__slogan-line span {
  display: inline-block;
  opacity: 0;
}

.hero__morph-zone {
  position: relative;
  height: 16px;
  width: min(560px, 90vw);
  margin: 0 auto;
  display: none;
}
.hero__morph-inner {
  position: absolute;
  inset: -20px -40px;
}
.hero__morph-text {
  position: absolute;
  left: 40px; right: 40px;
  top: 20px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.26em;
  font-weight: 300;
  color: var(--white);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .hero__logo-svg { width: clamp(200px, 64vw, 340px); margin-bottom: 1.2rem; }
  .hero__slogan-line, .hero__morph-text { font-size: 10px; letter-spacing: 0.18em; white-space: normal; }
}

/* ─── Darbai (sekcija) ────────────────────────────────────────── */
.works {
  padding: 0 var(--pad) var(--section-gap);
}

.works__heading {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 1.6rem;
}

/* Tinklelis */
.works__grid {
  display: grid;
  gap: var(--gap);
}

.works__grid--4 { grid-template-columns: repeat(4, 1fr); }
.works__grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Projekto kortelė */
.project {
  display: block;
  cursor: pointer;
}

.project__img {
  background: var(--card);
  aspect-ratio: 2 / 3;
  width: 100%;
  overflow: hidden;
  transition: background 0.5s var(--ease);
}

.project__img--wide {
  aspect-ratio: 16 / 9;
}

.project__img img {
  transition: transform 0.7s var(--ease), opacity 0.4s;
  opacity: 0.9;
}

.project:hover .project__img {
  background: var(--card-hover);
}

.project:hover .project__img img {
  transform: scale(1.03);
  opacity: 1;
}

.project__name {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-top: 9px;
  transition: color 0.3s;
}

.project:hover .project__name {
  color: var(--muted);
}

/* "Daugiau" mygtukas */
.works__foot {
  margin-top: 2rem;
}

.btn-more {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3px;
  transition: color 0.3s, border-color 0.3s;
}

.btn-more:hover {
  color: var(--off);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ─── Apie mane ───────────────────────────────────────────────── */
.about {
  padding: 0 var(--pad) var(--section-gap);
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 3.5rem;
  align-items: start;
}

/* min-width:0 ant abiejų grid stulpelių — kitaip grid stulpelio
   numatytas min-width yra "auto" (= jo turinio min-content), ir jei
   KAŽKAS .about__content viduje turi platų, nesusispaudžiantį
   min-content (pvz. ilgas white-space:nowrap tekstas), gridas tam
   stulpeliui atiduoda daugiau vietos NEGU 1.45fr, atimdamas ją iš
   nuotraukos stulpelio — kaip ir nutiko (nuotrauka "susitraukė"). */
.about__visual,
.about__content {
  min-width: 0;
}

/* Nuotrauka */
.about__visual { position: relative; }

.about__photo-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--card);
  cursor: crosshair;
}

.about__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.4s var(--ease);
}

.about__photo--a { opacity: 1; background-color: #101010; }
.about__photo--b { opacity: 0; background-color: #1a1a1a; }

.about__photo-wrap.is-hovered .about__photo--a { opacity: 0; }
.about__photo-wrap.is-hovered .about__photo--b { opacity: 1; }

/* Tekstas */
.about__eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 1.4rem;
}

.about__name {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.4rem;
}

.about__bio {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Bendradarbiaujame mygtukas */
.btn-cta {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: none;
  padding: 13px 26px;
  margin-bottom: 3.5rem;
  transition: border-color 0.35s, background 0.35s;
  cursor: pointer;
}

.btn-cta:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.03);
}

/* Klientų logotipai */
.clients__label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 1.3rem;
}

.clients__row {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Be galo slenkanti klientų logotipų juosta */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  width: max-content;
  animation: marqueeScroll var(--marquee-duration, 40s) linear infinite;
}

.marquee.is-paused .marquee__track,
.marquee__track.is-paused {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

.marquee__set {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  flex-shrink: 0;
}

.client-logo { height: var(--client-logo-height, 40px); display: flex; align-items: center; }

.client-logo--ph {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
}

.client-logo img {
  height: var(--client-logo-height, 40px);
  max-width: 220px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(1) brightness(1.6);
  transition: opacity 0.3s, filter 0.3s;
  object-fit: contain;
}

.client-logo img:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1);
}

/* ─── Paslaugos ───────────────────────────────────────────────── */
.services {
  padding: 0 var(--pad) var(--section-gap);
  display: flex;
  flex-direction: column;
}

.service {
  padding: 2.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 1rem 3rem;
  align-items: start;
}

.service:last-child { border-bottom: none; }

.service__cat {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  grid-column: 1;
  align-self: center;
}

.service__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--white);
  grid-column: 1;
}

.service__desc {
  font-size: 13px;
  line-height: 1.85;
  color: var(--off);
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: start;
  padding-top: 0.2rem;
}

.service__cond {
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  grid-column: 2;
  grid-row: 3;
  margin-top: 0.8rem;
}

.service__cond span {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtle);
  display: block;
  margin-bottom: 0.4rem;
}

@media (max-width: 768px) {
  .service {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .service__desc,
  .service__cond { grid-column: 1; grid-row: auto; }
}

/* ─── Atsiliepimai (integruoti į "Apie mane" sekciją) ───────────── */
.about__testimonials {
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line, rgba(255,255,255,0.08));
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.t-card {
  background: var(--card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  height: 200px;
  overflow: hidden;
  transition: background 0.5s var(--ease);
}

.t-card:hover {
  background: var(--card-hover);
}

.t-card__top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.t-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #141414;
}

.t-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.t-card__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.t-card__name {
  font-size: 13px;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-card__role {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-card__stars {
  display: flex;
  gap: 4px;
  color: var(--off);
  flex-shrink: 0;
}

.t-star {
  flex-shrink: 0;
  opacity: 0.85;
}

/* Tekstas — fiksuoto aukščio "langelis" (.t-card__text, niekada
   nejuda, tik kerpa overflow), o VIDUJE esantis .t-card__text-inner
   slenkasi aukštyn per hover. SVARBU: transform taikomas VIDINIAM
   elementui, NE pačiam langeliui — kitaip judantis blokas išlipa už
   savo vietos ir užlipa ant žvaigždučių/avataro virš jo. Konkretų
   atstumą paskaičiuoja main.js initTestimonialTextScroll() pagal
   realų teksto ilgį (--t-scroll-dist). Avataras ir žvaigždutės yra
   ATSKIRI flex elementai virš šito — jiems šis transform neturi
   poveikio. */
.t-card__text {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.t-card__text-inner {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--off);
  transition: transform 5s linear;
}

.t-card:hover .t-card__text-inner {
  transform: translateY(calc(-1 * var(--t-scroll-dist, 0px)));
}

@media (prefers-reduced-motion: reduce) {
  .t-card:hover .t-card__text-inner { transform: none; }
}

/* ─── Plūduriuojantis "Bendradarbiaujame?" mygtukas ──────────────
   Visada matomas skrolinant (position: fixed). Kai artėjama prie
   footer'io, main.js perjungia į position: absolute su tiksliu
   "top" skaičiavimu, kad mygtukas "nudokuotų" virš footer'io ir
   niekada jo neperklotų.
   ────────────────────────────────────────────────────────────── */
.cta-float-wrap {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
}

.cta-float-wrap.is-docked {
  position: absolute;
  bottom: auto;
}

.cta-float-wrap.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cta-float-wrap {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cta-float {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--white);
  color: #0a0a09;
  border: none;
  padding: 15px 22px 15px 24px;
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
}

.cta-float:hover {
  transform: translateY(-4px) scale(1.035);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.6);
  background: #f3f1ec;
}

.cta-float:active {
  transform: translateY(-1px) scale(0.99);
}

.cta-float__icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-float:hover .cta-float__icon {
  transform: rotate(180deg);
}

/* Subtilus, nepastovus "kviečiantis" pulsavimas, kol nepasiekė hover */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(255, 255, 255, 0.18); }
  50%      { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 9px rgba(255, 255, 255, 0); }
}

.cta-float {
  animation: cta-pulse 3.2s ease-in-out infinite;
}

.cta-float:hover {
  animation-play-state: paused;
}

/* ─── "Follow" CTA juosta ─────────────────────────────────────── */
.follow {
  padding: var(--section-gap) var(--pad) 4rem;
  text-align: center;
}

.follow__eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 0.8rem;
}

.follow__heading {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  color: var(--white);
  margin-bottom: 2.2rem;
}

.follow__row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.follow__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--off);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.follow__btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
}

.follow__icon {
  width: 15px;
  height: 15px;
  display: flex;
  flex-shrink: 0;
}

.follow__icon svg { width: 100%; height: 100%; }

/* ─── Footer ──────────────────────────────────────────────────── */
.footer {
  padding: 3.5rem var(--pad) 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer__col-title {
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1.1rem;
}

.footer__col a {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 0.7rem;
  transition: color 0.3s;
  width: fit-content;
}

.footer__col a:hover { color: var(--white); }

.footer__brand-name {
  font-family: var(--f-display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 0.7rem;
}

.footer__tagline {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 26ch;
  margin-bottom: 1.3rem;
}

.footer__mini-social {
  display: flex;
  gap: 0.9rem;
}

.footer__mini-social a {
  width: 16px;
  height: 16px;
  color: var(--subtle);
  transition: color 0.3s;
}

.footer__mini-social a:hover { color: var(--white); }
.footer__mini-social svg { width: 100%; height: 100%; }

.footer__contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 0.7rem;
  transition: color 0.3s;
  width: fit-content;
}

.footer__contact-icon {
  width: 13px;
  height: 13px;
  min-width: 13px;
  flex-shrink: 0;
  color: var(--subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__contact-icon svg {
  width: 13px;
  height: 13px;
  display: block;
}

/* .footer__col a { display:block } turi didesnį specifiškumą nei
   .footer__contact-row { display:flex }, nes prie klasės prisideda
   elemento selektorius — todėl telefono/email eilutės (kurios yra <a>)
   nukrisdavo į display:block ir ikonelė (savaime display:flex, taigi
   užimanti visą plotį) atsidurdavo virš teksto. Adreso eilutė yra
   <span>, ne <a>, todėl jai šis konfliktas nekildavo. */
.footer__col a.footer__contact-row {
  display: flex;
}

.footer__bottom {
  padding: 1.6rem var(--pad) 1.8rem;
  margin: 0 calc(-1 * var(--pad));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__copy {
  font-size: 11px;
  color: var(--subtle);
  letter-spacing: 0.1em;
}

/* ─── Kontaktų modalas ────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.modal[aria-hidden="false"] {
  pointer-events: all;
}

.modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 4, 0.92);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  cursor: pointer;
}

.modal[aria-hidden="false"] .modal__bg {
  opacity: 1;
}

.modal__panel {
  position: relative;
  background: #080808;
  padding: 3.5rem;
  width: min(520px, 90vw);
  transform: translateY(28px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

.modal[aria-hidden="false"] .modal__panel {
  transform: translateY(0);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--muted);
  padding: 6px;
  line-height: 0;
  transition: color 0.3s;
}

.modal__close:hover { color: var(--white); }

.modal__label {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 1rem;
}

.modal__title {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 2rem;
  line-height: 1.1;
}

/* Formos laukeliai */
.field { margin-bottom: 1.1rem; }

.field input,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: var(--f-body);
  font-weight: 200;
  font-size: 13px;
  padding: 1rem 1.2rem;
  outline: none;
  resize: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  border-radius: 0;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(255, 255, 255, 0.25);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.18);
  font-weight: 200;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  margin-top: 0.4rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-family: var(--f-body);
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s, border-color 0.35s;
  border-radius: 0;
}

.btn-submit:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form__status {
  font-size: 12px;
  text-align: center;
  color: var(--muted);
  margin-top: 1rem;
  min-height: 1.4em;
}

/* ─── Mobilusis dizainas ──────────────────────────────────────── */
@media (max-width: 900px) {
  .works__grid--4 { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1.5rem; }
}

@media (max-width: 768px) {
  :root {
    --pad:         1.5rem;
    --section-gap: 4.5rem;
  }

  /* Nav */
  .nav__list  { display: none; }
  .nav__toggle { display: block; }

  .nav__menu.is-open {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
  }

  .nav__menu.is-open .nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  .nav__menu.is-open .nav__link {
    font-size: 13px;
    letter-spacing: 0.25em;
  }

  /* Hero */
  .hero {
    padding-top: 8rem;
    padding-bottom: var(--section-gap);
  }

  /* Gridas */
  .works__grid--4 { grid-template-columns: repeat(2, 1fr); }
  .works__grid--3 { grid-template-columns: repeat(1, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(1, 1fr); }

  /* Apie */
  .about {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__photo-wrap { aspect-ratio: 4 / 5; }
  .about__bio { max-width: 100%; }

  /* Footer */
  .footer { padding-top: 2.8rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.4rem; padding-bottom: 2.4rem; }
  .footer__tagline { max-width: 100%; }

  /* Follow CTA juosta */
  .follow { padding: 4rem 1.5rem 3rem; }
  .follow__btn { padding: 10px 16px; font-size: 10.5px; }

  /* Modalas */
  .modal__panel { padding: 2.5rem 1.8rem; }

  /* Plūduriuojantis CTA mygtukas */
  .cta-float-wrap { bottom: 18px; left: 50%; transform: translateX(-50%); }
  .cta-float {
    padding: 13px 18px 13px 20px;
    font-size: 11px;
    gap: 9px;
  }
  .cta-float__label { display: none; }
  .cta-float { padding: 14px; border-radius: 50%; }
  .cta-float__icon { width: 19px; height: 19px; }
}

@media (max-width: 480px) {
  .works__grid--4 { grid-template-columns: repeat(2, 1fr); }
  .clients__row   { gap: 1.4rem; }
}

/* ─── Sumažinta animacija ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration:  0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ================================================================
   PROJEKTO PUSLAPIO KOMPONENTAI
   (fotografija/projektas-x/, videografija/projektas-x/)
   ================================================================ */

/* Aktyvi nav nuoroda */
.nav__link.is-active {
  color: var(--off);
}

/* ─── Projekto Hero ───────────────────────────────────────────── */
.p-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--card);
}

/* Foto projektas — pilno aukščio, cover */
.p-hero--photo {
  height: 88vh;
  min-height: 420px;
}

.p-hero--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video projektas — 16:9 responsive embed */
.p-hero--video {
  aspect-ratio: 16 / 9;
  height: auto;
}

.p-hero__embed {
  position: relative;
  width: 100%;
  height: 100%;
}

.p-hero__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Viršutinis gradientas — kad nav matytųsi virš ryškaus vaizdo */
.p-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
  z-index: 2;
  pointer-events: none;
}

/* ─── Meta juosta po hero ─────────────────────────────────────── */
.p-meta {
  padding: 2.6rem var(--pad) 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.p-meta__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 70%;
}

.p-meta__details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
  min-width: 140px;
  padding-top: 0.6rem;
}

.p-meta__item {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Koncepto tekstas ────────────────────────────────────────── */
.p-concept {
  padding: 1.5rem var(--pad) 4.5rem;
  display: flex;
}

.p-concept__text {
  max-width: 54ch;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--off);
}

/* ─── Sekcijos antraštė (pvz. "Kadrai iš filmavimo") ─────────────── */
.p-subhead {
  padding: 0 var(--pad) 1.6rem;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--off);
}

/* ─── Asimetriškas turinio tinklelis ─────────────────────────────── */
.pgrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap);
  padding: 0 var(--pad) var(--section-gap);
}

.pgrid__item {
  position: relative;
  overflow: hidden;
  background: var(--card);
}

.pgrid__item img,
.pgrid__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.pgrid__item:hover img,
.pgrid__item:hover video {
  transform: scale(1.025);
}

/* Dydžiai: pilnas plotis, pusė, centruotas su whitespace, trečdalis */
.pgrid__item--full {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.pgrid__item--half {
  grid-column: span 3;
  aspect-ratio: 4 / 5;
}

.pgrid__item--center {
  grid-column: 2 / 6; /* 4 of 6, centered, whitespace on sides */
  aspect-ratio: 3 / 4;
}

.pgrid__item--third {
  grid-column: span 2;
  aspect-ratio: 1 / 1;
}

/* Vertikalūs video (teaser'iai 9:16) */
.pgrid__item--vertical {
  grid-column: span 2;
  aspect-ratio: 9 / 16;
}

/* Du trečdaliai (4 iš 6 stulpelių) */
.pgrid__item--two-thirds {
  grid-column: span 4;
  aspect-ratio: 16 / 9;
}

/* ───────────────────────────────────────────────────────────
   GALERIJOS BLOKAS
   Kiekviena nuotrauka įvyniota į savo .pgrid-gallery__cell su
   overflow:hidden — be šito apvalkalo, .pgrid__item:hover img
   didinimo efektas (transform: scale) išauga už savo langelio
   ribų ir užlipa ant kaimyninių eilutės nuotraukų.
   ─────────────────────────────────────────────────────────── */
.pgrid-gallery {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 2px;
}

.pgrid-gallery__cell {
  position: relative;
  overflow: hidden;
}

.pgrid-gallery__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Išdėstymas: Tinklelis (numatytasis) — vienodo dydžio langeliai per N stulpelių */
.pgrid-gallery--grid {
  grid-template-columns: repeat(var(--gallery-cols, 3), 1fr);
  grid-auto-rows: 1fr;
}

/* Išdėstymas: Mozaika — pirma nuotrauka didelė (2×2), likusios mažos */
.pgrid-gallery--mosaic {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(70px, 1fr);
  grid-auto-flow: dense;
}
.pgrid-gallery--mosaic .pgrid-gallery__cell:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* Išdėstymas: Eilutė — viena horizontali juosta, slenkanti į šoną, jei netelpa */
.pgrid-gallery--row {
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  grid-template-columns: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

/* ───────────────────────────────────────────────────────────
   LINIJOS IR TARPO BLOKAI
   Šie blokai NĖRA nuotraukos — jiems nereikia priverstinio
   16:9 aukščio nei fono spalvos, kurią .pgrid__item--full
   uždeda nuotraukoms. pgrid__item--type-X klasė (žr.
   block-registry.php) leidžia juos atskirti nuo bendros
   nuotraukų dėžės taisyklės.
   ─────────────────────────────────────────────────────────── */
.pgrid__item--type-divider,
.pgrid__item--type-spacer {
  aspect-ratio: auto !important;
  background: transparent;
  overflow: visible;
}

.pgrid-divider {
  width: 100%;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.14);
  margin: 0;
}
.pgrid-divider--dots {
  border-top: none;
  height: 4px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.35) 1.5px, transparent 1.6px);
  background-repeat: repeat-x;
  background-size: 12px 4px;
}
.pgrid-divider--sm { margin: 1rem 0; }
.pgrid-divider--md { margin: 2.4rem 0; }
.pgrid-divider--lg { margin: 4.5rem 0; }

.pgrid-spacer {
  width: 100%;
}

/* ───────────────────────────────────────────────────────────
   KARUSELĖS IŠDĖSTYMAS (galerijos bloko layout="carousel") —
   be galo besisukanti nuotraukų juosta. Tas pats principas kaip
   klientų logotipų .marquee (žr. žemiau skiltyje "Klientai"): du
   identiški .pgrid-carousel__set pakartojimai + CSS @keyframes
   translateX(-50%) ciklas, jį inicijuoja assets/js/main.js →
   initImageCarousels().

   SVARBU: karuselė NĖRA pavienė nuotrauka, tad jai netinka bendras
   16:9 pilno bloko aukštis (su juo 1–2 nuotraukų juosta išsitemptų
   į absurdiškai aukštą, siaurą dėžę ir nuotraukos atrodytų "siauros").
   Todėl aukštį nustatome patys (clamp pagal lango plotį), o ne
   paveldime iš .pgrid__item--full aspect-ratio.
   ─────────────────────────────────────────────────────────── */
.pgrid__item:has(.pgrid-carousel) {
  aspect-ratio: auto !important;
}

.pgrid-carousel {
  width: 100%;
  height: clamp(200px, 26vw, 420px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.pgrid-carousel__track {
  display: flex;
  height: 100%;
  width: max-content;
  animation: carouselScroll var(--carousel-duration, 36s) linear infinite;
}

.pgrid-carousel.is-paused .pgrid-carousel__track,
.pgrid-carousel__track.is-paused {
  animation-play-state: paused;
}

@keyframes carouselScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .pgrid-carousel__track { animation: none; }
}

.pgrid-carousel__set {
  display: flex;
  height: 100%;
  gap: 2px;
  flex-shrink: 0;
}

/* Pločio vietoj fiksuoto pikselių skaičiaus naudojame aspect-ratio,
   kad nuotrauka liktų normalių, "nesuspaustų" proporcijų, kad ir
   koks bebūtų juostos aukštis. */
.pgrid-carousel__slide {
  height: 100%;
  width: auto;
  aspect-ratio: 3 / 2;
  flex-shrink: 0;
  overflow: hidden;
}

.pgrid-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Redaktoriaus statinė peržiūra (be animacijos) — paprasčiausia eilutė */
.pgrid-carousel--preview {
  display: flex;
  gap: 2px;
  height: clamp(160px, 22vw, 320px);
  overflow-x: auto;
  mask-image: none;
  -webkit-mask-image: none;
}

/* ───────────────────────────────────────────────────────────
   MYGTUKO BLOKAS — tas pats vizualinis stilius, kaip ir
   esamas "Bendradarbiaujame" mygtukas (.btn-cta), tik su
   pasirenkamu užpildytu variantu.
   ─────────────────────────────────────────────────────────── */
.pgrid__item--type-button {
  aspect-ratio: auto !important;
  background: transparent;
  overflow: visible;
}

.pgrid-btn-wrap {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

.pgrid-btn {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 13px 30px;
  transition: border-color 0.35s, background 0.35s, color 0.35s;
  text-decoration: none;
}

.pgrid-btn.btn--outline {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: none;
}
.pgrid-btn.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.03);
}

.pgrid-btn.btn--filled {
  color: #000;
  background: var(--white);
  border: 1px solid var(--white);
}
.pgrid-btn.btn--filled:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* ─── CTA blokas — "Patiko šis projektas?" ───────────────────────── */
.p-cta {
  padding: 5.5rem var(--pad);
  text-align: center;
  background: #0a0a0a;
}

.p-cta__text {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  line-height: 1.22;
  margin-bottom: 2.2rem;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Kitas projektas / atgal navigacija ─────────────────────────── */
.p-next {
  padding: 2.6rem var(--pad) 3.8rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.p-next__back {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.p-next__back:hover { color: var(--white); }

.p-next__link {
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s;
}

.p-next__link:hover { color: var(--off); }

.p-next__link small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--subtle);
  text-transform: uppercase;
}

/* ─── Sąrašo puslapio (Fotografija / Videografija) antraštė ──────── */
.list-hero {
  padding: 9rem var(--pad) 3.2rem;
}

.list-hero__back {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
  transition: color 0.3s;
}

.list-hero__back:hover { color: var(--white); }

.list-hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.97;
  letter-spacing: -0.01em;
}

/* ================================================================
   PROJEKTO PUSLAPIS — MOBILUS DIZAINAS
   ================================================================ */
@media (max-width: 768px) {

  .p-hero--photo { height: 62vh; }

  .p-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .p-meta__title { max-width: 100%; }

  .p-meta__details {
    text-align: left;
    padding-top: 0;
  }

  .pgrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pgrid__item--full,
  .pgrid__item--center {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 5;
  }

  .pgrid__item--half,
  .pgrid__item--third {
    grid-column: span 1;
    aspect-ratio: 1 / 1;
  }

  .pgrid__item--two-thirds {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 5;
  }

  .pgrid__item--vertical {
    grid-column: span 2;
    aspect-ratio: 9 / 16;
  }

  /* Teksto blokai mobiliai — visada pilnas plotis, be aspect-ratio */
  .pgrid__item--type-text.pgrid__item--full,
  .pgrid__item--type-text.pgrid__item--two-thirds,
  .pgrid__item--type-text.pgrid__item--center {
    aspect-ratio: unset;
  }

  .p-cta__text { max-width: 100%; }

  .p-next {
    flex-direction: column;
    align-items: flex-start;
  }

  .p-next__link { text-align: left; }
}

/* ================================================================
   MENO DARBAI — papildomi .pgrid elementai (tekstas tinklelyje)
   ================================================================ */

/* Kvadratinė projekto kortelė (sąrašo puslapiams su mišriu turiniu) */
.project__img--square {
  aspect-ratio: 1 / 1;
}

/* ───────────────────────────────────────────────────────────
   TEKSTO BLOKAS — standartiniai dydžiai (full / half / third / two-thirds / center)
   pgrid__item--type-text užtikrina, kad visos image-specific savybės
   (aspect-ratio, overflow:hidden, hover scale) nebūtų taikomos tekstui.
   ─────────────────────────────────────────────────────────── */
.pgrid__item--type-text {
  background: transparent;
  overflow: visible;
}

/* Atšaukiame aspect-ratio ir pritaikome teksto stilius visiems
   standartiniams dydžiams — taip tekstą galima sudėti šalia nuotraukos */
.pgrid__item--type-text.pgrid__item--full,
.pgrid__item--type-text.pgrid__item--half,
.pgrid__item--type-text.pgrid__item--third,
.pgrid__item--type-text.pgrid__item--two-thirds,
.pgrid__item--type-text.pgrid__item--center {
  aspect-ratio: unset;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  padding: 0.5rem 1.5rem;
}

/* Pilno pločio tekstas — centruojamas su daugiau oro */
.pgrid__item--type-text.pgrid__item--full {
  justify-content: center;
  padding: 1.4rem var(--pad) 0.6rem;
}

.pgrid__item--type-text p {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--off);
  max-width: 42ch;
}

.pgrid__item--type-text.pgrid__item--full p,
.pgrid__item--type-text.pgrid__item--two-thirds p {
  max-width: 54ch;
}

/* Hover scale neaktualus — nėra <img> */
.pgrid__item--type-text:hover img,
.pgrid__item--type-text:hover video {
  transform: none;
}

/* Atgalinė suderinamumas su senais 'text' / 'text-full' dydžiais */
.pgrid__item--text {
  grid-column: span 3;
  background: transparent;
  display: flex;
  align-items: center;
  padding: 0.5rem 1.5rem;
  aspect-ratio: unset;
  overflow: visible;
}

.pgrid__item--text p {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--off);
  max-width: 42ch;
}

.pgrid__item--text-full {
  grid-column: 1 / -1;
  background: transparent;
  display: flex;
  justify-content: center;
  padding: 1.4rem var(--pad) 0.6rem;
  aspect-ratio: unset;
  overflow: visible;
}

.pgrid__item--text-full p {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--off);
  max-width: 54ch;
}

@media (max-width: 768px) {
  .pgrid__item--type-text.pgrid__item--half,
  .pgrid__item--type-text.pgrid__item--third,
  .pgrid__item--type-text.pgrid__item--two-thirds,
  .pgrid__item--type-text.pgrid__item--center {
    grid-column: 1 / -1;
    padding: 0.3rem 0;
  }

  .pgrid__item--text,
  .pgrid__item--text-full {
    grid-column: 1 / -1;
    padding: 0.3rem 0;
  }
}
