/* ============================================================
   WELLNESS EXPRESS — page-specific styles, loaded after
   case-study.css. Uses its tokens only (no new colours/fonts).
   Poppins comes from --font-body / --font-meta.
   ============================================================ */

/* ---------- Rhythm: one section spacing, no divider rules ---------- */
.we-section{ padding: 80px 0; border-bottom: none; }
@media (max-width: 780px){ .we-section{ padding: 56px 0; } }

.we-head .cs-statement{ max-width: 22ch; margin-top: 12px; }
.we-lede{ margin-top: 18px; font-size: clamp(1rem, 1.4vw, 1.1rem); line-height: 1.65; color: var(--muted); max-width: 60ch; }
.dark .we-lede{ color: var(--dark-muted); }

/* ---------- 01 Hero: typography-led intro + portrait kiosk visual ---------- */
.we-hero{ padding: 32px 0 56px; }
.we-hero__back{ margin-bottom: 28px; }
.we-hero__grid{
  display: grid; grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  grid-template-areas: "intro media" "meta media"; grid-template-rows: 1fr 1fr;
  column-gap: clamp(32px, 5vw, 80px); align-items: center;
}
.we-hero__intro{ grid-area: intro; align-self: end; }
.we-hero__meta{ grid-area: meta; align-self: start; }
.we-hero__media{ grid-area: media; margin: 0; width: min(100%, 540px); justify-self: center; }

.we-hero__title{ margin-top: 14px; font-size: clamp(2.1rem, 4.2vw, 3.5rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.we-hero__headline{ text-wrap: balance; margin-top: 18px; font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; max-width: 26ch; }
.we-hero__desc{ margin-top: 16px; font-size: 1rem; line-height: 1.65; color: var(--muted); max-width: 46ch; }

.we-hero__facts{ margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; max-width: 460px; padding-top: 20px; border-top: 1px solid var(--border); }
.we-hero__facts dt{ font-family: var(--font-meta); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.we-hero__facts dd{ margin: 0; font-size: 0.9rem; font-weight: 500; line-height: 1.4; }
.we-hero__facts-wide{ grid-column: 1 / -1; }
.we-hero__disclaimer{ margin-top: 20px; font-size: 0.78rem; line-height: 1.5; color: var(--muted); max-width: 46ch; }

/* Portrait frame: whole kiosk, never cropped or stretched, no backing shape */
.we-hero__frame{ aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; }
.we-hero__frame img{ display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 30px rgba(16,16,16,.10); }
.we-hero__media figcaption{ margin-top: 12px; font-family: var(--font-meta); font-size: 0.76rem; color: var(--muted); text-align: center; }

/* Tablet: tighten the image a little, keep two columns */
@media (max-width: 960px) and (min-width: 721px){
  .we-hero__grid{ grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr); column-gap: 32px; }
  .we-hero__media{ width: min(100%, 400px); }
}
/* Mobile: intro, then image, then facts */
@media (max-width: 720px){
  .we-hero{ padding: 24px 0 40px; }
  .we-hero__grid{ grid-template-columns: 1fr; grid-template-areas: "intro" "media" "meta"; grid-template-rows: none; row-gap: 28px; align-items: start; }
  .we-hero__intro, .we-hero__meta{ align-self: auto; }
  .we-hero__media{ width: min(100%, 340px); justify-self: center; }
  .we-hero__facts{ margin-top: 0; }
}

/* ---------- Evidence labels + notes ---------- */
.cs-kind{ display: inline-block; font-family: var(--font-meta); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 2px 9px; white-space: nowrap; vertical-align: middle; }
.cs-kind--proposed{ border-style: dashed; }
.cs-kind--assumption{ border-color: var(--muted); color: var(--muted); border-style: dashed; }
.cs-note{ margin-top: 24px; padding: 4px 0 4px 18px; border-left: 2px solid var(--accent); font-size: 0.9rem; line-height: 1.6; color: var(--muted); max-width: 74ch; }
.cs-note strong{ color: var(--ink); font-weight: 600; }

/* ---------- Image slots (non-diagram): brand, concept, UI ----------
   --ratio sets the empty placeholder's shape. Once a real image loads,
   the frame takes the image's own proportions (nothing is cropped). */
.we-slot{ margin: 0; }
.we-slot__frame{ aspect-ratio: var(--ratio, 16 / 9); background: rgba(16,16,16,.04); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.we-slot__frame.has-image{ aspect-ratio: auto; background: none; border: none; }
.we-slot__frame img{ display: block; width: 100%; height: auto; border-radius: 4px; }
.we-slot figcaption{ margin-top: 10px; font-size: 0.84rem; line-height: 1.5; color: var(--muted); }
.we-slot figcaption strong{ display: block; color: var(--ink); font-weight: 600; font-size: 0.92rem; margin-bottom: 2px; }
.we-ph{ height: 100%; min-height: 80px; padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.we-ph[hidden]{ display: none; }
.we-ph__label{ font-family: var(--font-meta); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); max-width: 30ch; }
.we-ph__meta{ font-family: var(--font-meta); font-size: 0.68rem; color: var(--muted); }
.dark .we-slot__frame{ background: rgba(255,255,255,.06); border-color: var(--dark-border); }
.dark .we-ph__label{ color: var(--dark-ink); }
.dark .we-ph__meta, .dark .we-slot figcaption{ color: var(--dark-muted); }
.dark .we-slot figcaption strong{ color: var(--dark-ink); }

/* ---------- 02 Brand exploration: staggered trio ---------- */
.we-brand{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 48px; }
.we-brand > :nth-child(2){ margin-top: 56px; }
.we-brand > :nth-child(3){ margin-top: 24px; }

/* Shared mobile pattern: a swipeable row instead of a long stack */
@media (max-width: 780px){
  .we-brand, .we-ui{
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 76%;
    gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; padding-bottom: 8px;
  }
  .we-brand > *, .we-ui > *{ scroll-snap-align: start; margin-top: 0 !important; }
}
@media (max-width: 640px){ .we-brand, .we-ui{ margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; } }
@media (max-width: 480px){ .we-brand, .we-ui{ grid-auto-columns: 82%; } }

/* ---------- 03 Opportunity ---------- */
.we-challenge{ margin-top: 56px; max-width: 30ch; font-size: clamp(1.35rem, 2.8vw, 2rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.we-challenge__label{ display: block; margin-bottom: 14px; font-family: var(--font-meta); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.we-challenge__label::before{ content: ""; display: inline-block; width: 24px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 10px; }

/* ---------- 04 Concept (dark, image-led) ---------- */
.we-concept{ display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 48px; }
.we-concept > :nth-child(2){ margin-top: 64px; }
.we-concept .we-slot__frame img{ border-radius: 4px; }
@media (max-width: 780px){
  .we-concept{ grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
  .we-concept > :nth-child(2){ margin-top: 0; width: 84%; margin-left: auto; }
}

/* ---------- 05 / 06 sub-blocks ---------- */
.we-block{ margin-top: 72px; }
.we-head + .we-block{ margin-top: 48px; }
.we-block h3{ font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.we-block .we-lede{ margin-top: 10px; }
.we-block > .we-lede + .cs-artifact{ margin-top: 24px; }
@media (max-width: 780px){ .we-block{ margin-top: 52px; } }

.we-rail{ display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 16px; counter-reset: stage; font-family: var(--font-meta); font-size: 0.8rem; font-weight: 500; }
.we-rail li{ counter-increment: stage; }
.we-rail li::before{ content: counter(stage, decimal-leading-zero); color: var(--muted); margin-right: 8px; font-weight: 600; }

/* ---------- 06 UI sequence ---------- */
.we-ui{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 48px; align-items: start; }
.we-ui .we-slot figcaption{ margin-top: 14px; }
.we-ui__n{ font-family: var(--font-meta); font-size: 0.72rem; font-weight: 600; color: var(--muted); display: block; margin-bottom: 4px; }
@media (min-width: 781px) and (max-width: 1000px){ .we-ui{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; } }

/* Recovery paths */
.we-recovery{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--ink); }
.we-recovery li{ padding: 16px 20px 0; border-left: 1px solid var(--border); }
.we-recovery li:first-child{ border-left: none; padding-left: 0; }
.we-recovery h4{ font-size: 0.95rem; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.we-recovery p{ font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 1000px){
  .we-recovery{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .we-recovery li:nth-child(2n+1){ border-left: none; padding-left: 0; }
  .we-recovery li:nth-child(n+3){ margin-top: 16px; border-top: 1px solid var(--border); padding-top: 16px; }
}
@media (max-width: 520px){
  .we-recovery{ grid-template-columns: 1fr; }
  .we-recovery li{ border-left: none; padding-left: 0; }
  .we-recovery li:not(:first-child){ margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
}

/* ---------- 07 Reflection ---------- */
.we-three{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--ink); }
.we-three > div{ padding: 20px 28px 0 0; }
.we-three > div + div{ padding-left: 28px; border-left: 1px solid var(--border); }
.we-three h3{ font-family: var(--font-meta); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.we-three p{ font-size: 0.95rem; line-height: 1.55; font-weight: 500; }
.we-three li{ font-size: 0.9rem; line-height: 1.5; padding: 8px 0; border-top: 1px dashed var(--border); }
.we-three li:first-child{ border-top: none; padding-top: 0; }
@media (max-width: 860px){
  .we-three{ grid-template-columns: 1fr; }
  .we-three > div, .we-three > div + div{ padding: 20px 0 0; border-left: none; }
  .we-three > div + div{ margin-top: 20px; border-top: 1px solid var(--border); }
}

/* ------------------------------------------------------------
   ARTIFACT FIGURE: one container for every service-design diagram.
   --ratio : shape of the empty placeholder (width / height)
   --min-w : narrowest a LOADED diagram may get before it scrolls
             sideways, so its text never shrinks past legibility.
   ------------------------------------------------------------ */
.cs-artifact{ margin: 32px 0 0; }
.cs-artifact__head{ display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; margin-bottom: 12px; }
.cs-artifact__kicker{ font-family: var(--font-meta); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.cs-artifact__kicker::before{ content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; }
.cs-artifact__name{ font-size: 1rem; font-weight: 600; letter-spacing: -0.005em; }
.cs-artifact__scroll{ overflow-x: auto; border: 1px solid var(--border); border-radius: 4px; background: rgba(16,16,16,.03); -webkit-overflow-scrolling: touch; }
.cs-artifact__canvas{ aspect-ratio: var(--ratio, 2.2 / 1); max-height: 340px; }
.cs-artifact__canvas.has-image{ aspect-ratio: auto; max-height: none; min-width: var(--min-w, 720px); background: #fff; }
.cs-artifact__canvas img{ display: block; width: 100%; height: auto; }
.cs-artifact__scroll:focus-visible, .we-ui:focus-visible, .we-brand:focus-visible{ outline: 3px solid var(--accent); outline-offset: 3px; }
.cs-artifact__tools{ display: flex; flex-wrap: wrap; gap: 2px 20px; margin-top: 8px; font-family: var(--font-meta); font-size: 0.74rem; color: var(--muted); }
.cs-artifact__hint{ display: none; }
.cs-artifact.is-scrollable .cs-artifact__hint{ display: inline; }
.cs-artifact__open{ display: none; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cs-artifact.is-loaded .cs-artifact__open{ display: inline; }
.cs-artifact__caption{ margin-top: 14px; max-width: 66ch; }
.cs-artifact__takeaway{ font-size: 0.96rem; line-height: 1.6; font-weight: 500; }
@media (max-width: 780px){ .cs-artifact__canvas{ max-height: 180px; } }

/* Mobile swipe row for the UI sequence (placed last so it overrides the 4-up grid above) */
@media (max-width: 780px){
  .we-ui{ grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 76%; gap: 16px; margin-top: 36px; }
}
@media (max-width: 480px){ .we-ui{ grid-auto-columns: 82%; } }

/* Loaded kiosk screens are white on an off-white page: give them a hairline edge */
.we-ui .we-slot__frame.has-image{ border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.we-ui .we-slot__frame.has-image img{ border-radius: 0; }

/* Concept pair: columns sized to the two images' ratios (4:3 and 4:5) so both
   share the same top edge, the same height and the same caption baseline. */
.we-concept{ grid-template-columns: minmax(0, 5fr) minmax(0, 3fr); gap: 32px; align-items: start; }
.we-concept > :nth-child(2){ margin-top: 0; }
@media (max-width: 780px){
  .we-concept{ grid-template-columns: 1fr; gap: 28px; }
  .we-concept > :nth-child(2){ width: 100%; margin-left: 0; }
}

/* ---------- 02 Brand: wide website shot + service slot stacked beside one tall store photo ---------- */
.we-brand .we-slot__frame.has-image{ border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.we-brand .we-slot__frame.has-image img{ border-radius: 0; }
@media (min-width: 781px){
  .we-brand{ grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: "d p" "s p"; gap: 32px; align-items: start; }
  .we-brand > :nth-child(n){ margin-top: 0; }
  .we-brand__d{ grid-area: d; }
  .we-brand__p{ grid-area: p; }
  .we-brand__s{ grid-area: s; }
}

/* Brand section now holds two images: website (wide) and store (tall), centred against each other */
@media (min-width: 781px){
  .we-brand{ grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: "d p"; align-items: center; }
}

/* Stage rail: numbers come from the counter, so hide the list's native markers */
.we-rail{ list-style: none; padding-left: 0; }
.we-rail li{ list-style: none; }

/* ---------- 07 Key learning: one large pull statement ---------- */
.we-learning{ margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px 48px; align-items: start; }
.we-learning__label{ font-family: var(--font-meta); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 0.6em; }
.we-learning__label::before{ content: ""; display: inline-block; width: 24px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 10px; }
.we-learning__text{ font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; max-width: 26ch; }
@media (max-width: 780px){ .we-learning{ grid-template-columns: 1fr; margin-top: 40px; } .we-learning__label{ padding-top: 0; } }

/* ---------- Wellness Forever services: three organised groups (context, kept compact) ---------- */
.we-section--compact{ padding: 56px 0; }
.we-services{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 36px; }
.we-services__group{ border-top: 1px solid var(--ink); padding-top: 18px; }
.we-services__group h3{ display: flex; align-items: baseline; gap: 12px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.005em; margin-bottom: 8px; }
.we-services__group h3 span{ font-family: var(--font-meta); font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.we-services__group li{ font-size: 0.92rem; line-height: 1.45; padding: 9px 0; border-top: 1px dashed var(--border); }
.we-services__group li:first-child{ border-top: none; }
.we-services__note{ margin-top: 24px; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 1000px){
  .we-services{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
  .we-services__group:nth-child(3){ grid-column: 1 / -1; }
  .we-services__group:nth-child(3) ul{ columns: 2; column-gap: 40px; }
  .we-services__group:nth-child(3) li{ break-inside: avoid; }
  .we-services__group:nth-child(3) li:nth-child(5){ border-top: none; }
}
@media (max-width: 640px){
  .we-services{ grid-template-columns: 1fr; gap: 28px; }
  .we-services__group:nth-child(3) ul{ columns: 1; }
  .we-services__group:nth-child(3) li:nth-child(5){ border-top: 1px dashed var(--border); }
}

/* ============================================================
   MOBILE / TABLET FIT: every image fits the screen width.
   (Replaces the earlier sideways-scroll treatment.) Loaded diagrams
   scale to the viewport and open full size on tap; the swipe rows
   become a stacked image and a 2-up screen grid.
   ============================================================ */
@media (max-width: 1000px){
  .cs-artifact__canvas.has-image{ min-width: 0; }
  .cs-artifact__scroll{ overflow-x: hidden; }
  .cs-artifact.is-loaded .cs-artifact__hint{ display: inline; }
  .cs-artifact__canvas a{ display: block; }
}
.cs-artifact__canvas a{ cursor: zoom-in; }

@media (max-width: 780px){
  .we-brand, .we-ui{
    display: grid; grid-auto-flow: row; grid-auto-columns: auto;
    overflow: visible; scroll-snap-type: none;
    margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; padding-bottom: 0;
  }
  .we-brand{ grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .we-brand__p{ width: min(100%, 360px); }
  .we-ui{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; margin-top: 32px; }
  .we-ui .we-slot figcaption{ font-size: 0.78rem; line-height: 1.45; }
  .we-ui .we-slot figcaption strong{ font-size: 0.84rem; }
}
