/* Story page (story.html): the person and the idea behind Tangofy, and how to support it.
   Loaded after styles.css, only by the story pages. */

.story-hero h1 { max-width: 15ch; }
.story-hero .lede { font-style: italic; }

/* Opening: two passions that meet */
.story-open { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(24px, 3vw, 48px) clamp(48px, 6vw, 88px); }
.story-text .story-big { font-family: var(--display); font-weight: 500; letter-spacing: -.035em; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.12; margin: 0 0 28px; }
.story-text .story-big em { font-style: normal; color: var(--text-3); }
.story-text p { color: var(--text-2); font-size: 18px; line-height: 1.7; margin: 0 0 18px; max-width: 62ch; }
.story-text p:last-child { margin-bottom: 0; }
.story-text strong { color: var(--text); font-weight: 600; }
.meet { position: relative; isolation: isolate; aspect-ratio: 1.35; max-width: 560px; width: 100%; justify-self: center; }
/* Two discs that drift together when the block appears; where they overlap the light adds up */
.meet-c { position: absolute; top: 50%; width: 62%; aspect-ratio: 1; border-radius: 50%; translate: 0 -50%; display: flex; align-items: center; mix-blend-mode: screen; transition: transform 1.4s var(--ease) .15s; }
.meet-c::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--rim); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.meet-c.a { left: 0; justify-content: flex-start; padding-left: 13%; transform: translateX(-14%);
  --rim: conic-gradient(from 200deg, rgb(255 210 122 / .9), rgb(255 90 31 / .15) 40%, rgb(255 143 45 / .8) 75%, rgb(255 210 122 / .9));
  background: radial-gradient(circle at 30% 28%, rgb(255 170 90 / .45), transparent 42%), radial-gradient(circle at 45% 55%, rgb(255 90 31 / .42), rgb(194 38 15 / .14) 62%, transparent 72%);
  box-shadow: 0 0 80px -10px rgb(255 90 31 / .35); animation: meet-float 9s ease-in-out infinite; }
.meet-c.b { right: 0; justify-content: flex-end; padding-right: 13%; transform: translateX(14%);
  --rim: conic-gradient(from 20deg, rgb(147 197 253 / .9), rgb(59 130 246 / .15) 40%, rgb(96 165 250 / .8) 75%, rgb(147 197 253 / .9));
  background: radial-gradient(circle at 70% 28%, rgb(147 197 253 / .4), transparent 42%), radial-gradient(circle at 55% 55%, rgb(59 130 246 / .38), rgb(37 99 235 / .12) 62%, transparent 72%);
  box-shadow: 0 0 80px -10px rgb(59 130 246 / .3); animation: meet-float 9s ease-in-out -4.5s infinite; }
.meet.in .meet-c { transform: none; }
.meet-in { display: flex; flex-direction: column; gap: 12px; max-width: 34%; mix-blend-mode: normal; }
.meet-c.b .meet-in { align-items: flex-end; text-align: right; }
.meet-in b { font-family: var(--display); font-size: clamp(17px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.025em; line-height: 1.05; color: #fff; text-shadow: 0 2px 16px rgb(0 0 0 / .5); }
.meet-ico { width: 44px; height: 44px; padding: 11px; border-radius: 50%; color: #fff; background: rgb(255 255 255 / .12); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25), inset 0 1px 0 rgb(255 255 255 / .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.meet-mark { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; width: 21%; aspect-ratio: 1; display: grid; place-items: center; transform: scale(.6); opacity: 0; transition: transform 1s cubic-bezier(.3, 1.6, .5, 1) 1.1s, opacity .6s 1.1s; }
.meet-mark::before { content: ''; position: absolute; inset: -60%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 190 120 / .55), rgb(255 120 40 / .18) 55%, transparent); animation: meet-pulse 4s ease-in-out infinite; }
.meet.in .meet-mark { transform: none; opacity: 1; }
.meet-mark img { width: 100%; height: auto; filter: drop-shadow(0 8px 20px rgb(0 0 0 / .5)); }
/* A few sparks around the meeting point */
.meet-spark { position: absolute; z-index: 1; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px 2px rgb(255 190 120 / .8); opacity: 0; animation: meet-spark 5s ease-in-out infinite; }
.meet-spark.s1 { left: 47%; top: 14%; }
.meet-spark.s2 { left: 56%; top: 80%; animation-delay: -1.7s; background: #bfdbfe; box-shadow: 0 0 12px 2px rgb(147 197 253 / .8); }
.meet-spark.s3 { left: 41%; top: 72%; animation-delay: -3.4s; }
@keyframes meet-float { 0%, 100% { translate: 0 -50%; } 50% { translate: 0 calc(-50% - 8px); } }
@keyframes meet-pulse { 0%, 100% { opacity: .75; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes meet-spark { 0%, 100% { opacity: 0; transform: translateY(6px) scale(.6); } 50% { opacity: 1; transform: translateY(-6px) scale(1); } }
@media (prefers-reduced-motion: reduce) { .meet-c, .meet-mark::before, .meet-spark { animation: none; } .meet-c, .meet-mark { transition: none; transform: none; opacity: 1; } }
@media (max-width: 900px) { .story-open { grid-template-columns: 1fr; } .meet { max-width: 440px; } }

/* Chapters: one centred reading column; the title opens each chapter above the text */
.chapter { padding-block: clamp(56px, 6vw, 96px); scroll-margin-top: 60px; overflow-x: clip; }
.chapter + .chapter { border-top: 1px solid var(--line); }
.chapter-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; margin-bottom: clamp(36px, 4vw, 56px); }
.chapter-num { display: inline-flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .12em; color: var(--orange); font-variant-numeric: tabular-nums; }
.chapter-num::before, .chapter-num::after { content: ''; width: 44px; height: 1px; background: linear-gradient(90deg, transparent, rgb(255 143 45 / .7)); }
.chapter-num::after { transform: scaleX(-1); }
.chapter-head h2 { font-size: clamp(38px, 5.4vw, 76px); line-height: .96; }
.chapter .story-text p { max-width: none; }
.chapter .story-text .highlight { max-width: 46ch; }

/* The person: a portrait card (photo fading into the page, name over it) beside the intro */
.person { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.portrait { position: relative; isolation: isolate; margin: 0; }
.portrait::before { content: ''; position: absolute; z-index: -1; inset: 8% -10% -6% -10%; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 90 31 / .45), rgb(194 38 15 / .18) 55%, transparent); filter: blur(30px); }
.portrait-frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: radial-gradient(80% 70% at 30% 20%, rgb(255 143 45 / .35), transparent 70%), linear-gradient(160deg, #2a0c04, #0f0f11 70%); box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 50px 90px -40px rgb(0 0 0 / .9); }
/* The studio grey warms up a little and the bottom sinks into the page, under the name */
.portrait-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to top, rgb(9 9 11 / .96) 0%, rgb(9 9 11 / .72) 20%, rgb(9 9 11 / 0) 48%),
  radial-gradient(90% 60% at 100% 0%, rgb(255 143 45 / .22), transparent 60%),
  radial-gradient(70% 50% at 0% 10%, rgb(255 90 31 / .12), transparent 60%); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(.92) contrast(1.04) brightness(.94); }
.portrait .monogram { position: absolute; inset: 0; display: none; place-items: center; font-family: var(--display); font-weight: 700; font-size: clamp(64px, 9vw, 120px); letter-spacing: -.05em; color: rgb(255 240 225 / .85); }
.portrait.no-photo img { display: none; }
.portrait.no-photo .monogram { display: grid; }
.portrait figcaption { position: absolute; z-index: 1; left: clamp(20px, 2.4vw, 32px); right: 20px; bottom: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 6px; }
.portrait figcaption b { font-family: var(--display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.03em; line-height: 1; color: #fff; }
.portrait figcaption span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.portrait-badge { position: absolute; z-index: 1; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff; background: rgb(15 15 17 / .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); }
.portrait-badge img { width: 22px; height: 22px; filter: none; }
.story-text .person-lead { font-family: var(--display); font-size: clamp(24px, 2.3vw, 32px); font-weight: 500; letter-spacing: -.03em; line-height: 1.2; color: var(--text); margin-bottom: 26px; }
.story-text .person-lead strong { background: linear-gradient(100deg, var(--gold), var(--orange) 60%, var(--orange-hot)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; margin-right: -.08em; }
@media (max-width: 760px) { .person { grid-template-columns: 1fr; } .portrait { max-width: 380px; } }

/* A sentence that deserves its own line */
.pull { margin: 36px 0 0; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: radial-gradient(90% 120% at 0% 0%, rgb(255 143 45 / .14), transparent 60%), var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.pull p { margin: 0; font-family: var(--display); font-size: clamp(24px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; color: var(--text); max-width: none; }
.pull .chips { margin: 20px 0 14px; }
.pull .chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px -1px var(--c); }
.pull .after { font-family: var(--sans); font-size: 17px; font-weight: 400; letter-spacing: 0; line-height: 1.6; color: var(--text-2); }

/* From an idea to a project: a tanguero's moments, a few facts */
.path { list-style: none; margin: 28px 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.path li { position: relative; padding: 18px; border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; }
.path li .ico { width: 36px; height: 36px; }
.path li b { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.path li:not(:last-child)::after { content: ''; position: absolute; right: -11px; top: 50%; width: 10px; height: 2px; background: var(--orange); }
@media (max-width: 680px) { .path { grid-template-columns: repeat(2, 1fr); } .path li:nth-child(2)::after { display: none; } }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.facts div { padding: 18px 20px; border-radius: 20px; background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--line); }
.facts b { display: block; font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; color: var(--orange); }
.facts span { display: block; margin-top: 6px; color: var(--text-2); font-size: 14px; line-height: 1.45; }
@media (max-width: 680px) { .facts { grid-template-columns: 1fr; } }
.story-text .highlight { margin: 30px 0 0; padding-left: 20px; border-left: 3px solid var(--orange); font-family: var(--display); font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; color: var(--text); max-width: 46ch; }

/* Independent: what is not behind it */
.nots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 30px; }
.nots div { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; line-height: 1.3; }
.nots svg { flex-shrink: 0; width: 28px; height: 28px; padding: 7px; border-radius: 50%; color: var(--text-3); background: rgb(255 255 255 / .06); }
.nots .yes { grid-column: 1 / -1; justify-content: center; padding: 18px; color: #1a0b00; font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; background: var(--orange); background-image: linear-gradient(180deg, rgb(255 255 255 / .3), rgb(255 255 255 / 0) 55%); box-shadow: 0 14px 40px -16px rgb(255 143 45 / .9); }
.nots .yes svg { color: #1a0b00; background: rgb(0 0 0 / .1); }
@media (max-width: 680px) { .nots { grid-template-columns: 1fr; } }

/* Free: what it costs */
.costs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0 28px; }
.costs div { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--line); }
.costs .ico { width: 34px; height: 34px; }
.costs b { font-weight: 600; font-size: 15px; }
@media (max-width: 520px) { .costs { grid-template-columns: 1fr; } }

/* Sustainable: the principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.principles div { padding: 20px; border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; }
.principles .ico { width: 40px; height: 40px; }
.principles b { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.principles span { color: var(--text-2); font-size: 14px; line-height: 1.5; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.story-text .motto { margin: 36px 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.8vw, 54px); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }

/* Support: the donation band and the other ways to help */
.give-section { padding-block: clamp(24px, 4vw, 48px) 0; scroll-margin-top: 100px; }
.give-band { position: relative; overflow: hidden; border-radius: 36px; padding: clamp(28px, 6vw, 80px); background: linear-gradient(120deg, #2a0c04 0%, #5c1607 30%, var(--orange-hot) 78%, var(--orange) 100%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .2); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.give-band::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgb(0 0 0 / .12) 0 1px, transparent 1px 22px); mix-blend-mode: multiply; opacity: .6; pointer-events: none; }
.give-band > * { position: relative; }
.give-band h2 { font-size: clamp(36px, 5vw, 72px); line-height: .95; letter-spacing: -.045em; margin-bottom: 22px; }
.give-band p { margin: 0 0 14px; color: rgb(255 240 225 / .88); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; max-width: 54ch; }
.give-band p b { color: #fff; font-weight: 600; }
.give-box { padding: clamp(22px, 3vw, 32px); border-radius: 26px; background: rgb(0 0 0 / .3); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); display: flex; flex-direction: column; gap: 16px; }
.give-box .label { color: rgb(255 240 225 / .8); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amounts a { display: grid; place-items: center; height: 54px; border-radius: 16px; font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); transition: background-color .25s, transform .25s var(--ease); }
.amounts a:hover { background: rgb(255 255 255 / .2); transform: translateY(-2px); }
.give-box .btn { justify-content: center; width: 100%; }
.give-box small { color: rgb(255 240 225 / .72); font-size: 13px; line-height: 1.5; }
.give-box[data-unset] { outline: 2px dashed rgb(255 255 255 / .55); outline-offset: 4px; }
.give-box[data-unset]::after { content: 'PayPal non configurato: imposta DONATE.paypal in config.js'; font-size: 12px; color: #fff; }
@media (max-width: 860px) { .give-band { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .amounts { grid-template-columns: repeat(2, 1fr); } }

.ways-title { margin: clamp(48px, 6vw, 80px) 0 8px; font-size: clamp(28px, 3vw, 42px); }
.ways-lede { margin: 0 0 24px; color: var(--text-2); font-size: 17px; max-width: 60ch; }
.ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.way { position: relative; padding: 22px; border-radius: 24px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; text-align: left; transition: background-color .25s, translate .4s var(--ease); }
.way:hover { background: var(--surface-2); translate: 0 -3px; }
.way .wi { width: 44px; height: 44px; padding: 11px; border-radius: 14px; color: var(--orange); background: rgb(255 143 45 / .12); box-shadow: inset 0 0 0 1px rgb(255 143 45 / .22); }
.way b { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.way span { color: var(--text-2); font-size: 14px; line-height: 1.5; }
.way em { margin-top: auto; padding-top: 4px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--orange); }
@media (max-width: 960px) { .ways { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ways { grid-template-columns: 1fr; } }

/* The signature */
.signoff { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-block: clamp(56px, 7vw, 104px); }
.signoff p { margin: 0; max-width: 58ch; color: var(--text-2); font-size: 18px; line-height: 1.65; }
.signoff h2 { font-size: clamp(52px, 9vw, 140px); line-height: .9; letter-spacing: -.055em; font-weight: 700; margin-block: 10px 8px; }
.sign { display: flex; align-items: center; gap: 14px; margin-top: 8px; text-align: left; }
.sign .avatar { position: relative; flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--orange), var(--ember)); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgb(255 143 45 / .6); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #1a0b00; }
.sign .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(1.2); transform-origin: 50% 35%; }
.sign b { display: block; font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.sign span { color: var(--text-2); font-size: 14px; font-style: italic; }

/* One rhythm inside the chapters: the same gap between every block (text, cards, quotes),
   whatever margins the blocks carry on their own; the closing lines get a little more air */
.story-hero { padding-bottom: clamp(16px, 2vw, 32px); }
.chapter .story-text { display: flex; flex-direction: column; gap: 32px; }
.chapter .story-text > * { margin-block: 0; }
.chapter .story-text > .motto { margin-top: 12px; }
