/* Be the Wind: the sheet that opens from the hero, the menu's Join, and sits in /join. East Wind paper and ink. */

.btw { --pp: #FBF8F2; --ik: #2E2E2C; --soft: #6B6963; --rl: #E4DFD3; --cy: #B8DDE0; --cyd: #3F6569; --ease: cubic-bezier(.2,.8,.2,1);
  position: relative; color: var(--ik); font-family: 'Work Sans', sans-serif; }
html.btw-lock { overflow: hidden; }

/* ---------- Overlay: the sheet blows open from where you clicked ---------- */
.btw-overlay { position: fixed; inset: 0; z-index: 300; background: var(--pp); overflow-y: auto; overscroll-behavior: contain;
  clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); transition: clip-path .75s cubic-bezier(.7,0,.2,1); }
.btw-overlay.is-open { clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 50%)); }
.btw-overlay::before { content: ""; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(900px 500px at 85% 20%, rgba(184,221,224,.45), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(184,221,224,.25), transparent 60%); }
.btw-x { position: fixed; top: 22px; right: 26px; z-index: 3; display: inline-flex; align-items: center; gap: 10px; background: rgba(251,248,242,.8); backdrop-filter: blur(8px);
  border: 1px solid var(--rl); border-radius: 999px; padding: 10px 16px; font: 600 13px 'Work Sans', sans-serif; color: var(--ik); cursor: pointer; transition: border-color .2s; }
.btw-x svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.btw-x:hover { border-color: var(--ik); }
.btw-gust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.btw-overlay .btw-gust { position: fixed; }
.btw-stage { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 96px 48px 80px; min-height: 100%; }
.btw-inline .btw-stage { padding: 24px 0 40px; }
.btw-inline { overflow: hidden; }

/* Steps */
.btw-step { animation: btw-in .7s var(--ease) both; }
.btw-step[hidden] { display: none; }
@keyframes btw-in { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Door ---------- */
.btw-kick { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cyd); }
.btw-kick i { width: 22px; height: 1px; background: currentColor; }
.btw-h { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(54px, 9vw, 132px); line-height: .95; letter-spacing: -.03em; margin: 18px 0 20px; }
.btw-h span { display: inline-block; animation: btw-letter .9s var(--ease) both; animation-delay: calc(var(--i) * 45ms + 200ms); }
@keyframes btw-letter { from { opacity: 0; transform: translateX(60px) skewX(-12deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.btw-lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: #4A4945; max-width: 52ch; }

.btw-doors { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; margin-top: 52px; }
.btw-door { position: relative; display: flex; flex-direction: column; text-align: left; background: #fff; border: 1px solid var(--rl); border-top: 1px solid var(--ik);
  padding: 30px 30px 28px; font: inherit; color: inherit; }
.btw-door-open { cursor: pointer; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.btw-door-open:hover, .btw-door-open:focus-visible { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 30px 60px -34px rgba(46,46,44,.45); }
.btw-door-open:focus-visible, .btw-tile:focus-visible, .btw-btn:focus-visible, .btw-back:focus-visible { outline: 2px solid var(--ik); outline-offset: 3px; }
.btw-door-k { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.btw-door b { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.01em; margin: 8px 0 12px; }
.btw-door small { font-size: 15px; line-height: 1.6; color: #4A4945; }
.btw-door-go { margin-top: auto; padding-top: 22px; font-weight: 600; font-size: 14.5px; }
.btw-door-go span { display: inline-block; transition: transform .25s var(--ease); }
.btw-door-open:hover .btw-door-go span { transform: translateX(5px); }
/* the blank page, with a caret waiting */
.btw-paper { position: relative; display: block; height: 120px; margin-bottom: 22px; background: #FDFCF8; border: 1px solid var(--rl);
  background-image: repeating-linear-gradient(transparent 0 27px, rgba(46,46,44,.09) 27px 28px); background-position: 0 18px; }
.btw-paper .btw-rule { display: none; }
.btw-caret { position: absolute; left: 22px; top: 22px; width: 2px; height: 22px; background: var(--ik); animation: btw-blink 1.05s steps(1) infinite; }
@keyframes btw-blink { 50% { opacity: 0; } }
.btw-door-open:hover .btw-caret { animation: btw-blink 1.05s steps(1) infinite, btw-type 1.6s steps(14) infinite; }
@keyframes btw-type { from { left: 22px; } to { left: 70%; } }

/* Live tiles, each in its own initiative's colours */
.btw-tiles { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0 22px; }
.btw-tile { position: relative; display: grid; grid-template-columns: 1fr; text-align: left; padding: 16px 40px 16px 92px; min-height: 96px; border: 1px solid transparent; cursor: pointer; font: inherit;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), outline-color .2s; overflow: hidden; }
.btw-tile:hover { transform: translateY(-3px); }
.btw-tile[aria-pressed="true"] { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--ik), 0 20px 40px -24px rgba(0,0,0,.5); }
.btw-tile-art { position: absolute; left: 14px; top: 50%; width: 62px; height: 62px; margin-top: -31px; }
.btw-tile-art i { position: absolute; display: block; }
.btw-tile-v { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .75; }
.btw-tile-n { font-size: 19px; line-height: 1.15; margin-top: 2px; }
.btw-tile-l { font-size: 12.5px; line-height: 1.4; margin-top: 4px; opacity: .78; }
.btw-tick { position: absolute; right: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .5; transition: all .3s var(--ease); }
.btw-tile[aria-pressed="true"] .btw-tick { opacity: 1; background: currentColor; }
.btw-tile[aria-pressed="true"] .btw-tick::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--tick-ink, #fff); border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* 321's world */
.t-fd { background: #FED445; color: #111; font-family: 'Montserrat', 'Work Sans', sans-serif; --tick-ink: #FED445; }
.t-fd .btw-tile-n { font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; font-size: 15px; }
.t-fd .btw-tile-l { font-weight: 600; }
.t-fd .btw-tile-art i { width: 24px; height: 24px; border: 3px solid #111; font: 900 12px 'Montserrat', sans-serif; transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.t-fd .btw-tile-art i:nth-child(1) { left: 2px; bottom: 6px; background: #FF6A73; transform: rotate(-4deg); }
.t-fd .btw-tile-art i:nth-child(2) { left: 30px; bottom: 6px; background: #2994FF; transform: rotate(3deg); }
.t-fd .btw-tile-art i:nth-child(3) { left: 16px; bottom: 32px; background: #92F27C; transform: rotate(-2deg); }
.t-fd:hover .btw-tile-art i:nth-child(3), .t-fd[aria-pressed="true"] .btw-tile-art i:nth-child(3) { transform: translateY(-6px) rotate(8deg); }
.t-fd .btw-tile-art::after { content: ""; position: absolute; left: -4px; right: 0; bottom: 3px; height: 3px; background: #111; }
/* Rootstock's world */
.t-rk { background: radial-gradient(160px 120px at 20% 50%, #0D3220, #05150B); color: #F3F8F1; font-family: 'Fraunces', serif; --tick-ink: #05150B; }
.t-rk .btw-tick { color: #49BE55; }
.t-rk .btw-tile-v { font-family: 'Work Sans', sans-serif; color: #49BE55; opacity: 1; }
.t-rk .btw-tile-l { font-family: 'Work Sans', sans-serif; }
.t-rk .btw-tile-art { border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 5px, rgba(221,235,236,.7) 5px 6.5px); transition: transform 1.2s var(--ease); }
.t-rk .btw-tile-art i:nth-child(1) { left: 50%; top: 50%; width: 10px; height: 14px; margin: -10px 0 0 -2px; border-radius: 0 100% 0 100%; background: #49BE55; }
.t-rk .btw-tile-art i:nth-child(2) { left: 50%; top: 50%; width: 140%; height: 7px; margin: -2px 0 0 -70%; background: #05150B; transform: rotate(-45deg); }
.t-rk:hover .btw-tile-art, .t-rk[aria-pressed="true"] .btw-tile-art { transform: rotate(90deg) scale(1.06); }
/* Futurity's world */
.t-rb { background: #F4F4F0; color: #1A1C1E; font-family: 'Plus Jakarta Sans', 'Work Sans', sans-serif; border-color: rgba(26,28,30,.08); border-radius: 14px; --tick-ink: #F4F4F0; }
.t-rb .btw-tile-n { font-weight: 700; letter-spacing: -.03em; }
.t-rb .btw-tile-v { font-family: 'DM Mono', monospace; font-weight: 400; }
.t-rb .btw-tile-art { border-radius: 12px; background: #0E1111; overflow: hidden; }
.t-rb .btw-tile-art i:nth-child(1) { left: 14px; top: 26px; width: 34px; height: 20px; background: #E3E3DC; transform: skewY(-26deg); transition: transform .5s var(--ease); }
.t-rb .btw-tile-art i:nth-child(2) { left: 14px; top: 12px; width: 34px; height: 14px; background: #F2BD09; transform: skewY(-26deg) translateY(-24px); opacity: 0; transition: transform .6s cubic-bezier(.3,1.5,.5,1), opacity .3s; }
.t-rb .btw-tile-art i:nth-child(3) { right: 8px; bottom: 8px; width: 7px; height: 7px; background: #F2BD09; transform: rotate(45deg); }
.t-rb:hover .btw-tile-art i:nth-child(2), .t-rb[aria-pressed="true"] .btw-tile-art i:nth-child(2) { transform: skewY(-26deg); opacity: 1; }
/* A chapter: East Wind's own paper and contours */
.t-ch { background: #fff; color: var(--ik); border-color: var(--rl); font-family: 'Fraunces', serif; --tick-ink: #fff; }
.t-ch .btw-tile-v, .t-ch .btw-tile-l { font-family: 'Work Sans', sans-serif; }
.t-ch .btw-tile-v { color: var(--cyd); opacity: 1; }
.t-ch .btw-tile-art { border-radius: 50%; background: repeating-radial-gradient(ellipse at 40% 55%, transparent 0 6px, rgba(63,101,105,.35) 6px 7px); }
.t-ch .btw-tile-art i:nth-child(1) { left: 22px; top: 28px; width: 10px; height: 10px; border-radius: 50%; background: #B08A4E; box-shadow: 0 0 0 0 rgba(176,138,78,.5); animation: btw-pulse 2.4s ease-out infinite; }
@keyframes btw-pulse { 70% { box-shadow: 0 0 0 12px rgba(176,138,78,0); } 100% { box-shadow: 0 0 0 0 rgba(176,138,78,0); } }

.btw-btn { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; background: var(--ik); color: var(--pp); border: 0; border-radius: 999px; padding: 15px 26px;
  font: 600 14.5px 'Work Sans', sans-serif; cursor: pointer; text-decoration: none; transition: transform .25s var(--ease), opacity .25s, background .25s; }
.btw-btn:hover:not(:disabled) { transform: translateY(-2px); background: #1E1E1C; }
.btw-btn:disabled { opacity: .3; cursor: not-allowed; }
.btw-btn span { transition: transform .25s var(--ease); }
.btw-btn:hover:not(:disabled) span { transform: translateX(4px); }
.btw-aside { display: inline-block; margin-top: 30px; font-size: 14px; color: var(--soft); text-decoration: none; border-bottom: 1px solid var(--rl); padding-bottom: 3px; }
.btw-aside:hover { color: var(--ik); border-color: var(--ik); }

/* ---------- Canvas ---------- */
.btw-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 30px; }
.btw-back { background: none; border: 0; font: 600 13.5px 'Work Sans', sans-serif; color: var(--soft); cursor: pointer; padding: 6px 0; }
.btw-back:hover { color: var(--ik); }
.btw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.btw-chip { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; animation: btw-in .5s var(--ease) both; }
.c-open { background: #fff; border: 1px solid var(--ik); }
.c-fd { background: #FED445; color: #111; font-family: 'Montserrat', sans-serif; font-weight: 800; border-radius: 0; border: 2px solid #111; }
.c-rk { background: #05150B; color: #49BE55; }
.c-rb { background: #1A1C1E; color: #F2BD09; font-family: 'Plus Jakarta Sans', sans-serif; }
.c-ch { background: var(--cy); color: var(--ik); }
.btw-q { display: block; font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -.015em; max-width: 24ch; margin-bottom: 26px; }
.btw-sheet { position: relative; background: #fff; border: 1px solid var(--rl); border-top: 1px solid var(--ik); box-shadow: 0 40px 80px -50px rgba(46,46,44,.45);
  background-image: repeating-linear-gradient(transparent 0 43px, rgba(46,46,44,.07) 43px 44px); background-position: 0 30px; }
.btw-ink { display: block; width: 100%; min-height: 220px; border: 0; outline: 0; resize: none; background: transparent; padding: 30px 34px 40px; overflow: hidden;
  font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(20px, 2vw, 26px); line-height: 44px; color: var(--ik); caret-color: var(--cyd); }
.btw-ink::placeholder { color: #B6B2A8; font-style: italic; }
.btw-breeze { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(184,221,224,.35); }
.btw-breeze i { display: block; height: 100%; background: var(--cyd); transform-origin: left; transform: scaleX(0); transition: transform .4s var(--ease); }
.btw-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-top: 24px; }
.btw-row-c { justify-content: center; }
.btw-hint { font-size: 13px; color: var(--soft); }

/* ---------- Sign ---------- */
.btw-letter { background: #fff; border: 1px solid var(--rl); border-top: 1px solid var(--ik); padding: 40px 40px 32px; max-width: 760px; box-shadow: 0 40px 80px -50px rgba(46,46,44,.45); transform-origin: 50% 50%; }
.btw-quote { font-family: 'Fraunces', serif; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.55; color: #4A4945; border-left: 3px solid var(--cy); padding-left: 20px; white-space: pre-line; max-height: 12em; overflow: hidden; }
.btw-sig { display: flex; align-items: baseline; gap: 16px; margin-top: 40px; border-bottom: 1px solid var(--ik); padding-bottom: 6px; }
.btw-sig-k { font-family: 'Fraunces', serif; font-style: italic; font-size: 22px; color: var(--soft); }
.btw-sig-name { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; font-size: clamp(28px, 3.4vw, 42px); color: var(--ik); padding: 0; }
.btw-sig-name::placeholder { color: #CFCBC1; }
.btw-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.btw-fields label span { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
.btw-fields input { width: 100%; border: 0; border-bottom: 1px solid var(--rl); background: none; outline: 0; padding: 8px 0; font: 17px 'Work Sans', sans-serif; color: var(--ik); transition: border-color .2s; }
.btw-fields input:focus, .btw-sig:focus-within { border-color: var(--cyd); }
.is-bad { animation: btw-shake .45s ease; }
@keyframes btw-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.btw-check { margin-top: 24px; min-height: 0; }
.btw-err { color: #B3261E; font-size: 14px; margin-top: 10px; min-height: 1em; }
.btw-mail { font-size: 13px; color: var(--soft); }
/* the letter folds and goes with the wind */
.is-flying .btw-letter { animation: btw-fold .9s cubic-bezier(.6,0,.4,1) forwards; }
@keyframes btw-fold { 0% { transform: none; } 40% { transform: perspective(900px) rotateX(55deg) scale(.6); opacity: 1; } 100% { transform: perspective(900px) rotateX(70deg) translate(-120vw, -30vh) rotate(-18deg) scale(.2); opacity: 0; } }

/* ---------- Sent ---------- */
.btw-step[data-step="sent"] { text-align: center; padding-top: 6vh; }
.btw-step[data-step="sent"] .btw-lede { margin: 0 auto; }
.btw-plane { width: 120px; height: 80px; fill: #fff; stroke: var(--ik); stroke-width: 2; stroke-linejoin: round; animation: btw-glide 3.2s ease-in-out infinite; }
@keyframes btw-glide { 50% { transform: translate(-14px, -10px) rotate(-6deg); } }
.btw-h-s { font-size: clamp(48px, 7vw, 96px); }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .btw-doors { grid-template-columns: 1fr; }
  .btw-stage { padding: 80px 20px 60px; }
  .btw-inline .btw-stage { padding: 10px 0 30px; }
  .btw-fields { grid-template-columns: 1fr; }
  .btw-letter { padding: 28px 20px 24px; }
  .btw-ink { padding: 22px 20px 34px; }
}
@media (max-width: 520px) { .btw-tiles { grid-template-columns: 1fr; } .btw-x span { display: none; } .btw-x { padding: 10px; } }

@media (prefers-reduced-motion: reduce) {
  .btw-overlay { transition: none; }
  .btw-step, .btw-h span, .btw-chip, .btw-plane, .btw-caret, .t-ch .btw-tile-art i { animation: none !important; }
  .is-flying .btw-letter { animation: none; }
}
