/* TTF 2027 tulip theme (preview) */
#aicSiteHeader .sh-logo img{height:60px}
@media (max-width:960px){#aicSiteHeader .sh-logo img{height:44px}}
.hero .h-xl.lockup{margin:4px 0 0;line-height:0}
.hero .h-xl.lockup img{width:min(760px,100%);height:auto;display:block;margin-left:-1.6%;filter:drop-shadow(0 10px 50px rgba(0,0,0,.55))}
.tulip-rule{display:flex;align-items:center;justify-content:center;gap:18px;margin:0 auto;padding:8px var(--gutter) 0;max-width:var(--wrap)}
.tulip-rule::before,.tulip-rule::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,var(--line-2))}
.tulip-rule::after{background:linear-gradient(90deg,var(--line-2),transparent)}
.tulip-rule img{width:150px;height:auto;opacity:.95}
.tulip-rule img.flip{transform:scaleX(-1)}
.ft-brand img.lockup{height:auto;width:240px}

/* ---- Theme 2027 label (home hero, nav, info bar) ---- */
.theme-pill{display:inline-flex;align-items:center;gap:12px;margin:18px 0 0;padding:7px 8px 7px 12px;border-radius:999px;border:1px solid rgba(174,31,25,.6);background:rgba(174,31,25,.16);color:var(--ink);text-decoration:none;font-family:var(--mono);font-size:12.5px;letter-spacing:.14em;text-transform:uppercase;transition:background .2s,border-color .2s;backdrop-filter:blur(6px)}
.theme-pill img{width:46px;height:auto}
.theme-pill b{color:#fff;font-weight:700}
.theme-pill .go{display:inline-flex;align-items:center;gap:6px;color:#fff;background:var(--red);border-radius:999px;padding:6px 12px;text-transform:none;letter-spacing:0;font-family:var(--display);font-size:13.5px;font-weight:600}
.theme-pill:hover{background:rgba(174,31,25,.28);border-color:var(--red)}
@media (max-width:520px){.theme-pill{font-size:11px;gap:8px;padding:6px 6px 6px 10px}.theme-pill img{width:34px}.theme-pill .go{font-size:12.5px;padding:5px 10px}}
#aicSiteHeader a.sh-theme::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--red);box-shadow:0 0 10px var(--red);margin:0 7px 1px 0;vertical-align:middle}
.info-bar-row .key a{color:#fff;text-decoration:none;white-space:nowrap}

/* ---- tulips in the home hero background ---- */
.hero-tulips{position:absolute;right:-6%;bottom:9%;width:min(62vw,900px);z-index:-1;opacity:.26;pointer-events:none;transform:scaleX(-1);transform-origin:50% 60%;animation:tmSway 10s ease-in-out infinite alternate}
@keyframes tmSway{from{transform:scaleX(-1) rotate(-1.4deg)}to{transform:scaleX(-1) rotate(1.4deg)}}
@media (max-width:760px){.hero-tulips{width:120vw;right:-30vw;bottom:2%;opacity:.18}}
@media (prefers-reduced-motion:reduce){.hero-tulips{animation:none}}

/* ---- Tulip Mania page ---- */
.tm-progress{position:fixed;left:0;right:0;top:0;height:3px;z-index:1001;pointer-events:none}
.tm-progress span{display:block;height:100%;width:100%;background:var(--red);transform-origin:0 50%;transform:scaleX(0);box-shadow:0 0 12px var(--red-glow)}
.tm-hero{position:relative;padding:clamp(112px,12vw,150px) 0 clamp(36px,4vw,56px);overflow:hidden;isolation:isolate}
.tm-hero::before{content:"";position:absolute;inset:0;z-index:-2;background:url('/assets/tf27/hero-amsterdam-1920.webp') center top/max(100vw,1138px) auto no-repeat;opacity:.35}
.tm-hero::after{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,rgba(5,5,6,.35),var(--bg) 90%),linear-gradient(90deg,var(--bg) 0%,transparent 75%)}
.tm-hero>.wrap{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(28px,5vw,72px);align-items:center}
.tm-hero-orn{position:absolute;left:-4%;bottom:-2%;width:min(70vw,980px);opacity:.14;z-index:-1;pointer-events:none;animation:tmSway2 11s ease-in-out infinite alternate}
@keyframes tmSway2{from{transform:rotate(-1deg)}to{transform:rotate(1deg)}}
.tm-badge{display:inline-flex;align-items:center;gap:10px;margin:0 0 18px;padding:7px 14px;border-radius:999px;background:var(--red);color:#fff;font-family:var(--mono);font-size:12.5px;letter-spacing:.18em;text-transform:uppercase;box-shadow:0 8px 30px -8px var(--red-glow)}
.tm-hero h1{font-size:clamp(56px,8.6vw,124px);line-height:.9;letter-spacing:-.04em;font-weight:900;margin:0 0 24px}
.tm-hero h1 span{color:var(--red)}
.tm-frame{margin:0;justify-self:end;width:min(380px,100%)}
.tm-frame img{display:block;width:100%;height:auto;max-height:calc(100svh - 190px);aspect-ratio:3/4;object-fit:cover;object-position:50% 20%;border-radius:var(--r);box-shadow:0 30px 80px -20px rgba(0,0,0,.85),0 0 0 1px var(--line-2);transform:perspective(1200px) rotateY(-6deg);transition:transform .6s var(--ease)}
.tm-frame:hover img{transform:perspective(1200px) rotateY(0)}
figcaption{font-size:13px;line-height:1.5;color:var(--muted);margin-top:10px}
@media (max-width:860px){.tm-hero>.wrap{grid-template-columns:1fr}.tm-frame{justify-self:start;width:min(320px,80%)}.tm-frame img{transform:none}}

.tm-facts{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.tm-fact{border:1px solid var(--line);border-radius:var(--r-sm);padding:18px 18px 16px;background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015))}
.tm-fact b{display:block;font-size:clamp(24px,2.4vw,32px);font-weight:900;letter-spacing:-.02em;color:#fff;line-height:1.1;margin-bottom:8px}
.tm-fact span{display:block;font-size:14.5px;line-height:1.45;color:var(--ink-2)}
@media (max-width:960px){.tm-facts{grid-template-columns:repeat(2,1fr)}.tm-fact:last-child{grid-column:1/-1}}

.tm-story{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(28px,5vw,72px);align-items:start;margin-top:12px}
.tm-chart{position:sticky;top:92px;z-index:5;border:1px solid var(--line-2);border-radius:var(--r);background:#0b0b0e;padding:18px 18px 14px;box-shadow:0 30px 80px -30px rgba(0,0,0,.9)}
.tm-read{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:6px;font-family:var(--mono)}
.tm-read-date{font-size:12.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-2)}
.tm-read b{font-size:clamp(22px,2.4vw,30px);color:#fff;font-weight:700;font-family:var(--display);letter-spacing:-.02em}
.tm-chart svg{display:block;width:100%;height:auto;overflow:visible}
.tm-grid line{stroke:rgba(255,255,255,.07)}
.tm-grid text{fill:var(--muted);font:11px var(--mono)}
.tm-line{fill:none;stroke:var(--red);stroke-width:3.2;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 0 8px rgba(174,31,25,.7))}
.tm-gap{fill:none;stroke:var(--red);stroke-width:2.4;stroke-dasharray:5 7;opacity:.85}
.tm-area{fill:url(#tmFill)}
[data-clip]{transition:width 1.2s var(--ease)}
.tm-grid line{stroke:rgba(255,255,255,.07)}
.tm-dot{opacity:0;transition:opacity .4s .5s}
.tm-dot.on{opacity:1}
.tm-dot circle{fill:#050506;stroke:#ff6b5f;stroke-width:2.4}
.tm-dot text{fill:var(--ink-2);font:11.5px var(--mono)}
.tm-chart-note{font-size:12.5px;line-height:1.45;color:var(--muted);margin:8px 0 0}
.tm-steps{display:flex;flex-direction:column;gap:clamp(56px,12vh,120px);padding:4vh 0 10vh}
.tm-step{opacity:.32;transition:opacity .5s}
.tm-step.on{opacity:1}
.tm-when{font-family:var(--mono);font-size:12.5px;letter-spacing:.16em;text-transform:uppercase;color:#ff6b5f;margin:0 0 8px}
.tm-step h3{font-size:clamp(24px,2.4vw,32px);line-height:1.15;letter-spacing:-.02em;font-weight:800;margin:0 0 14px}
.tm-step p{color:var(--ink-2);margin:0 0 14px}
.tm-fig{margin:20px 0 0}
.tm-fig img{display:block;width:100%;height:auto!important;border-radius:12px;box-shadow:0 0 0 1px var(--line-2)}
.tm-fig.portrait img{max-height:420px;width:auto;max-width:100%}
.tm-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.tm-pair .tm-fig img{aspect-ratio:4/3;object-fit:cover}
@media (max-width:900px){
  .tm-story{grid-template-columns:1fr;gap:20px}
  .tm-chart{top:64px;padding:8px 12px 4px;border-radius:0 0 14px 14px;margin:0 calc(-1 * var(--gutter));border-left:0;border-right:0}
  .tm-read{margin-bottom:0}.tm-read b{font-size:20px}
  .tm-chart-note{display:none}
  .tm-step{opacity:1}
  .tm-steps{gap:56px;padding-top:8px}
}
@media (max-width:520px){.tm-pair{grid-template-columns:1fr}.tm-fig.portrait img{max-height:360px}}

.tm-wide{margin:0 0 clamp(28px,4vw,48px)}
.tm-wide img{display:block;width:100%;height:clamp(220px,34vw,460px);object-fit:cover;object-position:50% 60%;border-radius:var(--r);box-shadow:0 0 0 1px var(--line-2)}
.tm-cards{display:grid;gap:16px;grid-template-columns:repeat(4,1fr)}
.tm-cards .card{padding:26px 24px 24px}
.tm-cards h3{font-size:19px;line-height:1.25;margin:10px 0 10px;font-weight:800}
.tm-cards p{font-size:15.5px;line-height:1.55;color:var(--ink-2);margin:0}
.tm-n{font-family:var(--mono);font-size:12.5px;color:#ff6b5f;letter-spacing:.14em}
@media (max-width:1100px){.tm-cards{grid-template-columns:repeat(2,1fr)}}
@media (max-width:620px){.tm-cards{grid-template-columns:1fr}}

.tm-game{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(28px,5vw,64px);align-items:center;border:1px solid var(--line-2);border-radius:28px;padding:clamp(28px,5vw,64px);background:radial-gradient(90% 120% at 100% 0%,rgba(174,31,25,.28),transparent 60%),var(--bg-1)}
.tm-small{font-size:14px;color:var(--muted);margin:14px 0 0}
.tm-board{border:1px solid var(--line-2);border-radius:var(--r);background:#08080a;padding:10px 0 6px;font-family:var(--mono);box-shadow:0 30px 80px -30px rgba(0,0,0,.9)}
.tm-board-head,.tm-row{display:grid;grid-template-columns:1fr 88px 88px;gap:10px;padding:10px 18px;align-items:center}
.tm-board-head{font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--line)}
.tm-board-head span:not(:first-child),.tm-row b{text-align:right}
.tm-row{border-bottom:1px solid var(--line);font-size:14px}
.tm-row span{color:var(--ink)}
.tm-row b{font-weight:600;transition:color .4s}
.tm-row b[data-bid]{color:var(--ink)}.tm-row b[data-ask]{color:#ff7d72}
.tm-row b.tick{color:#fff;text-shadow:0 0 10px rgba(255,255,255,.6)}
.tm-board-note{font-size:12px;color:var(--muted);margin:8px 18px 4px}
@media (max-width:860px){.tm-game{grid-template-columns:1fr}}
@media (max-width:420px){.tm-board-head,.tm-row{grid-template-columns:1fr 70px 70px;padding:10px 12px;font-size:13px}}

.tm-sources ul{margin:0;padding-left:18px;color:var(--muted);font-size:14px;line-height:1.6;max-width:90ch}
.tm-sources li{margin:0 0 6px}
.tm-sources a{color:var(--ink-2)}
@media (max-width:900px){.tm-grid text,.tm-dot text{font-size:17px}.tm-dot circle{r:7}}
.theme-pill>span{white-space:nowrap}
@media (max-width:520px){.theme-pill img{display:none}.theme-pill{font-size:10.5px;letter-spacing:.1em;padding:5px 5px 5px 12px}.theme-pill .go{font-size:12px}}
@media (max-width:700px){.info-bar-row .key:has(a){display:none}}

/* chart opens with the flower (steps before any price data), then turns into the chart */
.tm-plot{position:relative}
.tm-plot svg>*{transition:opacity .6s var(--ease)}
.tm-chart.is-flower .tm-plot svg>*{opacity:0}
.tm-bloom{position:absolute;left:4%;top:50%;width:92%;height:auto;pointer-events:none;opacity:0;
  transform:translate(-38%,0) scale(.2) scaleX(-1);transform-origin:50% 50%;
  transition:opacity .6s var(--ease),transform .9s var(--ease)}
.tm-chart.is-flower .tm-bloom{opacity:1;transform:translate(0,-50%) scaleX(-1);animation:tmGrow 1.6s var(--ease) both}
@keyframes tmGrow{from{clip-path:inset(0 0 0 100%)}to{clip-path:inset(0 0 0 0)}}
@media (prefers-reduced-motion:reduce){.tm-chart.is-flower .tm-bloom{animation:none}}

/* ---- home: Theme 2027 block (between About and Frames) ---- */
.theme-band{position:relative;display:block;overflow:hidden;isolation:isolate;border-radius:28px;border:1px solid var(--line-2);color:var(--ink);text-decoration:none;
  padding:clamp(28px,4.4vw,56px) clamp(24px,4.4vw,56px) clamp(26px,4vw,48px);
  background:radial-gradient(70% 70% at 60% 55%,rgba(174,31,25,.28),transparent 65%),var(--bg-1);transition:border-color .3s}
.theme-band:hover{border-color:rgba(174,31,25,.7)}
.theme-band::after{content:"";position:absolute;inset:0;z-index:-2;background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);background-size:64px 64px;-webkit-mask-image:radial-gradient(70% 70% at 55% 55%,#000,transparent);mask-image:radial-gradient(70% 70% at 55% 55%,#000,transparent);opacity:.6}
.tb-title{font-size:clamp(30px,5.7vw,82px);line-height:1;letter-spacing:-.035em;font-weight:900;margin:0;color:#fff;white-space:nowrap}
.tb-title span{color:var(--red)}
.tb-tulip{display:block;width:100%;height:auto;margin:clamp(18px,3vw,36px) 0 clamp(14px,2vw,24px);pointer-events:none;
  transform:scaleX(-1);clip-path:inset(0 0 0 100%);transition:clip-path 2.2s cubic-bezier(.3,.7,.2,1);filter:drop-shadow(0 20px 40px rgba(0,0,0,.5))}
.theme-band.grow .tb-tulip{clip-path:inset(0 0 0 0);animation:tbSway 9s ease-in-out 2.2s infinite alternate}
@keyframes tbSway{from{transform:scaleX(-1) rotate(0deg)}to{transform:scaleX(-1) rotate(-1deg)}}
.tb-foot{display:flex;align-items:center}
.tb-sub{font-size:clamp(16px,1.35vw,19px);line-height:1.55;color:var(--ink-2);max-width:64ch;margin:0}
.tb-go{flex:none;display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:999px;background:var(--red);color:#fff;font-weight:700;font-size:15px;box-shadow:0 10px 40px -8px var(--red-glow);transition:background .2s,transform .2s}
.theme-band:hover .tb-go{background:var(--red-hover);transform:translateY(-2px)}
@media (max-width:560px){.tb-title{white-space:normal;font-size:40px;line-height:1.02}.tb-tulip{width:116%;margin-left:-8%}}
@media (prefers-reduced-motion:reduce){.tb-tulip{clip-path:none;transition:none}.theme-band.grow .tb-tulip{animation:none}}

/* home fold: info bar + partners sit a little higher (16 Nov) */
@media (min-width:701px){.fold{min-height:calc(100vh - 56px);min-height:calc(100svh - 56px)}}

/* theme block: "About the theme" = full-width bar flush with the panel's bottom edge */
.theme-band{padding-bottom:0}
.tb-foot{display:block;margin:0 calc(-1 * clamp(24px,4.4vw,56px))}
.tb-go{display:flex;justify-content:center;width:100%;border-radius:0;padding:20px 24px;font-size:16px;box-shadow:none}
.theme-band:hover .tb-go{transform:none}
.tb-tulip{margin-bottom:clamp(18px,3vw,36px)}
.theme-band{cursor:pointer;transition:border-color .3s,transform .35s var(--ease),box-shadow .35s}
.theme-band:hover{transform:translateY(-3px);box-shadow:0 24px 60px -24px rgba(174,31,25,.55)}
.theme-band:hover .tb-go{background:var(--red-hover)}
.theme-band:focus-visible{outline:2px solid #fff;outline-offset:4px}
@media (hover:none){.theme-band:hover{transform:none}}

/* header the same on every page (16 Nov): agenda + portal used to force a solid 64px bar */
@media (min-width:961px){#aicSiteHeader.tf-scrollhdr:not(.scrolled){background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom-color:transparent;height:72px}}

/* header: transparent on every page, at every scroll position, one height (16 Nov) */
#aicSiteHeader,#aicSiteHeader.scrolled,body.tf-solid-header #aicSiteHeader,#aicSiteHeader.tf-scrollhdr{background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-bottom-color:transparent!important;height:72px!important}
@media (max-width:960px){#aicSiteHeader,#aicSiteHeader.scrolled,body.tf-solid-header #aicSiteHeader,#aicSiteHeader.tf-scrollhdr{height:64px!important}}

/* theme block: "About the theme" bar transparent, not red */
.tb-go,.theme-band:hover .tb-go{background:transparent;color:#fff;border-top:1px solid var(--line-2);box-shadow:none}
.theme-band:hover .tb-go{background:rgba(255,255,255,.05)}
/* transparent look, but page text fades out under the menu instead of colliding with it */
#aicSiteHeader,#aicSiteHeader.scrolled,body.tf-solid-header #aicSiteHeader,#aicSiteHeader.tf-scrollhdr{background:linear-gradient(180deg,rgba(5,5,6,.94) 0%,rgba(5,5,6,.78) 55%,rgba(5,5,6,0) 100%)!important}
@media (max-width:960px){#aicSiteHeader.open{background:rgba(5,5,6,.97)!important}}

/* the fade background must not repeat into a border strip (drew a 1px dark line) */
#aicSiteHeader,#aicSiteHeader.scrolled,body.tf-solid-header #aicSiteHeader,#aicSiteHeader.tf-scrollhdr{border-bottom-width:0!important}
/* 3D candles: load with the page, fade in instead of popping in */
[data-candles] canvas{animation:tfCandlesIn .9s ease both}
@keyframes tfCandlesIn{from{opacity:0}to{opacity:1}}
/* header type set on the header itself, so a page's own body styles cannot change the menu or Sign up size */
#aicSiteHeader{font-family:'Chivo',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:17px;line-height:1.6}
#aicSiteHeader .sh-menu a{line-height:1.6}

/* story: text left and larger, chart right and smaller (17 Nov) */
@media (min-width:901px){
  .tm-story{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:clamp(36px,5vw,80px)}
  .tm-steps{order:1}
  .tm-chart{order:2;top:110px;padding:14px 14px 10px}
  .tm-step h3{font-size:clamp(28px,2.7vw,38px)}
  .tm-step p{font-size:19.5px;line-height:1.65}
  .tm-when{font-size:13.5px}
  .tm-read b{font-size:clamp(20px,2vw,26px)}
  .tm-chart-note{font-size:12px}
}

/* phones: chart is a plain block above the story, drawn in full, nothing sticky or animated (it jittered on iOS) */
@media (max-width:900px){
  .tm-chart{position:relative!important;top:auto!important;margin:0 0 8px!important;border-radius:var(--r-sm)!important;border:1px solid var(--line-2)!important;box-shadow:none!important;padding:12px 12px 10px!important}
  .tm-chart .tm-bloom{display:none}
  .tm-chart .tm-plot svg>*,[data-clip],.tm-dot{transition:none!important}
  .tm-chart-note{display:block!important;font-size:12px}
  .tm-step{opacity:1!important}
}

/* phones, tidy (17 Nov): pictures centred and capped, captions centred, fact boxes equal */
@media (max-width:900px){
  .tm-hero>.wrap{gap:28px}
  .tm-frame{justify-self:center;width:min(300px,76%);text-align:center}
  .tm-frame img{aspect-ratio:3/4;max-height:none}
  .tm-fig{text-align:center}
  .tm-fig img,.tm-fig.portrait img{margin:0 auto;width:auto;max-width:100%;max-height:360px}
  .tm-pair .tm-fig img{width:100%;max-height:260px}
  figcaption,.cap{text-align:center;margin-left:auto;margin-right:auto;max-width:34ch}
  .tm-facts{gap:10px}
  .tm-fact{padding:16px 14px 14px;display:flex;flex-direction:column}
  .tm-fact b{font-size:24px}
  .tm-fact span{font-size:14px}
  .tm-wide img{height:auto;aspect-ratio:3/2}
  .tm-step h3{font-size:25px}
  .tm-steps{gap:48px;padding:8px 0 24px}
  .tulip-rule img{width:110px}
}
@media (max-width:520px){.tm-hero h1{font-size:60px}.tm-hero .lead{font-size:17px}}

/* phones (17 Nov): partner logos always inside their white card; footer word full width and centred */
@media (max-width:700px){
  .partner-grid a{overflow:hidden}
  .partner-grid img{max-height:calc(100% - 4px)}
  .partner-grid a.tall{padding-top:6px;padding-bottom:6px}
  .partner-grid a.tall img{height:100%;width:auto;max-height:100%}
  .ft-word{display:block;width:100%;text-align:center;font-size:12.2vw;letter-spacing:-.045em;padding:0;margin:0 0 32px}
}

/* pictures shown whole, never cropped (17 Nov) */
.tm-pair.keep{align-items:start}
.tm-pair.keep .tm-fig img,.tm-pair.keep .tm-fig img[width]{aspect-ratio:auto;object-fit:contain;height:auto!important;width:100%;max-height:none}
@media (max-width:900px){.tm-pair.keep .tm-fig img{width:auto;max-width:100%;max-height:420px;margin:0 auto}}
