/* Motif: the Positioning Flywheel */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } html { scroll-behavior: smooth; } }
:root { --ink: #f4f1eb; --dim: #bdb8b1; --copper: #e29578; --base: #141414; --ease: cubic-bezier(.3,.1,.15,1); color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--base); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: transparent; color: var(--ink); font: 400 17px/1.7 Raleway, 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.flywheel-page a { color: inherit; } .flywheel-page .motif-colophon a { color: #b3b3b3; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 5px; border-radius: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
.fw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.flywheel-page .site-wrapper { position: relative; }
.flywheel-page header.motif-masthead { z-index: 5; margin-bottom: 0; }
.flywheel-page main { display: block; overflow-x: clip; }

/* wheel beside story */
.fw-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 3.6vw, 60px); width: calc(min(95%, 1170px) - 40px); margin: -103px auto 0; }
.fw-story { grid-column: 1; grid-row: 1; position: relative; z-index: 1; }
.fw-side { grid-column: 2; grid-row: 1; }
.fw-figure { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; }
.fw-wheel { display: block; width: min(100%, 86vh); height: auto; overflow: visible; }
.fw-guide { stroke: none; }
/* one light behind the wheel, on the solid page */
.fw-glow { position: absolute; z-index: -1; left: 50%; top: 50%; width: 150%; height: 124%; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; transition: opacity 1.8s ease; }
.lit .fw-glow { opacity: 1; }

.fw-panel { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; padding: 60px 0; }
.fw-hero { min-height: 100vh; min-height: 100svh; padding: 150px 0 60px; }
.fw-intro { min-height: 80vh; }
.fw-eyebrow, .fw-label, .fw-stage dt { font: 600 11px/1.5 Montserrat, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.fw-eyebrow { color: var(--copper); margin-bottom: 24px; }
h1, .fw-panel h2, .fw-end h2 { font: 400 clamp(44px, 5.2vw, 78px)/1.04 'Playfair Display', Georgia, serif; letter-spacing: -.02em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; }
.fw-panel h2 { font-size: clamp(36px, 3.9vw, 58px); line-height: 1.1; }
.fw-deck { margin-top: 28px; max-width: 33em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; color: #d8d4cd; }
.fw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 38px; }
.fw-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 10px 34px; border-radius: 99px; border: 1px solid rgba(244,241,235,.36); background: transparent; text-decoration: none; font: 600 12px/1.4 Montserrat, sans-serif; letter-spacing: .16em; text-transform: uppercase; text-align: center; transition: background-color .3s, border-color .3s; }
.fw-primary:hover { background: rgba(244,241,235,.1); border-color: rgba(244,241,235,.66); }
.fw-secondary { font-size: 15px; text-underline-offset: 6px; text-decoration-color: rgba(244,241,235,.4); padding: 8px 0; }
.fw-secondary:hover { text-decoration-color: var(--copper); }

.fw-count { font: italic 400 22px/1 'Playfair Display', Georgia, serif; color: var(--copper); margin-bottom: 14px; }
.fw-stage h3 { font: 400 clamp(36px, 3.9vw, 58px)/1.08 'Playfair Display', Georgia, serif; letter-spacing: -.015em; outline-offset: 10px; }
.fw-stage h3:focus { outline: none; }
.fw-thesis { margin: 18px 0 34px; max-width: 27em; font: italic 400 clamp(19px, 1.6vw, 23px)/1.45 'Playfair Display', Georgia, serif; color: #dcd8d1; }
.fw-stage dl { border-top: 1px solid rgba(244,241,235,.16); }
.fw-stage dl > div { display: grid; grid-template-columns: 132px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid rgba(244,241,235,.16); }
.fw-stage dt { color: #aaa49c; padding-top: 5px; letter-spacing: .13em; font-size: 10.5px; }
.fw-stage dd { font-size: 16px; line-height: 1.6; color: #e4e0d9; }
.fw-stage .fw-q { font: 400 20px/1.4 'Playfair Display', Georgia, serif; color: var(--ink); }
.fw-stall { appearance: none; display: block; margin: 8px 0 -8px; padding: 10px 0; background: none; border: 0; color: var(--copper); cursor: pointer; font: 500 14px/1.4 Raleway, sans-serif; text-decoration: underline; text-decoration-color: rgba(226,149,120,.45); text-underline-offset: 5px; }
.fw-stall:hover { text-decoration-color: var(--copper); }
html:not(.fw-live) .fw-stall { display: none; }
.fw-loop p:not([class]) { margin-top: 24px; max-width: 34em; color: #d8d4cd; }
.fw-related { margin-top: 30px; font-size: 15px; color: var(--dim); max-width: 34em; }
.fw-related a { color: var(--ink); text-decoration-color: rgba(244,241,235,.4); text-underline-offset: 5px; } .fw-related a:hover { text-decoration-color: var(--copper); }
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .fw-live .fw-panel > * { transition: opacity .7s ease; }
  .fw-live .fw-panel:not(.here):not(:focus-within) > * { opacity: .34; }
}

/* the wheel */
.fw-base { stroke: rgba(244,241,235,.2); stroke-width: 3.5; }
.fw-lit { stroke: #eceae6; stroke-width: 4.5; stroke-linecap: round; opacity: calc(.18 + .82 * var(--fade, 1)); }
.fw-halo { stroke: #fff; stroke-width: 16; stroke-linecap: round; opacity: calc(.04 + .16 * var(--glow, 0)); filter: blur(9px); }
html:not(.fw-live) .fw-lit, html:not(.fw-live) .fw-halo, html:not(.fw-live) .fw-light { display: none; }
html:not(.fw-live) .fw-base { stroke: rgba(244,241,235,.6); }
.fw-arrows path { stroke: #f4f1eb; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; opacity: .34; transition: opacity .5s; }
.fw-light { opacity: calc(.75 * var(--fade, 1)); pointer-events: none; mix-blend-mode: screen; }
.fw-node { cursor: pointer; text-decoration: none; }
.fw-node:focus-visible { outline: none; } .fw-node:focus-visible .fw-ring { stroke: var(--copper); stroke-width: 4; }
.fw-hit { fill: transparent; }
.fw-ring { fill: rgba(20,20,20,.78); stroke: rgba(244,241,235,.36); stroke-width: 2; transition: fill .7s, stroke .7s; }
.fw-num { font: 600 20px/1 Montserrat, sans-serif; letter-spacing: .04em; fill: #c9c4bd; transition: fill .7s; }
.fw-name { font: 400 35px/1 'Playfair Display', Georgia, serif; fill: #a8a39b; transition: fill .7s; }
.fw-node.past .fw-ring { stroke: #eceae6; } .fw-node.past .fw-num { fill: #fff; } .fw-node.past .fw-name { fill: #dedad3; }
.fw-node.on .fw-ring { fill: #d97f63; stroke: #d97f63; } .fw-node.on .fw-num { fill: #141414; } .fw-node.on.lost .fw-num { fill: #fff; } .fw-node.on .fw-name, .fw-node:hover .fw-name { fill: #fff; }
.whole .fw-node .fw-ring { stroke: #fff; } .whole .fw-node .fw-name { fill: #f4f1eb; }
.fw-node.on.lost .fw-ring { fill: rgba(20,20,20,.78); stroke: rgba(203,109,81,.7); } .stalled .fw-node.past .fw-ring { stroke: rgba(244,241,235,.3); } .stalled .fw-node .fw-name { fill: #8d8881; } .stalled .fw-node.lost .fw-name { fill: var(--copper); }
@media (prefers-reduced-motion: no-preference) {
  .js .fw-wheel { opacity: 0; transition: opacity 1.6s ease .25s; } .js .fw-wheel.ready { opacity: 1; }
  .js .fw-hero > * { animation: fw-arrive 1s var(--ease) both; } .js .fw-hero > :nth-child(2) { animation-delay: .12s; } .js .fw-hero > :nth-child(3) { animation-delay: .3s; } .js .fw-hero > :nth-child(4) { animation-delay: .42s; }
  @keyframes fw-arrive { from { opacity: 0; transform: translateY(10px); } }
}
html.js:not(.fw-live) .fw-wheel { opacity: 1; }

/* paper */
.fw-paper { position: relative; width: min(95%, 1170px); margin: 12vh auto 0; display: grid; gap: 14px; }
.fw-sheet { background: #fff; color: #3b3937; border-radius: 4px; padding: clamp(32px, 6.4vw, 92px); box-shadow: 0 50px 90px -50px rgba(0,0,0,.6); }
.fw-label { color: #b4553a; margin-bottom: 20px; }
.fw-sheet h2 { font: 400 clamp(32px, 3.9vw, 56px)/1.1 'Playfair Display', Georgia, serif; letter-spacing: -.015em; color: #141414; text-wrap: balance; }
.fw-sheet > p:not([class]) { margin-top: 22px; max-width: 36em; }
.fw-chain { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px); margin: clamp(34px, 4.6vw, 62px) 0 8px; padding: 30px 0; border: solid #e2deda; border-width: 1px 0; font: 400 clamp(21px, 2.35vw, 33px)/1.2 'Playfair Display', Georgia, serif; color: #141414; }
.fw-chain i { position: relative; flex: 1; min-width: 18px; height: 1px; background: #cb6d51; } .fw-chain i::after { content: ''; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border: solid #cb6d51; border-width: 1px 1px 0 0; transform: rotate(45deg); }
.fw-rows { margin-top: clamp(30px, 4vw, 54px); border-top: 1px solid #e2deda; }
.fw-rows article { display: grid; grid-template-columns: 1fr 1.1fr; gap: 14px 48px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid #e2deda; }
.fw-rows article:last-child { border-bottom: 0; padding-bottom: 0; }
.fw-rows h3 { font: 400 clamp(23px, 2.1vw, 30px)/1.2 'Playfair Display', Georgia, serif; color: #141414; }

.fw-end { width: min(100% - 48px, 780px); margin: 0 auto; padding: clamp(110px, 18vh, 190px) 0; text-align: center; }
.fw-end p { margin: 26px auto 0; max-width: 34em; color: #d8d4cd; } .fw-end .fw-actions { justify-content: center; }
.fw-end h2 { font-size: clamp(38px, 4.8vw, 70px); }
.flywheel-page footer.motif-colophon { position: relative; }

@media (min-width: 901px) and (max-height: 760px) { .fw-stage dl > div { padding: 12px 0; } .fw-thesis { margin: 12px 0 22px; } .fw-panel { padding: 40px 0; } .fw-hero { padding-top: 130px; } }
@media (max-width: 900px) {
  :root { --wh: clamp(190px, 36svh, 400px); }
  .fw-grid { display: block; width: auto; margin: 0; }
  .fw-side { position: sticky; top: 0; z-index: 3; height: var(--wh); pointer-events: none; }
  .fw-side::before { content: ''; z-index: -2; position: absolute; inset: 0 0 -30px; background: linear-gradient(to bottom, #141414 calc(100% - 34px), rgba(20,20,20,0)); }
  .fw-figure { position: relative; top: auto; height: var(--wh); padding: 22px 20px 4px; }
  .fw-glow { width: 100%; height: 100%; }
  .fw-wheel { width: auto; height: calc(var(--wh) - 26px); max-width: 100%; pointer-events: auto; } .fw-name { display: none; } .fw-num { font-size: 34px; transform: translateY(4px); } .fw-ring { r: 46px; stroke-width: 3; } .fw-hit { r: 90px; }
  .fw-base { stroke-width: 6; } .fw-lit { stroke-width: 8; } .fw-arrows path { stroke-width: 7; } .fw-light { r: 84px; }
  .fw-story { padding: 0 24px; }
  .fw-panel { min-height: 62svh; padding: 50px 0; justify-content: flex-start; }
  .fw-hero { min-height: 0; padding: 40px 0 46px; } .fw-intro { min-height: 0; }
  .fw-stage, .fw-loop, .fw-intro { scroll-margin-top: calc(var(--wh) - 8px); }
  #flywheel-stages { scroll-margin-top: calc(var(--wh) - 8px); }
  .fw-stage dl > div { grid-template-columns: 1fr; gap: 6px; }
  .fw-paper { width: calc(100% - 24px); margin-top: 60px; gap: 10px; }
  .fw-sheet { padding: 36px 24px 40px; }
  .fw-chain { flex-direction: column; align-items: flex-start; gap: 0; font-size: 25px; padding: 26px 0; } .fw-chain i { flex: none; width: 1px; min-width: 1px; height: 30px; margin: 10px 0 10px 4px; } .fw-chain i::after { right: -4px; top: auto; bottom: 0; transform: rotate(135deg); }
  .fw-rows article { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .flywheel-page header.motif-masthead { margin-bottom: 0; } .fw-primary { width: 100%; } .fw-actions { flex-direction: column; align-items: flex-start; } .fw-end .fw-actions { align-items: center; } }
@media (prefers-reduced-motion: reduce) { .fw-glow, .fw-ring, .fw-num, .fw-name, .fw-arrows path { transition-duration: .01s; } }
