/* =============================================================
   LIVE PROJECT PAGES
   Lightweight project pages for real, shipped commercial work —
   RIVANT, Wojewódka, Rootel. They share the editorial language
   of the KLYMB and ROPAN case studies (same hero masthead, same
   chapter shell, same project-nav) but stay deliberately short:
   they provide professional context, not a process case study.

   Self-contained by design (mirrors ropan.css / klymb.css, which
   each own their chapter shell) so the three live pages can share
   one file without touching the two case studies. A per-page
   accent token is set through a body modifier class.
   ============================================================= */

.lp {
  --lp-accent: var(--color-accent);         /* eyebrows + the one inline link */
  --lp-stage:  var(--color-surface-soft);   /* the embedded hero container */
  --chapter-gap: clamp(3.25rem, 6vw, 5.5rem);
}

/* Per-project identity — sampled from each brand, quietened so the
   portfolio stays one coherent product rather than three brand skins. */
.lp--rootel {
  --lp-accent: #0A6B34;  /* a deeper, calmer forest than Rootel's #008037 */
  --lp-stage:
    radial-gradient(92% 74% at 50% 0%, rgba(0, 128, 55, 0.10), transparent 62%),
    #ECF2EC;
}

.lp--rivant {
  --lp-accent: #171717;  /* RIVANT's brand black — reads as a label at 12px */
}

.lp--wojewodka {
  --lp-accent: #6E6A48;  /* a legible darkening of Wojewódka's #938F6A olive */
  --lp-stage:
    radial-gradient(92% 74% at 50% 0%, rgba(147, 143, 106, 0.16), transparent 62%),
    #F0EDE3;
}

/* =============================================================
   HERO
   Masthead, then a large container with the hero artwork embedded
   into its bottom edge — grounded, and continuing just past the
   fold, exactly like the KLYMB hero stage.
   ============================================================= */
.lp-hero {
  padding-top: var(--space-6);
}

.lp-hero__masthead {
  max-width: 57ch;
}

.lp-hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--lp-accent);
}

.lp-hero__title {
  font-family: var(--font-serif);
  font-size: var(--text-display);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: var(--space-3);
}

.lp-hero__oneline {
  margin-top: var(--space-5);
  max-width: 46ch;
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

.lp-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-6);
  margin-top: var(--space-6);
}

.lp-hero__meta div dt {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.lp-hero__meta div dd {
  margin-top: 2px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
}

/* the embedded stage — a large tinted container. The artwork sits
   inside and is nudged down so its bottom edge is cropped by the
   container: the container reads as a window the work continues
   behind, not a box that frames it completely. */
.lp-hero__stage {
  position: relative;
  margin-top: var(--space-7);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem) 0;
  background: var(--lp-stage);
}

.lp-hero__shot {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-bottom: none;
  box-shadow: var(--shadow-lg);
  /* push past the stage's bottom edge — a subtle continuation below
     the fold, grounding the work into the page */
  transform: translateY(clamp(14px, 4vw, 40px));
}

.lp-hero__shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- RIVANT: a dark, minimal container holding the logo only --- */
.lp-hero__stage--dark {
  display: grid;
  place-items: center;
  min-height: clamp(300px, 42vh, 460px);
  padding: clamp(2.5rem, 7vw, 4.5rem);
  background:
    radial-gradient(70% 60% at 50% 32%, rgba(255, 255, 255, 0.07), transparent 62%),
    #171717;
}

/* a faint engineering grid, echoing the RIVANT site, kept very quiet */
.lp-hero__stage--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 40%, #000 30%, transparent 78%);
          mask-image: radial-gradient(80% 80% at 50% 40%, #000 30%, transparent 78%);
  pointer-events: none;
}

.lp-hero__logo {
  position: relative;
  width: clamp(120px, 24vw, 220px);
}

.lp-hero__logo svg,
.lp-hero__logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* =============================================================
   CHAPTER SHELL — same rhythm as ROPAN and KLYMB
   ============================================================= */
.chapter {
  padding-block: var(--chapter-gap);
}

.chapter__head {
  max-width: 46ch;
  margin-bottom: var(--space-7);
}

.chapter__index {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--weight-regular);
  line-height: 1;
  color: var(--color-surface);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.chapter__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--lp-accent);
}

.chapter__title {
  font-size: var(--text-2xl);
  margin-top: var(--space-2);
}

.chapter__lead {
  margin-top: var(--space-4);
  max-width: 52ch;
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
}

.chapter--tight {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

/* --- Context body: plain paragraphs, no framing ------------- */
.chapter__body {
  margin-top: var(--space-6);
  max-width: 58ch;
  color: var(--color-text-secondary);
}

.chapter__body p + p {
  margin-top: var(--space-4);
}

/* =============================================================
   CTA — "Visit Live Website". The live site is the primary proof,
   so it appears early, right after the context.
   ============================================================= */
.lp-cta {
  margin-top: var(--space-6);
}

/* =============================================================
   EVIDENCE — a large, uncropped artifact (RIVANT's live site,
   Wojewódka's Figma scope). Minimal framing; it speaks for itself.
   Same treatment as ROPAN's showcase and KLYMB's sheets.
   ============================================================= */
.lp-evidence {
  margin-top: var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.lp-evidence img {
  display: block;
  width: 100%;
  height: auto;
}

.lp-evidence__caption {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border);
}

/* =============================================================
   PULL QUOTE — Wojewódka's client recommendation, typeset as an
   editorial quotation. No card, no avatar, no stars, no LinkedIn
   chrome — just the words, given room.
   ============================================================= */
.lp-quote {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.lp-quote__inner {
  max-width: 58ch;
}

.lp-quote__mark {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 0.7;
  color: var(--lp-accent);
  opacity: 0.5;
}

.lp-quote blockquote {
  margin-top: var(--space-3);
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 0.95rem + 0.9vw, 1.45rem);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  letter-spacing: -0.015em;
  color: var(--color-text);
}

.lp-quote blockquote p + p {
  margin-top: var(--space-3);
}

.lp-quote__cite {
  display: block;
  margin-top: var(--space-5);
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.lp-quote__cite strong {
  color: var(--color-text);
  font-weight: var(--weight-semibold);
}

/* =============================================================
   REFLECTION — Rootel's calm closing note on shifting direction
   ============================================================= */
.reflection {
  padding-bottom: var(--space-6);
}

.reflection__inner {
  max-width: 60ch;
}

.reflection__title {
  margin-top: var(--space-3);
  font-size: var(--text-xl);
}

.reflection__text {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
}

/* =============================================================
   PROJECT NAVIGATION
   ============================================================= */
.project-nav {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-6) var(--space-8);
}

/* Default: both directions present (Rootel, RIVANT). Wojewódka is
   the last project — prev only — and overrides this below. */
.project-nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.lp--wojewodka .project-nav__inner {
  justify-content: flex-start;
}

.project-nav__prev {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.project-nav__prev-label {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.project-nav__prev-name {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  transition: color var(--dur) var(--ease);
}

.project-nav__prev:hover .project-nav__prev-name { color: var(--lp-accent); }

.project-nav__next {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.project-nav__next-label {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.project-nav__next-name {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  transition: color var(--dur) var(--ease);
}

.project-nav__next:hover .project-nav__next-name { color: var(--lp-accent); }
