/* ─────────────────────────────────────────────────────────────
   Stāsta lapa (/stasts/) — «clean luxury» (2026-10-30)

   inc/stasts.php: [rota_stasts]. Ielādējas tikai šajā lapā.
   Tā pati valoda, kas produkta lapā: tumšs fons, Poppins 200,
   milzīga tipogrāfija, plānas līnijas, noapaļotas bildes.
   ───────────────────────────────────────────────────────────── */

.rota-stasts {
  --st-max: 1320px;
  --st-r: 22px;
  --st-ease: cubic-bezier(.2, .7, .2, 1);
  overflow-x: clip;
}
.rota-stasts > * {
  max-width: var(--st-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Kopējie gabali ───────────────────────────────────────── */

.st-label,
.st-num {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.st-label::before,
.st-num::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.st-label.is-center { justify-content: center; }

.st-h2 {
  margin: 22px 0 0;
  font-family: var(--f-body);
  font-weight: 200;
  font-size: clamp(40px, 5vw, 84px);
  line-height: .98;
  letter-spacing: -0.045em;
  color: #fff;
}
.st-h2 em,
.st-title em,
.st-final-title em {
  font-style: italic;
  font-weight: 200;
  color: var(--gold);
}

.st-btn,
.st-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}
.st-btn {
  padding: 18px 30px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  transition: background .25s ease, letter-spacing .35s ease;
}
.st-btn::after { content: "→"; font-size: 14px; letter-spacing: 0; transition: transform .35s ease; }
.st-btn:hover { background: #fff; color: var(--paper); letter-spacing: 0.26em; }
.st-btn:hover::after { transform: translateX(5px); }
.st-link {
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
  transition: border-color .25s ease;
}
.st-link:hover { color: #fff; border-bottom-color: var(--ink); }
.st-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 40px;
}
.st-cta.is-center { justify-content: center; }

/* ── Ievads ───────────────────────────────────────────────── */

.st-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  grid-template-areas:
    "text  photo"
    "facts facts";
  gap: clamp(32px, 5vw, 88px);
  align-items: end;
  padding-block: clamp(40px, 7vw, 104px) clamp(56px, 7vw, 112px);
}
.st-hero-text { grid-area: text; padding-bottom: clamp(0px, 3vw, 40px); }

.st-title {
  margin: 26px 0 0;
  font-family: var(--f-body);
  font-weight: 200;
  font-size: clamp(52px, 7.2vw, 132px);
  line-height: .9;
  letter-spacing: -0.055em;
  color: #fff;
}
.st-title em {
  display: block;
  background: linear-gradient(100deg, var(--gold) 10%, #f4e6c8 60%, var(--gold) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .1em;
  animation: st-sheen 7s ease-in-out infinite alternate;
}
@keyframes st-sheen { to { background-position: 100% 0; } }

.st-lede {
  margin: 30px 0 0;
  max-width: 38ch;
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 300;
  line-height: 1.7;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
}

.st-hero-photo {
  grid-area: photo;
  position: relative;
  margin: 0;
  isolation: isolate;
}
.st-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--st-r);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .75);
}
.st-hero-photo::before {
  content: "";
  position: absolute;
  inset: 10% -8% -4%;
  z-index: -1;
  background: url("../img/citas/anna-portrets.webp") center / cover;
  filter: blur(80px) saturate(1.3);
  opacity: .3;
  border-radius: 50%;
}
.st-hero-photo figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(35, 31, 32, .5);
  backdrop-filter: blur(8px);
}

.st-facts,
.st-times {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.st-facts { grid-area: facts; }
.st-facts li,
.st-times li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px 0 0;
}
.st-facts li + li,
.st-times li + li { padding-left: 24px; border-left: 1px solid var(--rule-soft); }
.st-facts .v,
.st-times .v {
  font-weight: 200;
  font-size: clamp(40px, 4.4vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}
.st-facts .v em,
.st-times .v em { font-style: normal; color: var(--gold); }
.st-facts .k,
.st-times .k {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Nodaļas ──────────────────────────────────────────────── */

.st-chapter {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
  padding-block: clamp(64px, 9vw, 140px);
}
.st-chapter.is-flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.st-chapter.is-flip .st-chapter-photo { order: 2; }

.st-chapter-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--st-r);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7);
}
.st-chapter-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.6s var(--st-ease);
}
.st-chapter.is-in .st-chapter-photo img { transform: scale(1); }

.st-chapter-text { max-width: 54ch; }
.st-chapter-text .st-h2 { margin-bottom: 36px; }
.st-chapter-text p:not(.st-num) {
  margin: 0 0 22px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: color-mix(in srgb, var(--ink) 80%, transparent);
}
.st-drop::first-letter {
  float: left;
  margin: .06em .14em 0 0;
  font-weight: 200;
  font-size: 4.6em;
  line-height: .8;
  color: var(--gold);
}

/* ── Citāts ───────────────────────────────────────────────── */

.rota-stasts > .st-quote {
  position: relative;
  max-width: 1100px;
  padding-block: clamp(72px, 10vw, 150px);
  text-align: center;
  border-block: 1px solid var(--rule-soft);
}
.st-quote-mark {
  display: block;
  height: .5em;
  font-size: clamp(120px, 14vw, 220px);
  font-weight: 200;
  line-height: 1;
  color: var(--gold);
  opacity: .5;
}
.st-quote blockquote { margin: 0; padding: 0; border: 0; }
.st-quote p {
  margin: 0;
  font-weight: 200;
  font-size: clamp(28px, 3.6vw, 54px);
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: #fff;
}
.st-quote p em { font-style: italic; color: color-mix(in srgb, var(--ink) 62%, transparent); }
.st-quote cite {
  display: inline-block;
  margin-top: 36px;
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Process ──────────────────────────────────────────────── */

.st-process { padding-block: clamp(64px, 9vw, 140px); }
.st-head { margin-bottom: clamp(40px, 5vw, 72px); }

.st-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 clamp(48px, 6vw, 88px);
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.st-steps li {
  position: relative;
  padding: 28px 24px 30px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--st-r);
  background: linear-gradient(180deg, rgba(244, 239, 227, .045), rgba(244, 239, 227, 0));
  transition: transform .5s var(--st-ease), border-color .35s ease, background .35s ease;
}
.st-steps li:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  background: linear-gradient(180deg, rgba(201, 180, 138, .1), rgba(244, 239, 227, 0));
}
.st-steps .n {
  display: block;
  font-size: 44px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--gold);
}
.st-steps h3 {
  margin: 30px 0 10px;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}
.st-steps p {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted);
}
.st-times { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ── Slīdošā josla ────────────────────────────────────────── */

.rota-stasts > .st-marquee {
  max-width: none;
  padding: 0;
  overflow: hidden;
  border-block: 1px solid var(--rule-soft);
}
.st-marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  padding-block: 26px;
  animation: st-marquee 52s linear infinite;
}
.st-marquee-track span {
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 200;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: #fff;
}
.st-marquee-track span:nth-of-type(even) { font-style: italic; color: var(--muted); }
.st-marquee-track i { font-style: normal; font-size: 14px; color: var(--gold); }
@keyframes st-marquee { to { transform: translateX(-50%); } }

/* ── Darbi ────────────────────────────────────────────────── */

.st-works { padding-block: clamp(64px, 9vw, 140px); }
.st-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: clamp(200px, 21vw, 330px);
  gap: clamp(12px, 1.4vw, 20px);
}
.st-shot { grid-column: span 4; }
.st-shot.is-1 { grid-column: span 7; grid-row: span 2; }
.st-shot.is-2 { grid-column: span 5; }
.st-shot.is-3 { grid-column: span 5; }
.st-shot.is-7 { grid-column: span 5; grid-row: span 2; }
.st-shot.is-8 { grid-column: span 7; }
.st-shot.is-9 { grid-column: span 7; }

.st-shot .wp-block-image {
  position: relative;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--st-r);
  background: rgba(244, 239, 227, .04);
}
.st-shot .wp-block-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--st-ease), filter .6s ease;
}
.st-shot .wp-block-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(244, 239, 227, .08);
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .35));
  opacity: 0;
  transition: opacity .5s ease;
}
.st-shot:hover .wp-block-image img { transform: scale(1.045); }
.st-shot:hover .wp-block-image::after { opacity: 1; }
.st-shot .lightbox-trigger { opacity: 0; transition: opacity .3s ease; }
.st-shot:hover .lightbox-trigger { opacity: 1; }

/* ── Noslēgums ────────────────────────────────────────────── */

.rota-stasts > .st-final {
  position: relative;
  padding-block: clamp(80px, 11vw, 170px) clamp(80px, 10vw, 150px);
  text-align: center;
  isolation: isolate;
}
.st-final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(201, 180, 138, .12), transparent 70%);
}
.st-final-title {
  margin: 26px 0 0;
  font-family: var(--f-body);
  font-weight: 200;
  font-size: clamp(56px, 8vw, 140px);
  line-height: .92;
  letter-spacing: -0.055em;
  color: #fff;
}

/* ── Kustība ──────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .st-hero-text > * { animation: st-rise 1.1s var(--st-ease) both; }
  .st-hero-text > :nth-child(2) { animation-delay: .08s; }
  .st-hero-text > :nth-child(3) { animation-delay: .18s; }
  .st-hero-text > :nth-child(4) { animation-delay: .26s; }
  .st-hero-photo { animation: st-photo 1.4s var(--st-ease) .1s both; }
  .st-facts li { animation: st-rise 1s var(--st-ease) both; }
  .st-facts li:nth-child(1) { animation-delay: .35s; }
  .st-facts li:nth-child(2) { animation-delay: .42s; }
  .st-facts li:nth-child(3) { animation-delay: .49s; }
  .st-facts li:nth-child(4) { animation-delay: .56s; }

  /* Sadaļas parādās, kad tās ieritina skatā (js/stasts.js). */
  .st-js .st-reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--st-ease), transform 1.1s var(--st-ease); }
  .st-js .st-reveal.is-in { opacity: 1; transform: none; }
}
@keyframes st-rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes st-photo { from { opacity: 0; transform: translateY(30px) scale(.97); } }

@media (prefers-reduced-motion: reduce) {
  .st-marquee-track, .st-title em { animation: none; }
}

/* ── Telefons un planšete ─────────────────────────────────── */

@media (max-width: 1100px) {
  .st-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-steps li:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .st-hero {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "photo" "facts";
  }
  .st-hero-photo { max-width: 460px; }
  .st-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .st-facts li { padding-bottom: 24px; }

  .st-chapter,
  .st-chapter.is-flip { grid-template-columns: 1fr; }
  .st-chapter.is-flip .st-chapter-photo { order: 0; }
  .st-chapter-photo { max-width: 520px; }

  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-shot,
  .st-shot[class*="is-"] { grid-column: span 1; grid-row: auto; }
  .st-shot.is-1,
  .st-shot.is-7 { grid-column: 1 / -1; }
  .st-grid { grid-auto-rows: auto; }
  .st-shot .wp-block-image img { aspect-ratio: 4 / 5; height: auto; }
  .st-shot.is-1 .wp-block-image img,
  .st-shot.is-7 .wp-block-image img { aspect-ratio: 1 / 1; }
}

@media (max-width: 560px) {
  .st-steps { grid-template-columns: 1fr; gap: 10px; }
  .st-steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; padding: 22px 20px; }
  .st-steps .n { grid-row: span 2; font-size: 32px; }
  .st-steps h3 { margin: 4px 0 8px; }
  .st-facts .v { white-space: nowrap; font-size: 40px; }
  .st-times { grid-template-columns: 1fr; }
  .st-times li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-soft); }
  .st-times li { padding-bottom: 22px; }
  .st-cta .st-btn { flex: 1 1 100%; justify-content: center; }
  .st-cta.is-center .st-btn { flex: 0 1 auto; }
}
