/* Readability revision 60: keep display headings and artwork at their approved sizes. */
:root {
  --type-caption: clamp(13px, 0.22vw + 12px, 16px);
  --type-small: clamp(14px, 0.22vw + 13px, 17px);
  --type-ui: clamp(15px, 0.18vw + 14px, 18px);
  --type-copy: clamp(16px, 0.22vw + 15px, 20px);
}

/* Shared navigation, small labels and the opening scene. */
header #site-navigation a,
header #site-navigation a.distributor-nav { font-size: var(--type-ui); }
#language-toggle .language-label { font-size: 13px; letter-spacing: 0; }
.header-note { font-size: var(--type-caption); }
.eyebrow, .intro .eyebrow, .hands-heading .eyebrow,
.ritual-heading .eyebrow { font-size: var(--type-caption); line-height: 1.55; letter-spacing: .13em; }
.subtitle { font-size: var(--type-copy); line-height: 1.6; }
.quiet-caption { font-size: var(--type-ui); }
.model-state { font-size: var(--type-caption); }
.body-links .area-icon span { font-size: var(--type-ui); line-height: 1.45; }
.area-icon small { font-size: var(--type-caption); line-height: 1.5; }
.area-nav { font-size: var(--type-ui); }
#hotspots .hotspot span { font-size: var(--type-caption); line-height: 1.45; }

/* Animated chapters and their explanatory text. */
.hands-caption, .immersion-bottom p, .rope-description,
.rope-final-detail .rope-description, .ritual-note p {
  font-size: var(--type-copy); line-height: 1.7;
}
.hands-stage .hands-label, .hands-scroll-cue,
.immersion-top, .rope-masthead p, .rope-count,
.rope-kicker, .rope-panel.is-final .rope-kicker,
.rope-ingredients span, .rope-bottom > p, .ritual-ranges {
  font-size: var(--type-caption); line-height: 1.5;
}
.immersion-top, .rope-masthead p, .rope-kicker,
.rope-panel.is-final .rope-kicker { letter-spacing: .1em; }
.hands-after a, .immersion-bottom a, .rope-discover,
.rope-explore-more, .ritual-note-links a { font-size: var(--type-ui); line-height: 1.5; }
.rope-description { max-width: 380px; }
.rope-final-detail { max-width: 310px; translate: 0 8px; }
.rope-final-detail .rope-description { font-size: var(--type-small); }
.ritual-card figcaption { font-size: var(--type-caption); line-height: 1.55; letter-spacing: .08em; }

/* Collection cards and every product page share these rules. */
.back-link, .product-back, .collection-bar p, #collection-tabs button,
.product-all-link { font-size: var(--type-ui); line-height: 1.6; }
.collection-heading > p:last-child { font-size: var(--type-copy); line-height: 1.75; }
.product-card .range, .product-kicker { font-size: var(--type-caption); line-height: 1.6; }
.product-card h2 { font-size: clamp(16px, .25vw + 15px, 22px); line-height: 1.55; }
.product-card .view-product, .catalog-note,
.product-breadcrumbs, .product-source-note { font-size: var(--type-small); line-height: 1.75; }
.product-info-block > p, .product-disclosure > p { font-size: var(--type-copy); line-height: 1.8; }
.product-suitability h2, .product-precautions h2,
.product-catalogue-note h2 { font-size: var(--type-ui); line-height: 1.5; }
.product-ingredient-list li, .product-disclosure summary { font-size: var(--type-ui); line-height: 1.6; }
.product-info-block .product-small, .product-disclosure .product-small { font-size: var(--type-small); }
.product-related-card { font-size: var(--type-ui); line-height: 1.6; }
.detail-copy p { font-size: var(--type-copy); }
.detail-copy .detail-note { font-size: var(--type-small); }

/* Company story: descriptive copy and image captions. */
.about-page p, .about-values p, .about-milestones p,
.about-standard-list p, .about-contact-details address { font-size: var(--type-copy); }
.about-page .about-kicker { font-size: var(--type-caption); letter-spacing: .13em; }
.about-page .about-image-note, .about-hero-image figcaption,
.about-hero-image figcaption span:first-child, .about-hero-image figcaption > span,
.about-value-number, .about-standard-ref, .about-footer p { font-size: var(--type-small); line-height: 1.65; }
.about-text-link, .about-footer .about-text-link,
.about-care-links a, .about-button { font-size: var(--type-ui); line-height: 1.6; }
.about-process-copy .about-process-focus { font-size: var(--type-copy); }

/* Partnership, contact forms and the direct-email blocks. */
.distributor-invite-copy > p:not(.eyebrow),
.distributor-heading > p:last-child, .distributor-story > p,
.distributor-story li p, .contact-email-card p,
.contact-partnership p, .info-copy { font-size: var(--type-copy); line-height: 1.8; }
.distributor-invite-copy small, .distributor-form small, .distributor-small,
.form-policy-link, .form-security { font-size: var(--type-small); line-height: 1.7; }
.distributor-form label, .distributor-form input, .distributor-form select,
.distributor-form textarea, .distributor-email, .distributor-button,
.contact-partnership > a, #contact-status, #distributor-status,
.info-link { font-size: var(--type-ui); line-height: 1.6; }
.distributor-story li::before { font-size: var(--type-caption); }
.distributor-form input, .distributor-form select { min-height: 52px; }
.distributor-form input, .distributor-form select,
.distributor-form textarea { font-size: max(16px, var(--type-ui)); }

/* Footer, legal pages and consent dialog. */
.viren-footer-brand p, .viren-footer nav, .viren-back-top,
.legal-back, .legal-contents button { font-size: var(--type-ui); line-height: 1.65; }
.viren-footer-bottom p, .site-copyright, .legal-footer-links,
.legal-date, .legal-contents > p, .legal-contents button span,
.legal-body h2 > span { font-size: var(--type-small); line-height: 1.7; }
.legal-body p, .legal-body li, .legal-body address, .legal-intro { font-size: var(--type-copy); line-height: 1.85; }
.legal-body h3 { font-size: 19px; }
.cookie-body { font-size: var(--type-small); line-height: 1.7; }
.cookie-note { font-size: var(--type-caption); line-height: 1.65; }
.cookie-actions button { font-size: var(--type-small); line-height: 1.5; }
.legal-footer-links, .viren-footer nav { overflow-wrap: anywhere; }

@media (min-width: 1181px) {
  header nav { gap: clamp(18px, 1.5vw, 36px); }
}

@media (max-width: 900px) {
  .product-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
}

@media (max-width: 700px) {
  .rope-masthead { align-items: flex-start; }
  .rope-masthead p { max-width: 76%; }
  .rope-count { flex-shrink: 0; white-space: nowrap; }
  .rope-bottom { align-items: flex-end; gap: 12px; }
  .rope-bottom > p { max-width: 48%; letter-spacing: 0; }
  .rope-copy, .rope-panel:nth-of-type(2) .rope-copy { top: 52%; }
  .rope-panel:not(.is-final) .rope-visual { inset: 10% 0 49%; }
  .rope-description, .rope-final-detail .rope-description { line-height: 1.55; }
  .rope-kicker { margin-bottom: 7px; }
  .rope-ingredients span { padding: 5px 9px; }
  .rope-final-detail { left: 7%; right: 7%; max-width: none; }
  .ritual-deck { row-gap: 62px; padding-bottom: 52px; }
  .hands-caption { width: 57%; }
  .hands-scroll-cue { gap: 8px; max-width: 26%; }
  .hands-scroll-cue span { overflow-wrap: anywhere; }
  .legal-contents { grid-template-columns: 1fr; }
  .product-related-card img { height: clamp(145px, 40vw, 220px); }
}

@media (max-width: 700px) and (max-height: 700px) and (orientation: portrait) {
  .rope-panel:not(.is-final) .rope-visual { inset: 12% 0 64%; }
  .rope-copy, .rope-panel:nth-of-type(2) .rope-copy { top: 36%; }
  .rope-description { margin-bottom: 8px; }
  .rope-ingredients { margin-bottom: 4px; }
  .rope-panel.is-final .rope-copy { top: 14%; }
  .rope-panel.is-final .rope-visual { inset: 28% 0 48%; }
  .rope-final-detail { bottom: 16%; }
  .rope-bottom > p { max-width: 60%; }
}

/* Phone reading and touch spacing, with the same content and type scale. */
@media (max-width: 600px) {
  .intro .subtitle { max-width: 32ch; margin-inline: auto; }
  .distributor-form { padding: clamp(18px, 5vw, 24px); }
  .distributor-form label { margin-top: 20px; }
  .distributor-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  .legal-footer-links { gap: 4px 16px; }
  .legal-footer-links a, .legal-footer-links button,
  .legal-contents button, .viren-back-top {
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .product-breadcrumbs { line-height: 1.8; align-items: center; gap: 4px 8px; }
  .product-breadcrumbs a { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (pointer: coarse) {
  .rope-chapters { gap: 0; flex-shrink: 0; }
  .rope-chapters button { width: 44px; min-height: 44px; }
}

@media (max-height: 540px) and (orientation: landscape) {
  .rope-panel:not(.is-final) .rope-visual { inset: 12% 0 13%; mask-image: linear-gradient(90deg, #000 40%, transparent 50%); }
  .rope-panel:nth-of-type(2) .rope-visual { mask-image: linear-gradient(90deg, transparent 50%, #000 60%); }
  .rope-copy, .rope-panel:nth-of-type(2) .rope-copy { left: 52%; right: 4%; top: 48%; text-align: left; transform: translateY(calc(-50% + var(--copy-y))); }
  .rope-panel:nth-of-type(2) .rope-copy { left: 4%; right: 52%; }
  .rope-panel.is-final .rope-copy { left: 6%; right: 6%; top: max(9%, calc(var(--rope-header-room, 48px) - 4px)); text-align: center; transform: translateY(var(--copy-y)); }
  .rope-final-detail { left: 4%; right: auto; top: 28%; bottom: auto; width: 43%; max-width: none; }
  .rope-panel.is-final .rope-visual { left: 34%; right: -10%; }
  .rope-description { line-height: 1.5; }
  .rope-kicker { margin-bottom: 4px; }
  .rope-ingredients { margin-bottom: 4px; }
  .rope-ingredients span { padding: 3px 7px; }
  .rope-bottom > p { max-width: 55%; }
}

/* Smaller supporting captions on phones, including a rotated phone. */
@media (max-width: 700px), (max-width: 1000px) and (max-height: 540px) and (pointer: coarse) {
  .hands-caption {
    width: min(220px, 52%);
    font-size: 14px;
    line-height: 1.55;
    translate: 0 8px;
  }
  .hands-caption .hands-label { font-size: 12px; letter-spacing: 1.4px; }
  .hands-caption p { margin-top: 7px; }
  .immersion-bottom p { font-size: 14px; line-height: 1.65; }
}

@media (max-width: 360px) and (orientation: portrait) {
  .rope-bottom { flex-direction: column; align-items: center; gap: 2px; }
  .rope-bottom > p { max-width: none; text-align: center; }
  .rope-chapters { justify-content: center; }
}
/* Keep copy between the masthead and touch controls on a very short landscape. */
@media (max-height: 340px) and (orientation: landscape) {
  .rope-copy h3, .rope-panel.is-final .rope-copy h3 { font-size: 23px; line-height: 1.12; margin-bottom: 6px; }
  .rope-kicker, .rope-panel.is-final .rope-kicker { font-size: 12px; line-height: 1.4; margin-bottom: 4px; }
  .rope-description { font-size: 14px; line-height: 1.45; margin-bottom: 6px; }
  .rope-ingredients span { font-size: 12px; line-height: 1.4; padding: 3px 6px; }
  .rope-ingredients { margin-bottom: 4px; }
  .rope-discover { font-size: 14px; min-height: 44px; padding-block: 4px; }
  .rope-panel.is-final .rope-copy { top: 13%; }
  .rope-final-detail { top: 26%; padding: 4px; }
  .rope-final-detail .rope-description { font-size: 14px; line-height: 1.4; margin-bottom: 6px; }
  .rope-copy, .rope-panel:nth-of-type(2) .rope-copy { top: 47%; }
}

/* Portrait scenes flow around a full, proportional image instead of a short crop box. */
@media (max-width: 900px) and (orientation: portrait) {
  .rope-stage { height: min(100svh, calc(90vw + 400px)); min-height: 0; }
  .rope-panel {
    inset: var(--rope-header-room, 80px) 0 var(--rope-footer-room, 96px);
    display: grid; grid-template-rows: minmax(0, 1fr) auto;
    gap: clamp(10px, 1.5svh, 16px);
  }
  .rope-panel:not(.is-final) .rope-visual,
  .rope-panel:nth-of-type(2) .rope-visual {
    position: relative; inset: auto; grid-row: 1; align-self: end;
    width: 100%; height: 100%; max-height: min(90vw, 520px); min-height: 0;
    -webkit-mask-image: none; mask-image: none;
  }
  .rope-panel:not(.is-final) .rope-visual img,
  .rope-panel:nth-of-type(2) .rope-visual img {
    left: 50%; width: 180%; height: 100%; object-fit: contain;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 3%, #000 98%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 3%, #000 98%, transparent);
  }
  .rope-copy, .rope-panel:nth-of-type(2) .rope-copy,
  .rope-panel.is-final .rope-copy {
    position: relative; grid-row: 2; top: auto; left: auto; right: auto;
    width: 88%; max-width: 680px; justify-self: center; text-align: center;
    transform: translateY(var(--copy-y));
  }
  .rope-copy h3 { font-size: clamp(27px, 7.8vw, 43px); margin-bottom: 10px; }
  .rope-description { max-width: min(520px, 100%); margin-inline: auto; }
  .rope-ingredients { justify-content: center; }
  .rope-panel.is-final { grid-template-rows: auto minmax(0, 1fr) auto; }
  .rope-panel.is-final .rope-copy { grid-row: 1; }
  .rope-panel.is-final .rope-visual {
    position: relative; inset: auto; grid-row: 2; align-self: center;
    width: 100%; height: 100%; max-height: min(74vw, 430px); min-height: 0;
  }
  .rope-final-detail {
    position: relative; grid-row: 3; left: auto; right: auto; top: auto; bottom: auto;
    width: 86%; max-width: 580px; justify-self: center; text-align: center; translate: none;
  }
  .rope-final-detail .rope-description { max-width: min(520px, 100%); }
  .rope-final-left, .rope-final-right { display: none; }
  .rope-final-piece.rope-final-middle { width: 100%; aspect-ratio: auto; flex: 1; overflow: visible; }
  .rope-panel.is-final .rope-final-middle img { width: auto; height: 100%; left: 50%; transform: translateX(-50%); object-fit: contain; }
}

/* The same proportional scenes remain readable when scroll animation is disabled. */
@media (prefers-reduced-motion: reduce) and (max-width: 900px) and (orientation: portrait) {
  .rope-stage { height: auto; }
  .rope-masthead { position: relative; inset: auto; margin: 28px 6% 16px; }
  .rope-panel { inset: auto; height: auto; min-height: 0; padding: 20px 0 40px; gap: 16px; }
  .rope-panel:not(.is-final) .rope-visual,
  .rope-panel:nth-of-type(2) .rope-visual { height: min(90vw, 520px); }
  .rope-panel.is-final .rope-visual { height: min(74vw, 430px); }
}
