/* Shared header, progress line and footer (Nov 2026). Extracted from profile-2026-11.css for the non-profile pages. */
/* ---- jump-to-section button: bottom right ---- */
details.section-navigation { top: auto !important; bottom: 22px !important; right: 18px !important; transform: none !important; }
details.section-navigation nav { top: auto !important; bottom: calc(100% + 12px) !important; right: 0 !important; }
/* ---- footer: wordmark heavier, resting on the bottom edge ---- */
/* jump button hides while the footer is on screen */
details.section-navigation { transition: opacity .3s; }
/* phones: reading progress bar replaces the floating jump button */
@media (max-width: 760px) {
  details.section-navigation > summary { display: none !important; }
  details.section-navigation { position: static !important; }
  header.ff-header { display: grid !important; grid-template-columns: 44px minmax(0, 1fr) auto !important; align-items: center !important; gap: 10px !important; padding: 0 14px !important; }
  header.ff-header .ff-mark { display: flex !important; align-items: center; width: 34px; height: 34px; font-size: 0 !important; }
  header.ff-header .ff-mark img { width: 34px; height: 34px; border-radius: 9px; display: block; }
  #ff-chapter { font: 500 11px/1 "DM Mono", monospace; letter-spacing: .16em; text-transform: uppercase; color: #dba98b; white-space: nowrap; }
  header.ff-header .liquid-site-mobile > summary { font-size: 11px !important; letter-spacing: .12em !important; gap: 6px !important; }
  #ff-progress { position: fixed; left: 0; right: 0; height: 20px; z-index: 95; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  #ff-progress i { top: 9px !important; }
  #ff-progress::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: #f0e1ce14; }
  #ff-progress i { position: absolute; left: 0; height: 2px; width: calc(var(--ff-read, 0) * 100%); background: linear-gradient(90deg, #c77855, #dba98b); box-shadow: 0 0 10px #dba98b66; transition: width .12s linear; }
  details.section-navigation[open] > nav { position: fixed !important; left: 14px !important; right: 14px !important; top: 92px !important; bottom: auto !important; width: auto !important; max-height: calc(100svh - 110px); overflow: auto; z-index: 96 !important; }
}
/* decorative wave strokes from Living Expressions were catching taps meant for the footer */
.expressions-waves, .expressions-waves * { pointer-events: none !important; }
footer.site-footer a { position: relative; z-index: 5; }
/* footer layout (all sizes): navigation top-left, actions top-right, copyright faint above the wordmark */
footer.site-footer .site-footer__top { display: grid !important; align-items: start !important; }
footer.site-footer .site-footer__actions { grid-column: 2 !important; grid-row: 1 !important; text-align: right !important; }
footer.site-footer .site-footer__copyright { display: flex !important; gap: .6em !important; flex-wrap: wrap !important; margin: 40px 0 -4px !important; padding: 0 24px !important; font-size: 9px !important; letter-spacing: .12em !important; opacity: .32 !important; }
footer.site-footer .site-footer__wordmark { margin-top: 6px !important; }
@media (max-width: 760px) {
  footer.site-footer .site-footer__top { grid-template-columns: 1fr !important; gap: 22px !important; }
  footer.site-footer .site-footer__links { grid-column: 1 !important; grid-row: 1 !important; gap: 0 36px !important; }
  footer.site-footer .site-footer__actions { grid-column: 1 !important; grid-row: 2 !important; text-align: left !important; display: flex !important; gap: 24px !important; flex-wrap: wrap !important; }
}
@media (max-width: 760px) {
  footer.site-footer { background: #111 !important; overflow: hidden; isolation: isolate; }
  footer.site-footer .footer-liquid-sheen { position: absolute; inset: 0; z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%); mask-image: linear-gradient(to bottom, transparent, #000 22%); }
  footer.site-footer .footer-liquid-sheen canvas { display: block; width: 100%; height: 100%; }
  footer.site-footer > *:not(.footer-liquid-sheen) { position: relative; z-index: 1; }
}
/* footer rows: Back to the top centred on top, two even link columns, Retake the quiz centred below */
footer.site-footer .site-footer__top { grid-template-columns: 1fr !important; gap: 26px !important; justify-items: center !important; }
footer.site-footer .ff-foot-row { grid-column: 1 !important; }
footer.site-footer .ff-foot-top { grid-row: 1 !important; }
footer.site-footer .site-footer__links { grid-column: 1 !important; grid-row: 2 !important; width: 100% !important; display: grid !important; grid-template-columns: auto auto !important; justify-content: space-evenly !important; justify-items: start !important; gap: 0 24px !important; padding: 0 !important; box-sizing: border-box; }
footer.site-footer .site-footer__links a { white-space: nowrap; }
footer.site-footer .ff-foot-row { display: block !important; grid-row: auto; text-align: center !important; }
footer.site-footer .site-footer__actions.ff-foot-row { grid-column: 1 !important; }
footer.site-footer .site-footer__links .site-footer__column { justify-self: start; }
footer.site-footer .ff-foot-bottom { grid-row: 3 !important; }
footer.site-footer .site-footer__actions.ff-foot-row { width: 100% !important; display: flex !important; justify-content: center !important; text-align: center !important; }
footer.site-footer .site-footer__actions.ff-foot-row a { margin: 0 auto !important; }
footer.site-footer .site-footer__copyright { justify-content: center !important; text-align: center !important; }
/* phones: the footer is pinned under the page and revealed as Living Expressions lifts away (same as desktop) */
@media (max-width: 760px) {
  footer.site-footer, .profile-footer { position: sticky !important; bottom: 0 !important; z-index: 0 !important; }
  main { position: relative; z-index: 1; }
  #expressions { position: relative; z-index: 2; background: #111; }
}
@media (max-width: 760px) {
  footer.site-footer .ff-wm-row { display: flex !important; align-items: baseline !important; gap: 12px !important; padding: 0 0 0 2px !important; margin: 34px 0 -4px !important; position: relative; z-index: 2; }
  footer.site-footer .ff-wm-the { font: 400 6.1vw/0.9 Inter, sans-serif !important; letter-spacing: -.02em !important; color: #f0e1ce !important; }
  footer.site-footer .ff-wm-row .site-footer__copyright { display: flex !important; gap: .5em !important; margin: 0 !important; padding: 0 !important; text-align: left !important; font-size: 8px !important; line-height: 1 !important; letter-spacing: .1em !important; opacity: .4 !important; white-space: nowrap !important; }
  footer.site-footer .ff-wm-row .site-footer__copyright span { display: inline !important; white-space: nowrap !important; }
  footer.site-footer .site-footer__wordmark svg text { font-size: 118px !important; }
}
@media (max-width: 760px) {
  /* copyright tucked under the wordmark, ending just left of the Y's tail */
  footer.site-footer .ff-wm-copy { display: flex !important; gap: .5em !important; min-height: 0 !important; white-space: nowrap !important; position: relative; z-index: 2; }
  footer.site-footer .ff-wm-copy span { display: inline !important; }
  footer.site-footer .site-footer__wordmark svg { display: block; }
}
@media (max-width: 760px) {
  footer.site-footer .site-footer__wordmark { line-height: 0 !important; height: auto !important; }
  footer.site-footer .site-footer__wordmark svg { width: 100% !important; height: auto !important; aspect-ratio: 1000 / 118; }
  footer.site-footer { min-height: 0 !important; }
}
@media (max-width: 760px) {
  /* footer bottom: "Medicine You Carry" then the copyright flush to the bottom edge, both starting under the M */
  footer.site-footer .site-footer__wordmark { margin-top: 34px !important; }
  footer.site-footer { padding-bottom: 0 !important; }
}
/* desktop footer: three even columns, larger links, liquid sheen behind */
@media (min-width: 761px) {
  footer.site-footer { position: sticky !important; bottom: 0; background: #111 !important; overflow: hidden; isolation: isolate; }
  footer.site-footer .footer-liquid-sheen { position: absolute; inset: 0; z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%); mask-image: linear-gradient(to bottom, transparent, #000 22%); }
  footer.site-footer .footer-liquid-sheen canvas { display: block; width: 100%; height: 100%; }
  footer.site-footer > *:not(.footer-liquid-sheen) { position: relative; z-index: 1; }
  footer.site-footer .site-footer__top { display: grid !important; grid-template-columns: 1fr !important; justify-items: stretch !important; padding: 0 clamp(24px, 6vw, 120px) !important; }
  footer.site-footer .site-footer__links { grid-row: 1 !important; width: 100% !important; grid-template-columns: 1fr 1fr 1fr !important; justify-content: stretch !important; justify-items: start !important; gap: 0 !important; }
  footer.site-footer .site-footer__actions.ff-foot-col { display: flex !important; flex-direction: column; gap: 0; align-items: flex-start; grid-column: 3 !important; grid-row: 1 !important; text-align: left !important; order: 3; }
  footer.site-footer .site-footer__links .site-footer__column:nth-of-type(1) { grid-column: 1 !important; }
  footer.site-footer .site-footer__links .site-footer__column:nth-of-type(2) { grid-column: 2 !important; justify-self: center !important; }
  footer.site-footer .site-footer__actions.ff-foot-col { justify-self: end !important; }
  footer.site-footer .site-footer__links a, footer.site-footer .site-footer__actions a { font-size: 15px !important; letter-spacing: .16em !important; }
  footer.site-footer .site-footer__wordmark { position: relative !important; display: block !important; }
  footer.site-footer .site-footer__wordmark .ff-wm-copy-desktop { font-size: 13px; letter-spacing: .14em; margin: 0 !important; padding: 0 !important; position: absolute !important; left: .5%; right: auto !important; top: 16.4% !important; transform: translateY(calc(-100% - 8px)); justify-content: flex-start !important; width: auto !important; opacity: .4 !important; white-space: nowrap; }
  footer.site-footer { padding-top: 96px !important; }
  footer.site-footer .site-footer__wordmark { margin-top: 200px !important; }
}
@media (min-width: 761px) {
  footer.site-footer .site-footer__wordmark svg { overflow: visible; }
}
/* desktop header: same as phones. Mark left, chapter label centre, Explore pill right, progress line beneath. */
@media (min-width: 761px) {
  header.ff-header { display: grid !important; grid-template-columns: 48px minmax(0, 1fr) auto !important; align-items: center !important; gap: 16px !important; padding: 0 clamp(16px, 2vw, 32px) !important; }
  header.ff-header .liquid-site-links, header.ff-header .liquid-site-quiz { display: none !important; }
  header.ff-header .liquid-site-mobile { display: block !important; }
  header.ff-header .ff-mark { display: flex !important; align-items: center; width: 38px; height: 38px; font-size: 0 !important; }
  header.ff-header .ff-mark img { width: 38px; height: 38px; border-radius: 10px; display: block; }
  #ff-chapter { justify-self: center; text-align: center; font: 500 12px/1 "DM Mono", monospace; letter-spacing: .18em; text-transform: uppercase; color: #dba98b; white-space: nowrap; }
  header.ff-header .liquid-site-mobile > summary { padding: 10px 16px !important; font-size: 12px !important; letter-spacing: .14em !important; }
  #ff-progress { position: fixed; left: 0; right: 0; height: 20px; z-index: 95; cursor: pointer; }
  #ff-progress::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: #f0e1ce14; }
  #ff-progress i { position: absolute; left: 0; top: 9px; height: 2px; width: calc(var(--ff-read, 0) * 100%); background: linear-gradient(90deg, #c77855, #dba98b); box-shadow: 0 0 10px #dba98b66; transition: width .12s linear; }
  details.section-navigation > summary { display: none !important; }
  details.section-navigation { position: static !important; }
  details.section-navigation[open] > nav { position: fixed !important; left: 50% !important; transform: translateX(-50%); right: auto !important; top: 92px !important; bottom: auto !important; width: min(420px, 90vw) !important; z-index: 96 !important; }
  /* the first three chapter titles scroll with the page instead of pinning */
  html[data-reading-scene="centered"] .definition-label, :is(#turning,#shadow) .chapter-title, #gift .definition-label { position: relative !important; top: auto !important; height: auto !important; opacity: 1 !important; transform: none !important; width: 100% !important; margin: 0 auto !important; padding: 0 0 40px !important; background: none !important; }
  #turning > .chapter-title { position: relative !important; }
  html[data-reading-scene="centered"] #gift .definition-copy, html[data-reading-scene="centered"] #turning .definition-copy, html[data-reading-scene="centered"] #shadow .definition-copy { -webkit-mask-image: none !important; mask-image: none !important; padding-top: 0 !important; }
  #gift:not(.ff-wave) .definition-label h2 { opacity: 1; transform: none; }
}
@media (min-width: 761px) {
  /* header a little taller, chapter label a little bigger */
  header.liquid-site-header.ff-header { height: 76px !important; }
  #ff-chapter { font-size: 14px !important; }
  #ff-progress { top: 66px !important; }
  body { --ff-header-h: 76px; }
}
/* ---- footer: wordmark heavier, resting on the bottom edge ---- */
footer.site-footer { padding-bottom: 0 !important; min-height: 0 !important; }
.site-footer .site-footer__wordmark { margin: 56px 0 0 !important; line-height: 0 !important; }
.site-footer .site-footer__wordmark svg { display: block !important; margin: 0 !important; }
.site-footer .site-footer__wordmark text { font: 700 100px Inter, sans-serif !important; letter-spacing: -.045em !important; }
/* jump button hides while the footer is on screen */
details.section-navigation.ff-hide { opacity: 0 !important; pointer-events: none !important; transition: opacity .3s; }

@media (min-width: 761px) { footer.site-footer .site-footer__actions.ff-foot-col a { padding: 8px 0 !important; margin: 0 !important; line-height: 1 !important; } footer.site-footer .site-footer__links .site-footer__column a { display: block; padding: 8px 0 !important; line-height: 1 !important; } }

/* Phones: two-row header. Mark + Explore on the first row, chapter name centred beneath, progress line under both (2026-11-17) */
@media (max-width: 760px) {
  header.liquid-site-header.ff-header { height: 88px !important; grid-template-columns: 44px minmax(0, 1fr) auto !important; grid-template-rows: 54px 0px !important; align-content: center !important; align-items: center !important; row-gap: 0 !important; transition: grid-template-rows .6s cubic-bezier(.33,.6,.25,1) !important; }
  header.liquid-site-header.ff-header.ff-has-chapter { grid-template-rows: 54px 34px !important; }
  #ff-chapter { opacity: 0; transition: opacity .4s ease; }
  header.ff-header.ff-has-chapter #ff-chapter { opacity: 1; }
  header.ff-header .liquid-site-mobile > summary { height: 34px !important; min-height: 0 !important; padding: 0 12px !important; box-sizing: border-box !important; display: inline-flex !important; align-items: center !important; }
  header.ff-header .ff-mark { grid-row: 1; grid-column: 1; }
  header.ff-header .liquid-site-mobile { grid-row: 1; grid-column: 3; }
  #ff-chapter { grid-row: 2; grid-column: 1 / -1; justify-self: stretch !important; width: 100% !important; text-align: center !important; align-self: start !important; padding-top: 8px !important; padding-bottom: 0 !important; max-width: 100% !important; overflow: hidden !important; text-overflow: clip !important; font-size: 11px !important; line-height: 1 !important; }
  header.liquid-site-header.ff-header { background: linear-gradient(180deg, #121110d4, #121110b4) !important; }
  #ff-progress { top: 79px !important; }
  body { --ff-header-h: 88px; }
}

/* Phones: copyright centred above the wordmark, 9px (2026-11-17) */
@media (max-width: 760px) {
  footer.site-footer .ff-wm-copy + .site-footer__wordmark { margin-top: 14px !important; }
  footer.site-footer .ff-wm-copy { justify-content: center !important; text-align: center !important; margin: 34px 0 0 !important; padding: 0 !important; font-size: 9px !important; letter-spacing: .14em !important; opacity: .45 !important; }
  footer.site-footer .ff-wm-copy span { font-size: 9px !important; }
  footer.site-footer .ff-wm-copy, footer.site-footer .ff-wm-copy span { height: 9px !important; line-height: 1 !important; }
}

/* Line-by-line paragraph reveal (shared with the profiles) (2026-11-17) */
html[data-ff-lines="slide"] main .ff-w { display: inline-block; opacity: var(--l, 1); transform: translateX(calc((1 - var(--l, 1)) * 7vw)); }
@media (max-width: 760px) { html[data-ff-lines="slide"] main .ff-w { transform: translateX(calc((1 - var(--l, 1)) * 9vw)); } }
html[data-ff-lines="slide"] main .families-wave, html[data-ff-lines="slide"] main .families-wave-word { opacity: 1 !important; transform: none !important; }
/* Phones: footer link columns pushed 8px further apart (2026-11-17) */
@media (max-width: 760px) {
  footer.site-footer .site-footer__links .site-footer__column:first-child a { transform: translateX(-8px); }
  footer.site-footer .site-footer__links .site-footer__column:last-child a { transform: translateX(8px); }
}

/* Title entry (non-profile pages): scroll-driven, from the right by default, from the left for left-aligned titles, up from below for statements (2026-11-17) */
main h2.ff-title { opacity: var(--t, 1); transform: translateX(calc((1 - var(--t, 1)) * min(55vw, 420px))) scale(calc(.9 + .1 * var(--t, 1))); filter: blur(calc((1 - var(--t, 1)) * 6px)); transform-origin: 50% 60%; will-change: transform, opacity, filter; }
/* titles that already reveal word by word keep their own opacity and get the move: rise, settle from large, unblur */
main h2.ff-title.ff-title-words { opacity: 1; transform: translateY(calc((1 - var(--t, 1)) * 90px)) scale(calc(1.22 - .22 * var(--t, 1))); filter: blur(calc((1 - var(--t, 1)) * 10px)); transform-origin: 0 100%; }
main h2.ff-title.ff-title-words.ff-from-left { transform: translateX(calc((1 - var(--t, 1)) * max(-40vw, -320px))) translateY(calc((1 - var(--t, 1)) * 40px)) scale(calc(1.18 - .18 * var(--t, 1))); }
main h2.ff-title.ff-from-left { transform: translateX(calc((1 - var(--t, 1)) * max(-55vw, -420px))) scale(calc(.9 + .1 * var(--t, 1))); transform-origin: 0 60%; }
main h2.ff-title.ff-from-bottom { transform: translateY(calc((1 - var(--t, 1)) * 70px)) scale(calc(.96 + .04 * var(--t, 1))); }
/* data-ff-entry="top": the title drops down into place (centred titles over a graphic) */
main h2.ff-title.ff-from-top { transform: translateY(calc((1 - var(--t, 1)) * -110px)) scale(calc(.94 + .06 * var(--t, 1))); filter: blur(calc((1 - var(--t, 1)) * 8px)); transform-origin: 50% 0; }
@media (prefers-reduced-motion: reduce) { main h2.ff-title { opacity: 1; transform: none; } }
/* the lead under a left-aligned title arrives from the left with it; the body column on the right arrives from the right */
html[data-ff-lines="slide"] main .ff-lines-left .ff-w { transform: translateX(calc((1 - var(--l, 1)) * -7vw)); }
@media (max-width: 760px) { html[data-ff-lines="slide"] main .ff-lines-left .ff-w { transform: translateX(calc((1 - var(--l, 1)) * -9vw)); } }

/* ---- glass carousel (shared with the profiles) (2026-11-17) ---- */
.ff-glass { position: relative; z-index: 3; margin: 40px 0 0; overflow: hidden; }
.ffg-track { display: flex; gap: 22px; padding: 12px 0 28px; width: max-content; transition: transform .55s cubic-bezier(.22,.8,.26,1); will-change: transform; }
.ffg-card { position: relative; flex: 0 0 460px; max-width: 86vw; padding: 34px 34px 36px; border-radius: 26px; overflow: hidden; color: #f0e1ce;
  background: linear-gradient(160deg, rgba(255,246,233,.10), rgba(255,246,233,.03) 45%, rgba(199,120,85,.06));
  border: 1px solid rgba(255,246,233,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.04), 0 30px 80px rgba(0,0,0,.45);
  backdrop-filter: blur(28px) saturate(1.3); -webkit-backdrop-filter: blur(28px) saturate(1.3); }
.ffg-sheen { position: absolute; inset: -40% -20% auto; height: 70%; pointer-events: none; background: radial-gradient(ellipse at 30% 0%, rgba(255,255,255,.14), transparent 60%); filter: blur(10px); }
.ffg-n { font-size: 14px !important; margin-bottom: 18px !important; }
.ffg-card h3 { font: 400 clamp(22px, 2.2vw, 28px)/1.15 Inter, sans-serif !important; letter-spacing: -.02em !important; margin: 0 0 16px !important; }
.ffg-card p { font: 300 17px/1.6 Inter, sans-serif !important; margin: 0 0 .9em !important; color: #f0e1cee6 !important; }
.ffg-nav { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 6px; }
.ffg-nav button { all: unset; cursor: pointer; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #f0e1ce; font: 300 20px/1 Inter, sans-serif; border: 1px solid rgba(255,246,233,.22); background: linear-gradient(160deg, rgba(255,246,233,.12), rgba(255,246,233,.03)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); transition: transform .2s, border-color .2s; }
.ffg-nav button:hover { transform: translateY(-1px); border-color: #dba98b; }
.ffg-nav button[disabled] { opacity: .35; cursor: default; transform: none; }
.ffg-count { font: 400 14px/1 "DM Mono", monospace !important; letter-spacing: .22em; color: #dba98b; }
@media (max-width: 760px) { .ffg-track { gap: 14px; } .ffg-card { flex-basis: 86vw; padding: 26px; } }
.ffg-n { font-family: "DM Mono", monospace !important; letter-spacing: .18em; color: #dba98b; text-transform: uppercase; }
.ffg-card .ffg-purpose { color: #dba98b !important; margin-bottom: 1.2em !important; }
.ffg-card p { font-size: 21px !important; line-height: 1.65 !important; }
@media (max-width: 760px) { .ffg-card p { font-size: 19px !important; line-height: 1.6 !important; } }

/* glass cards with long copy: fixed height, the body scrolls inside (2026-11-17) */
.ff-glass .ffg-card { display: flex; flex-direction: column; }
.ff-glass .ffg-body { overflow-y: auto; overscroll-behavior: contain; padding-right: 14px; margin-right: -8px; min-height: 0; scrollbar-width: thin; scrollbar-color: #dba98b66 transparent; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
.ff-glass .ffg-body::-webkit-scrollbar { width: 4px; } .ff-glass .ffg-body::-webkit-scrollbar-thumb { background: #dba98b66; border-radius: 2px; }
.ff-glass .ffg-body p:last-child { margin-bottom: 28px !important; }

/* glass cards a third larger (2026-11-17) */
.ff-glass .ffg-card { flex: 0 0 613px !important; max-width: 90vw !important; max-height: min(740px, 78svh); }
@media (max-width: 760px) { .ff-glass .ffg-card { flex-basis: 90vw !important; max-height: 72svh; } }
/* Great Turning opening title: rises out of the centre of the wireframe (scale up from a point, no side travel) (2026-11-17) */
main .opening h2.ff-title.ff-title-words, main .opening h2.ff-title.ff-title-words.ff-from-left { transform: translateY(calc((1 - var(--t, 1)) * 34svh)) scale(calc(.18 + .82 * var(--t, 1))); filter: blur(calc((1 - var(--t, 1)) * 8px)); transform-origin: 50% 50%; }

@media (max-width: 760px) { .ff-hero-shifted { position: relative; top: var(--ff-hero-shift, 0px); } }

/* cursor trail canvases (2026-11-17) */
#archetype-cursor-light, #archetype-cursor-stardust { position: fixed; inset: 0; z-index: 80; width: 100vw; height: 100vh; pointer-events: none; }
#archetype-cursor-stardust { z-index: 81; }
@media (pointer: coarse), (prefers-reduced-motion: reduce) { #archetype-cursor-light, #archetype-cursor-stardust { display: none; } }
