/* /tools/ banner: the words on the left, a studio window playing through every tool on the right (tools/reel.js) */
.treel { --ink-2: #8d8d90; --line: #ffffff1a; --ease: cubic-bezier(.22, 1, .36, 1); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; height: 380px; margin-bottom: 32px; padding: 0 24px 0 56px; border-radius: 32px; overflow: hidden; isolation: isolate; color: #fff; background: #0b0b0d; box-shadow: inset 0 0 0 1px #ffffff12; }
.treel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 78% 40%, #23242b 0%, #0b0b0d 62%), radial-gradient(40% 60% at 8% 100%, #ff5a1f1f 0%, #ff5a1f00 70%); }
.treel::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; background-image: radial-gradient(#ffffff14 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(70% 70% at 70% 45%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 70% 45%, #000, transparent); }

/* the words */
.treel__t { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.treel__t > .treel__h { margin-top: 16px; }
.treel__t > .treel__acts { margin-top: 32px; }
.treel__k { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 10px; border-radius: 999px; font-size: 14px; line-height: 20px; background: #ffffff0f; box-shadow: inset 0 0 0 1px var(--line); }
.treel__k { padding-left: 12px; }
.treel__k i { width: 6px; height: 6px; border-radius: 50%; background: #ff5a1f; box-shadow: 0 0 8px #ff5a1f; animation: treel-blink 2.4s ease-in-out infinite; }
@keyframes treel-blink { 50% { opacity: .35; } }
.treel__h { margin: 0; font-size: 48px; line-height: 1; font-weight: 400; letter-spacing: -.04em; }
.treel__h span { display: block; color: var(--ink-2); }
.treel__m { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.treel__m li { display: inline-flex; align-items: baseline; gap: 6px; }
.treel__m b { font-weight: 400; color: #fff; }
.treel__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.treel__new { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; font-size: 16px; line-height: 1; white-space: nowrap; transition: transform .3s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease); }
/* Get unlimited access: the Inspiration banner's button (aw-plus.css .ibn__go), with the colour light round it (glow.js) */
.treel .treel__go:not(#_) { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; background: #0a0a0b !important; color: #fff !important; font-family: "Neue Montreal", Arial, sans-serif; font-size: 16px; letter-spacing: -.02em; text-decoration: none; box-shadow: 0 1px 2px #0a0a0b26, 0 12px 24px -12px #0a0a0b66, inset 0 0 0 1px #ffffff1f !important; transition: transform .5s cubic-bezier(.32, .72, 0, 1), background-color .2s; }
.treel .treel__go:not(#_):hover { background: #1a1a1c !important; transform: translateY(-2px); }
.treel .treel__go:not(#_):active { transform: scale(.96); }
.treel .treel__go .btn__ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s cubic-bezier(.32, .72, 0, 1); }
.treel .treel__go:hover .btn__ic { transform: translate(2px, -2px); }
.treel__acts { gap: 12px; align-items: center; }
.treel__new { color: #fff; background: #ffffff0f; box-shadow: inset 0 0 0 1px var(--line); padding-left: 6px; }
.treel__new i { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; font-style: normal; font-size: 13px; color: #0a0a0b; background: #fff; }
.treel__new svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (hover: hover) { .treel__new:hover { transform: translateY(-2px); background: #ffffff1a; } }

/* the window: the same glass as the studios */
.treel__win { position: relative; width: 560px; min-width: 0; }
.tw { position: relative; display: grid; grid-template-rows: 44px minmax(0, 1fr) 44px; height: 332px; border-radius: 20px; overflow: hidden; background: #161617; box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -32px #000, 0 0 0 1px #00000066; }
.tw__bar { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px; border-bottom: 1px solid #ffffff0f; }
.tw__ic { flex: none; width: 28px; height: 28px; border-radius: 8px; background: #222 center 30% / cover; box-shadow: 0 0 0 1px #ffffff1f; transition: background-image .3s; }
.tw__t { display: flex; flex-direction: column; min-width: 0; }
.tw__t b { font-weight: 400; font-size: 15px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw__t small { font-size: 12px; line-height: 16px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw__exp { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 14px; color: #0a0a0b; background: #fff; transition: transform .2s var(--ease), background-color .2s; }
.tw__exp svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.tw__exp.is-press { transform: scale(.92); background: #e8e8e6; }
.tw__body { display: grid; grid-template-columns: minmax(0, 1fr) 160px; min-height: 0; }
.tw__stage { position: relative; min-height: 0; overflow: hidden; background: #0a0a0b; }
.tw__insp { padding: 12px 14px; overflow: hidden; border-left: 1px solid #ffffff0f; }
.tw__h { margin: 0 0 10px; font-size: 14px; line-height: 20px; }
.tw__ctl { display: flex; flex-direction: column; gap: 14px; }
.tw__ctl.is-in > * { animation: tw-in .5s var(--ease) both; }
.tw__ctl.is-in > :nth-child(2) { animation-delay: .05s; } .tw__ctl.is-in > :nth-child(3) { animation-delay: .1s; }
@keyframes tw-in { from { opacity: 0; transform: translateY(6px); } }

/* the settings, drawn like the studios' */
.tc { display: flex; flex-direction: column; gap: 8px; }
.tc__l { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 16px; color: var(--ink-2); white-space: nowrap; }
.tc__l em { font-style: normal; color: #fff; }
.tc__tr { position: relative; height: 18px; }
.tc__tr::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: #ffffff1f; }
.tc__f { position: absolute; left: 0; top: 7px; height: 4px; width: calc(var(--v, .05) * 100%); border-radius: 2px; background: #fff; }
.tc__th { position: absolute; top: 0; left: calc(var(--v, .05) * 100% - 9px); width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px #0007; transition: box-shadow .25s var(--ease); }
.tc.is-drag .tc__th { box-shadow: 0 2px 6px #0007, 0 0 0 6px #ffffff1a; }
.tc__seg { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); height: 30px; padding: 3px; border-radius: 999px; background: #ffffff0f; isolation: isolate; }
.tc__seg::before { content: ""; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n)); border-radius: 999px; background: #fff; translate: calc(100% * var(--i, 0)) 0; transition: translate .45s var(--ease); }
.tc__seg b { display: grid; place-items: center; font-weight: 400; font-size: 12px; color: #fff; transition: color .3s var(--ease); white-space: nowrap; overflow: hidden; }
.tc__seg b.is-on { color: #0a0a0b; }
.tc__sw { display: flex; gap: 8px; }
.tc__sw i { position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px #ffffff26; }
.tc__sw i.is-none { background: repeating-conic-gradient(#2a2a2c 0 25%, #1b1b1c 0 50%) 0 0 / 8px 8px; }
.tc__sw i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 1.5px transparent; transition: box-shadow .3s var(--ease); }
.tc__sw i.is-on::after { box-shadow: 0 0 0 1.5px #fff; }
.tc--tog { flex-direction: row; align-items: center; justify-content: space-between; }
.tc__tog { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: #ffffff26; transition: background-color .3s var(--ease); }
.tc__tog i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: translate .35s var(--ease); }
.tc--tog.is-on .tc__tog { background: #34c759; } .tc--tog.is-on .tc__tog i { translate: 14px 0; }
.tc--tog .tc__l { white-space: normal; }

/* the hand */
.tw__cur { position: absolute; z-index: 5; left: 0; top: 0; width: 20px; height: 20px; margin: -3px 0 0 -4px; pointer-events: none; transition: transform 0s; filter: drop-shadow(0 2px 3px #0009); will-change: transform; }
.tw__cur svg { width: 100%; height: 100%; fill: #fff; stroke: #0a0a0b; stroke-width: 1.2; stroke-linejoin: round; }

/* what you get */
.tw__get { position: absolute; z-index: 4; left: 50%; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 8px; border-radius: 999px; font-size: 13px; white-space: nowrap; color: #fff; background: #161617cc; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; translate: -50% 8px; scale: .96; transition: opacity .35s var(--ease), translate .45s var(--ease), scale .45s var(--ease); }
.tw__get b { font-weight: 400; }
.tw__get svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; fill: none; stroke: #0a0a0b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; background: #34c759; }
.tw__get.is-on { opacity: 1; translate: -50% 0; scale: 1; }

/* the rail of tools, with the turn's progress */
.tw__rail { display: flex; align-items: center; gap: 4px; padding: 0 8px; border-top: 1px solid #ffffff0f; overflow-x: auto; scrollbar-width: none; }
.tw__rail::-webkit-scrollbar { display: none; }
.tw__rail button { position: relative; flex: 1 1 0; min-width: max-content; height: 28px; padding: 0 10px; border: 0; border-radius: 999px; overflow: hidden; font: inherit; font-size: 13px; color: var(--ink-2); background: #ffffff0a; cursor: pointer; transition: color .3s var(--ease), background-color .3s var(--ease); }
.tw__rail button span { position: relative; z-index: 1; white-space: nowrap; }
.tw__rail button i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: #ffffff14; }
.tw__rail button.is-on { color: #fff; background: #ffffff14; }
@media (hover: hover) { .tw__rail button:hover { color: #fff; } }

/* the scenes */
.ts { position: absolute; inset: 0; opacity: 0; scale: 1.03; transition: opacity .55s var(--ease), scale .9s var(--ease); }
.ts.is-on { opacity: 1; scale: 1; }
.ts img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ts__tag { position: absolute; top: 12px; z-index: 2; height: 24px; padding: 0 10px; border-radius: 999px; font-style: normal; font-size: 12px; line-height: 24px; color: #fff; background: #0a0a0b99; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ts__tag--l { left: 12px; } .ts__tag--r { right: 12px; }
.ts__ln { position: absolute; z-index: 2; top: 0; bottom: 0; left: calc(var(--k, 0) * 100%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px #fff8; }
/* enhancer: the sharp picture wipes over the soft one */
.ts--upscale .ts__lo { filter: blur(6px) saturate(.75) contrast(.9); scale: 1.04; }
.ts--upscale .ts__hi { clip-path: inset(0 calc((1 - var(--k, 0)) * 100%) 0 0); }
/* effects: fluted glass grows in */
.ts__rib { position: absolute; inset: 0; --rw: calc(10px + var(--k, 0) * 16px); opacity: calc(.2 + var(--k, 0) * .8); background: repeating-linear-gradient(90deg, #ffffff33 0, #ffffff00 calc(var(--rw) * .35), #00000000 calc(var(--rw) * .6), #00000040 var(--rw)); -webkit-backdrop-filter: blur(calc(var(--k, 0) * 6px)); backdrop-filter: blur(calc(var(--k, 0) * 6px)); }
.ts--glass::after { content: ""; position: absolute; inset: 0; background: var(--tint, #fff); mix-blend-mode: multiply; transition: background-color .6s var(--ease); }
/* relighting: a pool of light that grows and travels */
.ts--reluma .ts__dk { filter: brightness(.3) saturate(.6); }
.ts--reluma .ts__lit { filter: brightness(1.2) saturate(1.05); -webkit-mask: radial-gradient(circle at var(--lx, 30%) var(--ly, 40%), #000 0, #000 calc(4% + var(--k, 0) * 10%), transparent calc(16% + var(--k, 0) * 28%)); mask: radial-gradient(circle at var(--lx, 30%) var(--ly, 40%), #000 0, #000 calc(4% + var(--k, 0) * 10%), transparent calc(16% + var(--k, 0) * 28%)); }
.ts__glow { position: absolute; inset: 0; mix-blend-mode: soft-light; background: radial-gradient(circle at var(--lx, 30%) var(--ly, 40%), #ffd9b0 0, transparent calc(14% + var(--k, 0) * 24%)); opacity: calc(var(--k, 0) * .9); }
/* remover: the background goes, the cutout sits on a checkerboard, then on a colour */
.ts__chk { position: absolute; inset: 0; background: var(--bg, transparent); transition: background-color .5s var(--ease); }
.ts__chk::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(#2a2a2c 0 25%, #1b1b1c 0 50%) 0 0 / 20px 20px; opacity: var(--chk, 1); transition: opacity .5s var(--ease); }
.ts--remover .ts__orig { clip-path: inset(0 0 0 calc(var(--k, 0) * 100%)); }
.ts--remover .ts__cut { object-fit: cover; }
/* ascii: the photo dissolves into characters */
.ts--ascii .afx { position: absolute; inset: 0; }
.ts--ascii .ts__ph { opacity: calc(1 - var(--k, 0) * 1.1); }
/* text */
.ts--text .tfx { position: absolute; inset: 0; }
.ts--text .tfx__line { font-size: 34px; }
/* Timestack: the slices spread with the drag */
.ts--timestack .tsx { animation: none; --tsx-gap: calc(var(--k, 0) * 22px); }
/* 3D */
.ts__3d { position: absolute; inset: 0; display: block; background: radial-gradient(70% 80% at 50% 45%, #2a2b31 0%, #0b0b0d 75%); }

/* tablets and phones: the words on top, the window under them; on a phone the settings fold away */
@media (max-width: 1099px) { .treel { height: auto; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 32px 32px; } .treel__win { width: 100%; max-width: 640px; } .tw { height: auto; grid-template-rows: 44px auto 44px; } .tw__stage { aspect-ratio: 4 / 3; } }
@media (max-width: 599px) {
  .treel { padding: 28px 16px 16px; border-radius: 24px; gap: 24px; }
  .treel__h { font-size: 36px; }
  .treel__t > .treel__acts { margin-top: 24px; }
  .tw__body { grid-template-columns: minmax(0, 1fr); }
  .tw__insp { padding: 12px 14px 14px; border-left: 0; border-top: 1px solid #ffffff0f; }
  .tw__h { display: none; }
  .tw__ctl .tc:not(.is-drag) { display: none; }
  .tw__exp span { display: none; } .tw__exp { width: 28px; padding: 0; justify-content: center; }
  .tw__rail button { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .ts, .tw__get, .tc__seg::before { transition: none; } .tw__ctl.is-in > * { animation: none; } }

/* ---------- 26 Nov: the film of the real studios replaces the drawn window ----------
   the card sits 40px from the banner's right, top and bottom edges */
.treel { padding-right: 40px; }
/* the banner is 448px tall from 1100px up (shell.css): the card is 80px shorter, so 40px above, below and right */
.treel__win { width: auto; height: 368px; aspect-ratio: 1280 / 722; align-self: center; }
.tv { position: relative; width: 100%; height: 100%; border-radius: 20px; overflow: hidden; background: #0a0a0b; box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px #000; }
.tv__v { display: block; width: 100%; height: 100%; object-fit: cover; }
.tv::after { content: ""; position: absolute; inset: auto 0 0; height: 64px; background: linear-gradient(#0a0a0b00, #0a0a0bcc); pointer-events: none; }
.tv__rail { position: absolute; z-index: 1; left: 8px; right: 8px; bottom: 8px; display: flex; justify-content: center; gap: 2px; padding: 3px; border-radius: 999px; background: #161617b8; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; scrollbar-width: none; }
.tv__rail::-webkit-scrollbar { display: none; }
.tv__rail button { flex: none; height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: #8d8d90; font: inherit; font-size: 12px; cursor: pointer; transition: background-color .25s, color .25s; }
.tv__rail button.is-on { background: #fff; color: #0a0a0b; }
@media (hover: hover) { .tv__rail button:not(.is-on):hover { color: #fff; } }
@media (max-width: 1099px) { .treel { padding-right: 32px; } .treel__win { width: 100%; max-width: 640px; height: auto; } }
@media (max-width: 599px) { .treel { padding-right: 16px; } .tv { border-radius: 16px; } .tv__rail { justify-content: flex-start; } }
/* the moving smoke covers the whole banner; the old still gradient and dots step aside */
.treel__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; pointer-events: none; }
.treel.has-bg::before, .treel.has-bg::after { display: none; }
