:root {
  --ink: #1a181b;
  --ink-2: #232025;
  --ink-3: #2e2a2f;
  --paper: #f3f0ee;
  --paper-2: #e9e5e2;
  --plaster: #cdc9ca;
  --white: #fbfaff;
  --cream: #f3ede8;
  --pink: #ee3d7e;
  --pink-deep: #b8215a;
  --blush: #f4c6d6;
  --muted: #a39da2;
  --muted-dark: #5d575c;
  --line: rgba(26, 24, 27, .14);
  --line-light: rgba(243, 237, 232, .14);

  --f-display: "Anton", "Impact", sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-label: "Josefin Sans", "Futura", sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2 { font-family: var(--f-display); font-weight: 400; line-height: .95; margin: 0; }
h2 { font-size: clamp(44px, 7vw, 104px); text-transform: uppercase; letter-spacing: -.005em; }
h2 em, .footer__big em, .story__text em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: 0; color: var(--pink-deep);
}
h2 em { font-size: 1.08em; }
h3 { font-family: var(--f-body); font-size: 19px; font-weight: 700; line-height: 1.25; margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--pink); padding: 8px 14px; border-radius: 8px; }

/* section header: "01 — Nodarbība" */
.shead { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; font: 600 12px/1 var(--f-label); letter-spacing: .3em; text-transform: uppercase; color: var(--muted-dark); }
.shead::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.shead__idx { color: var(--pink-deep); }
.shead--light { color: var(--muted); }
.shead--light::after { background: var(--line-light); }
.shead--light .shead__idx { color: var(--pink); }

.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--muted-dark); max-width: 560px; margin-top: 28px; }
.subhead { font: 600 13px/1 var(--f-label); letter-spacing: .28em; text-transform: uppercase; margin: clamp(64px, 8vw, 100px) 0 28px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: 999px; border: 2px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font: 700 15px/1 var(--f-body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--blush); outline-offset: 3px; }
.btn--pink { --bg: var(--pink); --bd: var(--pink); --fg: var(--white); box-shadow: 0 10px 30px -12px rgba(238, 61, 126, .8); }
.btn--pink:hover { --bg: var(--pink-deep); --bd: var(--pink-deep); }
.btn--dark { --bg: var(--ink); --bd: var(--ink); --fg: var(--white); }
.btn--dark:hover { --bg: var(--pink-deep); --bd: var(--pink-deep); }
.btn--ghost { --bd: rgba(26, 24, 27, .3); }
.btn--ghost:hover { --bd: var(--ink); }
.btn--ghost-light { --fg: var(--cream); --bd: rgba(243, 237, 232, .3); }
.btn--ghost-light:hover { --bd: var(--cream); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  color: var(--cream);
  transition: background .3s ease, backdrop-filter .3s ease, padding .3s ease;
}
.nav.is-scrolled { background: rgba(26, 24, 27, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 8px; }
.nav__brand { display: block; line-height: 0; z-index: 2; }
/* the round logo has small lettering, so it needs real size to stay legible */
.nav__brand img { width: 112px; height: 112px; transition: width .3s ease, height .3s ease; }
.nav.is-scrolled .nav__brand img { width: 76px; height: 76px; }
.nav__menu { display: flex; align-items: center; gap: 26px; }
.nav__menu a:not(.btn) {
  text-decoration: none; font: 600 13px/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--pink); transition: right .25s ease;
}
.nav__menu a:not(.btn):hover::after { right: 0; }
.nav__toggle { display: none; }

/* over a light page top (hero / rental intro) the nav switches to the dark logo and ink links */
.nav__brand { position: relative; }
.nav__logo--dark { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; }
.nav__logo--light { transition: opacity .3s ease; }
.nav.on-light:not(.is-scrolled):not(.is-open) .nav__logo--dark { opacity: 1; }
.nav.on-light:not(.is-scrolled):not(.is-open) .nav__logo--light { opacity: 0; }
.nav.on-light:not(.is-scrolled):not(.is-open) .nav__menu a:not(.btn) { color: var(--ink); }
.nav.on-light:not(.is-scrolled):not(.is-open) .nav__toggle span { background: var(--ink); }

@media (max-width: 960px) {
  .nav__toggle {
    display: grid; gap: 6px; place-content: center;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; z-index: 2;
  }
  .nav__toggle span { display: block; width: 26px; height: 2px; background: var(--cream); transition: transform .3s ease; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__menu {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: var(--ink); opacity: 0; pointer-events: none; transition: opacity .3s ease;
  }
  .nav__menu a:not(.btn) { font-size: 18px; }
  .nav.is-open .nav__menu { opacity: 1; pointer-events: auto; }
  /* backdrop-filter would trap the fixed menu inside the nav bar */
  .nav.is-open { backdrop-filter: none; background: var(--ink); }
}
@media (max-width: 760px) {
  .nav__brand img { width: 88px; height: 88px; }
  .nav.is-scrolled .nav__brand img { width: 60px; height: 60px; }
}

/* ======================================================
   Story — words light up while the section is pinned
   ====================================================== */
.story { position: relative; height: 230vh; background: var(--ink); color: var(--cream); }
.story > .wrap {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
}
/* the swirl stays pinned behind the text and draws itself as you scroll */
.story__swirl { position: sticky; top: 0; display: block; width: 100%; height: 100vh; margin-bottom: -100vh; pointer-events: none; }
.story__swirl path {
  fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1); opacity: .55;
}
.kicker { font: 600 12px/1 var(--f-label); letter-spacing: .3em; text-transform: uppercase; color: var(--pink); margin-bottom: 34px; }
.story__text {
  font: 400 clamp(36px, 5.4vw, 86px)/1.02 var(--f-display); text-transform: uppercase;
  max-width: 1150px; margin: 0;
}
.story__text .w { color: rgba(243, 237, 232, .14); transition: color .35s ease; }
.story__text .w.is-lit { color: var(--cream); }
.story__text em .w.is-lit, .story__text em.is-lit { color: var(--pink); }
.story__text em { font-size: 1.12em; color: inherit; }

/* ======================================================
   01 Nodarbība
   ====================================================== */
.klase { background: var(--paper); }
.klase__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: end; }
.facts { margin: 0; display: grid; }
.facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts > div[hidden] { display: none; }
.facts dt { font: 600 12px/1.9 var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: var(--muted-dark); }
.facts dd { margin: 0; font-weight: 700; font-size: 18px; }
.facts dd a { text-decoration-color: var(--pink); text-underline-offset: 4px; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: f; }
.flow li { border-top: 2px solid var(--ink); padding-top: 18px; }
.flow__n { display: block; font: 400 64px/1 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px var(--pink-deep); margin-bottom: 14px; }
.flow b { font-size: 19px; }
.flow p { color: var(--muted-dark); font-size: 15px; margin: 6px 0 0; }

/* ======================================================
   02 Pieteikšanās + cenas
   ====================================================== */
.booking { background: var(--paper-2); }
.steps3 { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.steps3 li { position: relative; padding-top: 6px; }
.steps3__n {
  display: block; font: 400 clamp(110px, 12vw, 170px)/.8 var(--f-display);
  color: transparent; -webkit-text-stroke: 2px var(--ink); margin-bottom: 18px;
}
.steps3 li:nth-child(2) .steps3__n { -webkit-text-stroke-color: var(--pink-deep); }
.steps3 h3 { font-size: 22px; margin-bottom: 8px; }
.steps3 p { color: var(--muted-dark); margin: 0; max-width: 330px; }

/* 1px gaps over an ink background draw the dividers, so they stay right however the grid wraps */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); border-radius: 22px; overflow: hidden; }
.plan { position: relative; padding: 34px 28px 28px; display: flex; flex-direction: column; background: var(--paper); }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); } }
.plan--featured { background: var(--ink); color: var(--cream); }
.plan__badge { position: absolute; top: 18px; right: 18px; background: var(--pink); color: var(--white); font: 600 10px/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }
.plan__name { font: 600 13px/1.2 var(--f-label); letter-spacing: .22em; text-transform: uppercase; margin-bottom: 26px; }
.plan--featured .plan__name { padding-right: 100px; }
.plan__price { font: 400 84px/.9 var(--f-display); }
.plan__price small { font-size: 34px; vertical-align: top; margin-left: 4px; }
.plan__price--tbd { font: italic 400 34px/84px var(--f-serif); color: var(--muted); }
.plan__unit { font-size: 14px; color: var(--muted-dark); margin-top: 8px; }
.plan--featured .plan__unit { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 9px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); transform: translateY(-2px); }
.plan .btn { margin-top: auto; }
.plans__note { margin-top: 22px; color: var(--muted-dark); font-size: 15px; }
.plans__note a { color: var(--pink-deep); font-weight: 700; }

/* ======================================================
   03 Grafiks (dark)
   ====================================================== */
.schedule { background: var(--ink); color: var(--cream); }
.schedule h2 em { color: var(--pink); }
.schedule__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 44px; }
.schedule__head p { max-width: 360px; color: var(--muted); font-size: 15px; margin: 0; }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line-light); border-radius: 18px; overflow: hidden; margin-bottom: 40px; }
.week:empty { display: none; }
.day { padding: 16px 14px 18px; min-height: 150px; display: flex; flex-direction: column; gap: 10px; }
.day + .day { border-left: 1px solid var(--line-light); }
.day__dow { font: 600 11px/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.day__date { font: 400 34px/1 var(--f-display); }
.day--today { background: rgba(238, 61, 126, .08); }
.day--today .day__dow { color: var(--pink); }
.day--empty .day__date { color: rgba(243, 237, 232, .3); }
.chip {
  display: grid; gap: 2px; margin-top: auto;
  padding: 10px 12px; border-radius: 12px; background: var(--pink); color: var(--white);
  text-decoration: none; transition: background .2s ease, transform .2s ease;
}
.chip:hover { background: var(--pink-deep); transform: translateY(-2px); }
.chip b { font: 400 24px/1 var(--f-display); }
.chip span { font-size: 12px; opacity: .9; }
.chip--full { background: var(--ink-3); color: var(--muted); pointer-events: none; }

.sessions { display: grid; }
.sessions__loading, .sessions__empty { color: var(--muted); padding: 30px 0; }
.session {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto; align-items: center; gap: 28px;
  padding: 22px 0; border-top: 1px solid var(--line-light);
  transition: background .2s ease;
}
.session:last-child { border-bottom: 1px solid var(--line-light); }
.session__date { display: flex; align-items: baseline; gap: 10px; }
.session__day { font: 400 46px/1 var(--f-display); }
.session__dm { display: grid; line-height: 1.2; }
.session__dow { font: 600 11px/1.5 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
.session__mon { font-size: 13px; color: var(--muted); }
.session__name { font: italic 400 30px/1.05 var(--f-serif); }
.session__meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
.spots { font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--cream); }
.spots__bar { display: block; width: 120px; height: 4px; border-radius: 2px; background: rgba(243, 237, 232, .12); margin-top: 8px; overflow: hidden; }
.spots__bar i { display: block; height: 100%; background: var(--pink); }
.spots--low { color: var(--blush); }
.session--off { opacity: .45; }
.session__actions { display: contents; }
.sessions__more { text-align: center; margin-top: 30px; }
.fallback { margin-top: 30px; background: var(--white); border-radius: var(--radius); padding: 10px; color: var(--ink); }

/* ======================================================
   04 Ko vilkt
   ====================================================== */
.kit { background: var(--paper); }
.kit__list { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.kit__list li { padding: 28px 22px 10px 0; }
.kit__list li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.kit__list svg { width: 44px; height: 44px; fill: none; stroke: var(--pink-deep); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.kit__list b { display: block; font-size: 18px; margin-bottom: 6px; }
.kit__list p { color: var(--muted-dark); font-size: 15px; margin: 0; }

/* ======================================================
   05 Studija
   ====================================================== */
.studio { background: var(--plaster); }
.studio .shead::after { background: rgba(26, 24, 27, .2); }
.studio__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.studio__info h2 { margin-bottom: 36px; }
.facts--compact > div { grid-template-columns: 110px 1fr; padding: 13px 0; border-color: rgba(26, 24, 27, .2); }
.facts--compact dd { font-size: 17px; }
.studio__cta { margin-top: 30px; }
.subhead--tight { margin: 48px 0 14px; }
.studio__map { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--paper-2); }
.studio__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

.rentband {
  margin-top: clamp(60px, 8vw, 100px);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 30px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  text-decoration: none;
}
.rentband__label { font: 600 12px/1 var(--f-label); letter-spacing: .3em; text-transform: uppercase; color: var(--pink-deep); }
.rentband__text { font: 400 clamp(24px, 3vw, 40px)/1.1 var(--f-display); text-transform: uppercase; }
.rentband__text em { font-family: var(--f-serif); font-style: italic; text-transform: none; color: var(--pink-deep); }
.rentband__arrow { font-size: 40px; transition: transform .3s var(--ease); }
.rentband:hover .rentband__arrow { transform: translateX(10px); }

/* ======================================================
   06 BUJ
   ====================================================== */
.faq { background: var(--paper); }
.faq__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 110px); }
.faq h2 { font-size: clamp(40px, 5.5vw, 80px); }
.faq__aside { color: var(--muted-dark); margin-top: 26px; }
.faq__aside a { color: var(--pink-deep); font-weight: 700; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative; font-weight: 700; font-size: clamp(17px, 1.6vw, 20px); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 30px/1 var(--f-body); color: var(--pink-deep); transition: transform .25s ease; }
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list details p { color: var(--muted-dark); margin: 0 0 24px; max-width: 580px; }

/* ======================================================
   Footer
   ====================================================== */
.footer { background: var(--ink); color: var(--muted); font-size: 14px; }
.footer__cta {
  background: var(--pink); color: var(--ink);
  padding: clamp(50px, 8vw, 100px) var(--gutter);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.footer__big { margin: 0; font: 400 clamp(64px, 13vw, 210px)/.85 var(--f-display); text-transform: uppercase; }
.footer__big em { color: var(--white); font-size: 1.05em; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 40px; padding-top: 48px; padding-bottom: 110px; }
.footer__logo { width: 120px; height: 120px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer__nav a { color: var(--cream); text-decoration: none; font: 600 13px/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; }
.footer__nav a:hover { color: var(--pink); }
.footer__legal { display: grid; gap: 4px; text-align: right; }
.footer__contacts { display: grid; gap: 6px; }
.footer__contacts a { color: var(--cream); text-decoration: none; font-weight: 600; white-space: nowrap; }
.footer__contacts a:hover { color: var(--pink); }
.footer__contacts span { display: inline-block; min-width: 60px; font: 600 11px/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 961px) { .footer__inner { padding-bottom: 48px; } }

/* ---------- Floating CTA (mobile) ---------- */
.fab {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  display: none; text-align: center; padding: 17px; border-radius: 999px;
  background: var(--pink); color: var(--white); font-weight: 800; text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(238, 61, 126, .8);
  transform: translateY(140%); transition: transform .35s ease;
}
.fab.is-visible { transform: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .klase__grid, .studio__grid, .faq__grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .kit__list { grid-template-columns: 1fr 1fr; }
  .kit__list li, .kit__list li + li { padding: 24px 18px 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .kit__list li:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .fab { display: block; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__legal { text-align: left; }
}
@media (max-width: 760px) {
  .steps3 { grid-template-columns: 1fr; gap: 34px; }
  .steps3__n { font-size: 110px; margin-bottom: 8px; }
  .plans { grid-template-columns: 1fr; }
  .week { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 14px; }
  .day { flex: 0 0 34%; scroll-snap-align: start; min-height: 130px; }
  .session { grid-template-columns: 74px minmax(0, 1fr); gap: 12px 16px; padding: 20px 0; }
  .session__date { flex-direction: column; gap: 2px; }
  .session__day { font-size: 40px; }
  .session__name { font-size: 26px; }
  .session__actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .spots__bar { width: 96px; }
  .flow { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 96px 1fr; }
  .rentband { grid-template-columns: 1fr auto; }
  .rentband__label { grid-column: 1 / -1; }
  .story { height: 200vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .story__text .w { color: var(--cream); }
}
