/* ==========================================================
   Tarik Thinking: two cups. Amber is the human cup, cyan the AI cup,
   froth is what you get when they pull together.
   Builds on the tokens in main.css.
   ========================================================== */

:root {
	--tea: #E9A35A;
	--tea-deep: #7A4318;
	--froth: #F6E6CB;
	--human: var(--amber);
	--ai: var(--cyan);
	--tarik: linear-gradient(100deg, var(--human) 0%, var(--froth) 50%, var(--ai) 100%);
}

.eyebrow--amber { color: var(--human); }
.eyebrow--amber::before { background: var(--human); box-shadow: 0 0 12px var(--human); }
.tarik-text { background: var(--tarik); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-link { font-weight: 600; }

/* ---------- The pour ---------- */
.pour { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; justify-self: center; border-radius: var(--radius-l); border: 1px solid var(--line-2); overflow: hidden;
	background: radial-gradient(60% 50% at 30% 45%, rgba(255, 181, 71, 0.16), transparent 70%), radial-gradient(55% 50% at 72% 60%, rgba(53, 227, 255, 0.13), transparent 70%), #04060D;
	box-shadow: 0 50px 120px -60px rgba(255, 181, 71, 0.45); }
.pour__canvas { display: block; width: 100%; height: 100%; }
.pour__count { position: absolute; top: 1rem; left: 1.1rem; font: 500 0.72rem/1 var(--f-mono); letter-spacing: 0.14em; color: var(--ink-3); }
.pour__tag { position: absolute; bottom: 1rem; font: 500 0.72rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.pour__tag--human { left: 1.1rem; color: var(--human); }
.pour__tag--ai { right: 1.1rem; color: var(--ai); }

/* ---------- Idea brain hero ---------- */
.tt-hero { padding: clamp(2rem, 1.5rem + 3vw, 4rem) 0 0; }
.tt-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }
.tt-hero__copy { min-width: 0; }
.tt-hero__title { max-width: 16ch; }
.tt-hero__stats { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.tt-hero__stats li { display: grid; color: var(--ink-2); font-size: var(--step--1); }
.tt-hero__stats b { font: 700 var(--step-3)/1.1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
	.tt-hero__grid { grid-template-columns: 1fr; }
	.tt-hero .pour { max-width: 420px; }
}

.tt-todo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); border: 1px solid var(--line-2); border-radius: var(--radius-m); overflow: hidden; background: var(--line-2); }
.tt-todo a { display: grid; gap: 0.3rem; align-content: start; padding: 1.15rem 1.3rem; background: var(--bg-2); color: var(--ink-2); text-decoration: none; font-size: 0.95rem; line-height: 1.45; transition: background .2s ease; }
.tt-todo a:hover { background: var(--bg-3); color: var(--ink-2); }
.tt-todo strong { font: 700 var(--step-1)/1.2 var(--f-display); color: var(--ink); }
.tt-todo strong span { color: var(--human); }
.tt-todo__time { font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--human); }
@media (max-width: 720px) { .tt-todo { grid-template-columns: 1fr; } }

/* ---------- The Tarik Bar ---------- */
.bar-tools { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
.bar-tools__row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.bar-tools__find { flex: 1 1 240px; max-width: 420px; min-height: 44px; padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(5, 7, 15, 0.7); color: var(--ink); font: 400 1rem/1 var(--f-body); }
.bar-tools__find:focus { outline: none; border-color: var(--human); box-shadow: 0 0 0 1px rgba(255, 181, 71, 0.4), 0 0 24px -6px rgba(255, 181, 71, 0.6); }
.bar-tools__view { min-height: 44px; }
.bar-tools__chips { margin: 0; }
.bar-tools__chips button { display: inline-flex; align-items: center; gap: 0.4rem; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lobe); box-shadow: 0 0 8px var(--lobe); }
.bar-tools__count { margin: 0; font: 500 0.75rem/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

.cup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: var(--gap); align-items: start; }
.cup-card { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1rem; padding: 1.15rem 1.15rem 1.1rem; border-radius: var(--radius-m); background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .2s ease, transform .2s ease; scroll-margin-top: 6rem; }
.cup-card:hover { border-color: var(--line-2); }
.cup-card:target { border-color: var(--human); box-shadow: 0 0 0 1px rgba(255, 181, 71, 0.4); }
.cup-card__glass { padding-top: 0.2rem; }
.cup-glass { width: 56px; height: 76px; }
.cup-glass--cold { opacity: 0.55; filter: grayscale(0.6); }
.cup-card__body { min-width: 0; padding-right: 3.6rem; display: grid; gap: 0.4rem; align-content: start; }
.cup-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: center; margin: 0; }
.cup-card__title { margin: 0; font-size: 1.12rem; line-height: 1.25; letter-spacing: -0.01em; }
.cup-card__title a { color: var(--ink); text-decoration: none; }
.cup-card__title a:hover { color: #fff; text-decoration: underline; }
.cup-card__text { margin: 0; color: var(--ink-2); font-size: 0.94rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cup-card .twists { margin: 0.2rem 0 0; }
.cup-card .twists:empty { display: none; }
.cup-card__actions { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: center; margin-top: 0.3rem; font: 500 0.8rem/1.2 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.cup-card__actions a, .cup-card__pull { color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 0.3rem 0; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.cup-card__actions a:hover, .cup-card__pull:hover { color: #fff; }
.cup-card__try { color: var(--green) !important; }
.cup-card__pull { color: var(--human); }
.cup-card .build-on { grid-column: 1 / -1; margin-top: 0.2rem; }
.cup-card .vote { position: absolute; top: 1rem; right: 1rem; }
.cup-card .vote__btn { width: 52px; min-height: 58px; }
.cup-card .vote__btn:not(.is-voted):hover { border-color: var(--human); color: var(--human); box-shadow: 0 0 0 1px rgba(255, 181, 71, 0.35), 0 0 24px -6px rgba(255, 181, 71, 0.6); }
@media (max-width: 420px) { .cup-card { grid-template-columns: 44px minmax(0, 1fr); gap: 0.75rem; } .cup-glass { width: 44px; height: 60px; } }

.bar-more { display: flex; margin: 1.75rem auto 0; }
.bar-more[hidden] { display: none; }
.brain-view { margin-bottom: 1.5rem; }
.brain-view__hint { color: var(--ink-2); max-width: 70ch; }

/* ---------- The Tarik Machine ---------- */
.machine-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
@media (max-width: 960px) { .machine-grid { grid-template-columns: 1fr; } }
.machine { border-radius: var(--radius-l); border: 1px solid rgba(255, 181, 71, 0.35); background: linear-gradient(180deg, rgba(255, 181, 71, 0.07), transparent 40%), var(--panel-solid); padding: clamp(1.1rem, 0.8rem + 1.5vw, 2rem); scroll-margin-top: 5rem; min-width: 0; }
.machine__steps { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; counter-reset: ms; }
.machine__steps li { counter-increment: ms; padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--line-2); font: 500 0.72rem/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.machine__steps li::before { content: counter(ms) " "; }
.machine__steps li.is-now { color: var(--froth); border-color: var(--human); background: rgba(255, 181, 71, 0.1); }
.machine__steps li.is-done { color: var(--green); border-color: rgba(62, 240, 161, 0.4); }
.machine__body { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 1.5rem; align-items: start; }
.machine__main { display: grid; gap: 1rem; min-width: 0; }
.machine__main h3 { margin: 0; font-size: var(--step-2); }
.machine__main h3:focus { outline: none; }
.machine__main .field { margin: 0; }
.machine__who { margin: 0.4rem 0 -0.5rem; font: 500 0.72rem/1.2 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.machine__who--human { color: var(--human); }
.machine__who--ai { color: var(--ai); }
.machine__who--both { background: var(--tarik); -webkit-background-clip: text; background-clip: text; color: transparent; }
.machine__brew { margin: 0; color: var(--ink-2); padding-left: 0.8rem; border-left: 2px solid var(--human); }
.machine__note { margin: 0; color: var(--ink-3); font-size: var(--step--1); }
.machine__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.machine__actions .btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }
.machine__prompt { font: 400 0.82rem/1.5 var(--f-mono) !important; min-height: 150px !important; }
.machine__gauge { display: grid; justify-items: center; gap: 0.5rem; position: sticky; top: 6rem; }
.machine__gauge canvas { width: 120px; height: 170px; }
.machine__gauge p { margin: 0; text-align: center; font: 500 0.7rem/1.5 var(--f-mono); letter-spacing: 0.06em; color: var(--ink-3); }
@media (max-width: 640px) {
	.machine__body { grid-template-columns: 1fr; }
	.machine__gauge { order: -1; position: static; grid-template-columns: auto 1fr; justify-items: start; align-items: center; }
	.machine__gauge canvas { width: 60px; height: 85px; }
	.machine__gauge p { text-align: left; }
}

.angles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
@media (max-width: 560px) { .angles { grid-template-columns: 1fr; } }
.angle { display: grid; gap: 0.25rem; text-align: left; padding: 0.8rem 0.95rem; border-radius: 14px; border: 1px solid rgba(53, 227, 255, 0.28); background: rgba(53, 227, 255, 0.05); color: var(--ink); font: 400 0.95rem/1.4 var(--f-body); cursor: pointer; transition: all .15s ease; }
.angle small { font: 500 0.68rem/1.2 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ai); }
.angle:hover { border-color: var(--ai); }
.angle[aria-pressed="true"] { border-color: var(--human); background: rgba(255, 181, 71, 0.12); box-shadow: 0 0 0 1px rgba(255, 181, 71, 0.35); }
.angle[aria-pressed="true"] small { color: var(--human); }
.angle[aria-pressed="true"] small::after { content: " · kept"; }

.proto { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.25rem; align-items: start; padding: 1.1rem; border: 1px dashed var(--line-2); border-radius: var(--radius-m); background: rgba(5, 7, 15, 0.5); }
@media (max-width: 560px) { .proto { grid-template-columns: 1fr; } .proto__phone { max-width: 220px; } }
.proto__phone { display: grid; gap: 0.5rem; padding: 0.9rem; border-radius: 22px; border: 1px solid var(--line-2); background: var(--bg-2); }
.proto__phone b { font: 700 1.05rem/1.2 var(--f-display); }
.proto__notch { width: 40%; height: 5px; border-radius: 4px; background: var(--line-2); justify-self: center; }
.proto__line { height: 9px; border-radius: 5px; background: var(--line-2); }
.proto__btn { padding: 0.8rem; border-radius: 12px; background: var(--human); color: #1A0E03; font-weight: 700; text-align: center; font-size: 0.92rem; }
.proto__spec { margin: 0; display: grid; gap: 0.55rem; }
.proto__spec div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.75rem; }
.proto__spec dt { font: 500 0.7rem/1.6 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.proto__spec dd { margin: 0; font-size: 0.95rem; }
@media (max-width: 420px) { .proto__spec div { grid-template-columns: 1fr; gap: 0.1rem; } }

.machine-send .slip { scroll-margin-top: 5rem; }
.machine-send .idea-form.is-filled { border-color: var(--human); box-shadow: 0 0 0 1px rgba(255, 181, 71, 0.4), 0 30px 60px -40px rgba(255, 181, 71, 0.7); }

.tt-toast { position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 90; transform: translate(-50%, 1rem); padding: 0.7rem 1.2rem; border-radius: 999px; background: var(--froth); color: #1A0E03; font-weight: 600; font-size: 0.95rem; opacity: 0; pointer-events: none; transition: all .25s ease; max-width: calc(100% - 2rem); text-align: center; }
.tt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Five pulls strip ---------- */
.pull-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; }
.pull-strip__item { display: grid; gap: 0.4rem; align-content: start; padding: 1.1rem; border-radius: var(--radius-m); background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--cup-c, var(--human)); }
.pull-strip__item--human { --cup-c: var(--human); }
.pull-strip__item--ai { --cup-c: var(--ai); }
.pull-strip__item--both { --cup-c: var(--froth); }
.pull-strip__item h3 { margin: 0; font-size: var(--step-1); }
.pull-strip__item p { margin: 0; color: var(--ink-2); font-size: 0.92rem; line-height: 1.45; }
.pull-strip__n, .pull-strip__cup, .pull-strip__stage { font: 500 0.68rem/1.3 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.pull-strip__n { color: var(--ink-3); }
.pull-strip__cup { color: var(--cup-c); }
.pull-strip__stage { color: var(--ink-3); margin-top: 0.3rem; }
.pull-strip__more { margin: 1.5rem 0 0; }
@media (max-width: 1000px) { .pull-strip { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); } }

/* ---------- The method page ---------- */
.tm-hero { padding: clamp(2rem, 1.5rem + 3vw, 4.5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem); }
.tm-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }
.tm-hero__title { font-size: clamp(3rem, 2rem + 6vw, 6.4rem); line-height: 0.95; letter-spacing: -0.045em; margin-bottom: 1.25rem; }
.tm-define { font: 500 var(--step-2)/1.35 var(--f-display); letter-spacing: -0.01em; color: var(--ink); max-width: 30ch; }
.tm-define b { color: var(--froth); }
.tm-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
@media (max-width: 860px) { .tm-hero__grid { grid-template-columns: 1fr; } .tm-hero .pour { max-width: 420px; } }

.tm-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.tm-why div { display: grid; gap: 0.4rem; align-content: start; }
.tm-why h3 { margin: 0; font-size: var(--step-1); }
.tm-why p { margin: 0; color: var(--ink-2); }
.tm-why span { font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--human); }
@media (max-width: 900px) { .tm-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tm-why { grid-template-columns: 1fr; } }

.tm-cups { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 720px) { .tm-cups { grid-template-columns: 1fr; } }
.tm-cup { padding: clamp(1.2rem, 1rem + 1vw, 1.8rem); border-radius: var(--radius-l); border: 1px solid var(--line); }
.tm-cup--human { background: linear-gradient(180deg, rgba(255, 181, 71, 0.12), transparent 70%), var(--panel-solid); border-color: rgba(255, 181, 71, 0.35); }
.tm-cup--ai { background: linear-gradient(180deg, rgba(53, 227, 255, 0.1), transparent 70%), var(--panel-solid); border-color: rgba(53, 227, 255, 0.3); }
.tm-cup h3 { font-size: var(--step-2); margin-bottom: 0.25rem; }
.tm-cup--human h3 { color: var(--human); }
.tm-cup--ai h3 { color: var(--ai); }
.tm-cup ul { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--ink-2); display: grid; gap: 0.35rem; }

.tm-tabs__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.tm-tab { display: grid; gap: 0.3rem; text-align: left; padding: 0.9rem 1rem; border-radius: var(--radius-m); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--ink); cursor: pointer; transition: all .15s ease; font: inherit; }
.tm-tab:hover { border-color: var(--line-2); }
.tm-tab[aria-selected="true"] { border-color: var(--cup-c); background: var(--panel-solid); box-shadow: inset 0 3px 0 var(--cup-c); }
.tm-tab small { font: 500 0.68rem/1.2 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.tm-tab strong { font: 700 var(--step-1)/1.15 var(--f-display); }
.tm-tab em { font: 500 0.68rem/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; font-style: normal; color: var(--cup-c); }
.tm-tab--human { --cup-c: var(--human); }
.tm-tab--ai { --cup-c: var(--ai); }
.tm-tab--both { --cup-c: var(--froth); }
@media (max-width: 860px) { .tm-tabs__list { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 0.4rem; } }
.tm-panel { margin-top: 0.75rem; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1rem, 0.5rem + 2vw, 2.5rem); padding: clamp(1.2rem, 1rem + 1.5vw, 2.2rem); border-radius: var(--radius-l); border: 1px solid var(--line-2); background: var(--panel-solid); }
.tm-panel h3 { font-size: var(--step-3); margin-bottom: 0.6rem; }
.tm-panel p { color: var(--ink-2); }
.tm-panel .tm-tip { color: var(--ink); font-style: italic; }
.tm-panel__ex { border-left: 2px solid var(--human); padding-left: 1rem; display: grid; gap: 0.5rem; align-content: start; }
.tm-panel__ex p { margin: 0; }
.tm-panel .stage { margin-top: 0.5rem; }
@media (max-width: 760px) { .tm-panel { grid-template-columns: 1fr; } }
.tm-tabs noscript + .tm-panel, .tm-tabs .tm-panel[hidden] { display: none; }

.tm-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); counter-reset: rule; }
.tm-rules li { counter-increment: rule; display: grid; gap: 0.4rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--line-2); }
.tm-rules li::before { content: "Rule " counter(rule); font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--human); }
.tm-rules h3 { margin: 0; font-size: var(--step-2); }
.tm-rules p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .tm-rules { grid-template-columns: 1fr; } }

.tm-faq { display: grid; gap: 0.6rem; max-width: 820px; }
.tm-faq details { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--panel); padding: 0.2rem 1.2rem; }
.tm-faq summary { cursor: pointer; padding: 0.9rem 0; font: 600 var(--step-1)/1.3 var(--f-display); list-style: none; }
.tm-faq summary::-webkit-details-marker { display: none; }
.tm-faq summary::after { content: "+"; float: right; color: var(--human); }
.tm-faq details[open] summary::after { content: "−"; }
.tm-faq details p { color: var(--ink-2); }

.tm-record { display: grid; gap: 0.75rem; max-width: 760px; padding: clamp(1.2rem, 1rem + 1vw, 1.8rem); border-radius: var(--radius-l); border: 1px dashed rgba(255, 181, 71, 0.45); }
.tm-record > p:last-child, .tm-record .entry-content > :last-child { margin-bottom: 0; }
.tm-record__meta { font: 500 0.72rem/1.4 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--human); margin: 0; }

/* Home page: pull strip replaces the four steps */
.section .pull-strip { margin-top: 2rem; }

/* ==========================================================
   Brain world (Idea brain page): electric, neural, playable.
   ========================================================== */
.ib-hero { padding: clamp(1.75rem, 1.25rem + 2vw, 3rem) 0 0; }
.ib-hero__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 1.25rem; }
.ib-hero__copy { min-width: 0; flex: 1 1 520px; }
.ib-hero__title { max-width: 22ch; margin: 0; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.9rem); }
.ib-hero__stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.ib-hero__stats li { display: grid; font: 500 0.7rem/1.4 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.ib-hero__stats b { font: 700 var(--step-3)/1 var(--f-display); letter-spacing: -0.02em; text-transform: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.brain--hero { height: clamp(560px, 78vh, 820px); }
@media (max-width: 700px) { .brain--hero { height: 82vh; min-height: 560px; } .ib-hero__stats { gap: 1.25rem; } }
.world-brain .tt-todo { border-color: var(--line-2); }
.world-brain .tt-todo__time, .world-brain .tt-todo strong span { color: var(--cyan); }

.brain__hint { position: absolute; z-index: 2; left: 50%; top: 4.1rem; transform: translateX(-50%); display: flex; gap: 0.4rem; margin: 0; pointer-events: none; flex-wrap: wrap; justify-content: center; width: calc(100% - 2rem); transition: opacity .6s ease; }
.brain__hint span { padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(53, 227, 255, 0.08); border: 1px solid rgba(53, 227, 255, 0.25); font: 500 0.7rem/1.2 var(--f-mono); letter-spacing: 0.06em; color: var(--ink-2); white-space: nowrap; }
.brain__panel.is-open ~ .brain__hint, .brain:has(.brain__panel.is-open) .brain__hint { opacity: 0; }
@media (max-width: 700px) { .brain__hint { top: auto; bottom: 3.6rem; } .brain__hint span:last-child { display: none; } }

.brain .hub { cursor: pointer; }
.brain .hub:focus-visible { outline: none; }
.brain .hub:focus-visible circle:not(.hub__glow) { stroke-width: 3; }
.brain .hub.is-ringing circle:not(.hub__glow) { stroke-width: 3.5; }
.brain .hub.is-ringing .hub__glow { opacity: 0.8 !important; transition: opacity .1s; }
.brain .hub .hub__glow { transition: opacity .8s ease; }
.brain .pulse--user { mix-blend-mode: screen; }

/* Sound toggle (both worlds) */
.sound-toggle { display: inline-flex; align-items: center; gap: 0.45rem; }
.sound-toggle__icon { width: 14px; height: 12px; position: relative; flex: none; }
.sound-toggle__icon::before { content: ""; position: absolute; left: 0; top: 3px; width: 5px; height: 6px; background: currentColor; clip-path: polygon(0 0, 40% 0, 100% -50%, 100% 150%, 40% 100%, 0 100%); }
.sound-toggle__icon::after { content: ""; position: absolute; left: 7px; top: 1px; width: 7px; height: 10px; border: 2px solid currentColor; border-left: 0; border-radius: 0 10px 10px 0; transform: scale(0.75); transform-origin: left center; }
.sound-toggle[aria-pressed="false"] .sound-toggle__icon::after { border: 0; width: 8px; height: 2px; background: currentColor; top: 5px; transform: rotate(45deg); border-radius: 0; box-shadow: 0 0 0 0 currentColor; }
.sound-toggle[aria-pressed="false"] { opacity: 0.7; }

/* The idea list: neuron dots you can hear */
.neuron-dot { display: block; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.neuron-dot:focus-visible { outline: 2px solid var(--lobe, var(--cyan)); outline-offset: 2px; }
.neuron-glyph { width: 56px; height: 56px; overflow: visible; transition: transform .2s ease; }
.neuron-dot:hover .neuron-glyph { transform: scale(1.08); }
.neuron-glyph--shelf { opacity: 0.45; filter: grayscale(0.7); }
.cup-card.is-firing { border-color: var(--lobe); box-shadow: 0 0 0 1px var(--lobe), 0 0 40px -10px var(--lobe); }
.cup-card.is-firing .neuron-glyph { animation: fire .7s ease-out; }
.cup-card.is-firing .neuron-glyph__halo { animation: halo .9s ease-out; }
@keyframes fire { 0% { transform: scale(1); } 30% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes halo { 0% { opacity: .45; } 25% { opacity: 1; } 100% { opacity: .45; } }
@media (max-width: 420px) { .neuron-glyph { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .cup-card.is-firing .neuron-glyph, .cup-card.is-firing .neuron-glyph__halo { animation: none; } }

.world-brain .machine { border-color: rgba(53, 227, 255, 0.3); background: linear-gradient(180deg, rgba(53, 227, 255, 0.06), transparent 40%), var(--panel-solid); }
.world-brain .machine__steps li.is-now { color: #fff; border-color: var(--cyan); background: rgba(53, 227, 255, 0.1); }
.world-brain .machine-send .idea-form.is-filled { border-color: var(--cyan); box-shadow: var(--glow-c); }
.world-brain .proto__btn { background: var(--grad); color: #06081A; }
.world-brain .cup-card__pull { color: var(--cyan); }
.lv-cta { margin: 0 0 1rem; }
.lv-cta .btn { width: 100%; justify-content: center; text-align: center; white-space: normal; }

/* ==========================================================
   Guided UI (3.4): numbered guide, labelled action buttons.
   ========================================================== */
.guide { list-style: none; margin: 0 auto 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
@media (max-width: 860px) { .guide { grid-template-columns: 1fr; } }
.guide__step { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 0.35rem 0.85rem; align-items: start; padding: 1rem 1.1rem; border-radius: var(--radius-m); background: var(--panel); border: 1px solid var(--line-2); }
.guide__step--go { border-color: rgba(53, 227, 255, 0.5); background: linear-gradient(135deg, rgba(53, 227, 255, 0.1), rgba(142, 107, 255, 0.1)), var(--panel); }
.guide__n { grid-row: 1 / span 2; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 2px solid var(--cyan); color: var(--cyan); font: 700 1rem/1 var(--f-display); }
.guide__text { display: grid; gap: 0.15rem; min-width: 0; }
.guide__text strong { font: 700 var(--step-1)/1.2 var(--f-display); color: var(--ink); }
.guide__text span { color: var(--ink-2); font-size: 0.93rem; line-height: 1.4; }
.guide__btn { justify-self: start; margin-top: 0.35rem; display: inline-flex; align-items: center; min-height: 40px; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font: 600 0.92rem/1.1 var(--f-display); background: rgba(255, 255, 255, 0.04); transition: all .15s ease; }
.guide__btn:hover { border-color: var(--cyan); color: #fff; box-shadow: var(--glow-c); }
.guide__btn--primary { background: var(--grad); color: #06081A; border: 0; }
.guide__btn--primary:hover { color: #06081A; }

/* Neuron panel: one clear button per action */
.acts { display: grid; gap: 0.5rem; margin: 1rem 0 0.5rem; }
.act { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; width: 100%; padding: 0.7rem 0.85rem; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--ink); text-align: left; text-decoration: none; font: inherit; cursor: pointer; transition: all .15s ease; }
.act:hover { border-color: var(--cyan); color: #fff; background: rgba(53, 227, 255, 0.06); }
.act__icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(255, 255, 255, 0.06); font-size: 0.95rem; }
.act__text { display: grid; gap: 0.1rem; min-width: 0; }
.act__text b { font: 600 0.98rem/1.25 var(--f-display); }
.act__text small { color: var(--ink-3); font-size: 0.8rem; line-height: 1.35; }
.act__count { font: 700 1.1rem/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.act--vote { border-color: rgba(53, 227, 255, 0.55); }
.act--vote .act__icon { background: var(--cyan); color: #06081A; }
.act--vote.is-voted { border-color: rgba(62, 240, 161, 0.5); cursor: default; }
.act--vote.is-voted .act__icon { background: var(--green); }
.act--live { border-color: rgba(255, 181, 71, 0.5); }
.act--live .act__icon { background: rgba(255, 181, 71, 0.18); }
.act--live:hover { border-color: var(--amber); background: rgba(255, 181, 71, 0.08); }
.acts .twist-form { padding: 0.75rem; border-radius: 12px; border: 1px dashed var(--line-2); }
.acts .twist-form[hidden] { display: none; }
.brain__receipt { margin: 0.5rem 0; font-size: 0.9rem; }
.brain__receipt a { color: var(--amber); }
.brain__sub { margin: 1rem 0 0.25rem; font: 500 0.7rem/1.3 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* Vote buttons say "Vote" */
.vote__label { font: 600 0.6rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.vote__btn.is-voted .vote__label { color: var(--green); }
.cup-card .vote__btn { min-height: 66px; }

/* Card links read as actions */
.cup-card__actions a, .cup-card__pull { border-bottom: 1px solid transparent; }
.cup-card__actions a:hover { border-bottom-color: currentColor; }
.cup-card__pull { color: var(--amber) !important; }

/* Bottom call to action */
.ib-cta__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
@media (max-width: 860px) { .ib-cta__inner { grid-template-columns: 1fr; } }
.ib-cta__flow { margin: 1rem 0 0; padding-left: 1.3rem; display: grid; gap: 0.4rem; color: var(--ink-2); }
.ib-cta__flow b { color: var(--ink); }
.ib-cta__actions { display: grid; gap: 1rem; justify-items: start; }

.idea-single__acts { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 1.5rem 0; }

/* Home: the journey, four linked steps */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 960px) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .journey { grid-template-columns: 1fr; } }
.journey li { display: grid; gap: 0.45rem; align-content: start; padding: 1.2rem; border-radius: var(--radius-m); background: var(--panel); border: 1px solid var(--line); }
.journey__n { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px solid var(--cyan); color: var(--cyan); font: 700 0.95rem/1 var(--f-display); }
.journey h3 { margin: 0.25rem 0 0; }
.journey p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.journey a { margin-top: 0.4rem; font-weight: 600; text-decoration: none; }
.journey a:hover { text-decoration: underline; }

/* ==========================================================
   "Why Tarik Thinking exists": before AI vs with AI.
   Uses the page's tokens, so it matches the brain world and the kopitiam.
   ========================================================== */
.why { --why-accent: var(--cyan); --why-warm: var(--amber); margin: 0; display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
.world-kopitiam .why { --why-accent: var(--k-amber); --why-warm: var(--k-amber); }
.why__panels { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--gap); align-items: stretch; }
@media (max-width: 960px) { .why__panels { grid-template-columns: 1fr; } }
.why__panel { display: grid; grid-template-rows: auto 1fr auto; gap: 1.25rem; padding: clamp(1.1rem, 0.9rem + 1vw, 1.75rem); border-radius: var(--radius-l); min-width: 0; }
.why__panel--before { border: 1px dashed var(--line-2); background: rgba(255, 255, 255, 0.015); }
.why__panel--after { border: 1px solid color-mix(in srgb, var(--why-accent) 55%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--why-accent) 9%, transparent), transparent 60%), var(--panel); box-shadow: 0 30px 70px -45px color-mix(in srgb, var(--why-accent) 70%, transparent); }
.why__head { display: grid; gap: 0.4rem; }
.why__head h3 { margin: 0; font-size: var(--step-2); letter-spacing: -0.02em; }
.why__panel--before .why__head h3 { color: var(--ink-2); }
.why__tag { justify-self: start; padding: 0.25rem 0.65rem; border-radius: 999px; border: 1px solid var(--line-2); font: 500 0.7rem/1.3 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.why__tag--ai { color: var(--why-accent); border-color: color-mix(in srgb, var(--why-accent) 50%, transparent); }

.why__flow { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1.35fr) 28px minmax(0, 1fr); align-items: center; gap: 0.35rem; }
.why__col { display: grid; justify-items: center; gap: 0.55rem; text-align: center; min-width: 0; }
.why__label { font: 500 0.72rem/1.35 var(--f-mono); letter-spacing: 0.04em; color: var(--ink-3); max-width: 14ch; }
.why__panel--after .why__label { color: var(--ink-2); }

.why__ideas { display: grid; grid-template-columns: repeat(3, 26px); gap: 6px; }
.why__idea { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--ink-3); opacity: 0.45; }
.why__idea.is-lit { color: var(--why-warm); opacity: 1; background: color-mix(in srgb, var(--why-warm) 14%, transparent); }
.why__bulb { width: 18px; height: 18px; display: block; }

.why__wall { display: grid; gap: 4px; width: 100%; max-width: 132px; }
.why__wall span { display: block; padding: 0.42rem 0.5rem; border-radius: 3px; background: var(--line-2); color: var(--ink-2); font: 600 0.72rem/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.why__wall span:nth-child(even) { margin-left: 14px; }
.why__wall span:nth-child(odd) { margin-right: 14px; }

.why__cup { list-style: none; margin: 0; padding: 0.55rem; display: grid; gap: 5px; width: 100%; max-width: 190px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--why-accent) 40%, transparent); background: color-mix(in srgb, var(--why-accent) 6%, transparent); }
.why__cup li { display: grid; grid-template-columns: 3.4rem 1fr; align-items: center; gap: 0.4rem; text-align: left; font-size: 0.78rem; line-height: 1.25; color: var(--ink); }
.why__cup b { padding: 0.2rem 0.3rem; border-radius: 6px; background: color-mix(in srgb, var(--why-accent) 18%, transparent); color: var(--why-accent); font: 600 0.62rem/1.1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; text-align: center; }

.why__out { display: grid; justify-items: center; gap: 0.35rem; }
.why__out strong { font: 700 var(--step-1)/1.1 var(--f-display); }
.why__out--few { color: var(--ink-3); }
.why__out--few .why__bulb { width: 26px; height: 26px; color: var(--why-warm); opacity: 0.7; }
.why__out--few strong { color: var(--ink-2); font-size: 1rem; }
.why__out--many { color: var(--why-accent); }
.why__out--many strong { color: var(--ink); }
.why__phones { display: flex; gap: 5px; }
.why__phone { width: 18px; height: 30px; display: block; }
.why__phones .why__phone:nth-child(2) { transform: translateY(-5px); }

.why__arrow { position: relative; display: block; height: 2px; width: 100%; }
.why__arrow i { position: absolute; inset: 0; background: var(--line-2); border-radius: 2px; }
.why__arrow::after { content: ""; position: absolute; right: -1px; top: 50%; width: 7px; height: 7px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: translateY(-50%) rotate(45deg); }
.why__arrow--faint i { background: repeating-linear-gradient(90deg, var(--line-2) 0 3px, transparent 3px 7px); }
.why__arrow--live i { background: repeating-linear-gradient(90deg, var(--why-accent) 0 6px, transparent 6px 11px); background-size: 22px 2px; }
.why__arrow--live::after { border-color: var(--why-accent); }
@media (prefers-reduced-motion: no-preference) { .why__arrow--live i { animation: whyflow 1s linear infinite; } }
@keyframes whyflow { from { background-position: 0 0; } to { background-position: 22px 0; } }

.why__foot { margin: 0; padding-top: 0.9rem; border-top: 1px dashed var(--line); font-size: 0.92rem; color: var(--ink-3); }
.why__panel--after .why__foot { color: var(--ink); }
.why__panel--after .why__foot span { color: var(--why-accent); font-weight: 700; }

.why__punch { display: grid; justify-items: center; gap: 0.5rem; text-align: center; margin-inline: auto; }
.why__kick { font: 500 0.72rem/1 var(--f-mono, ui-monospace, monospace); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.why__qs { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.25rem 0.75rem; font: 600 clamp(1.15rem, 0.95rem + 1vw, 1.6rem)/1.3 var(--f-display); letter-spacing: -0.02em; }
.why__q { white-space: nowrap; }
.why__to { color: var(--why-accent); font-weight: 500; }
.why__q { quotes: "“" "”"; }
.why__q--old { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--ink-3) 70%, transparent); }
.why__q--new { color: var(--ink); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--why-accent) 35%, transparent) 62%); }

/* Phones and narrow panels: the flow runs top to bottom */
@media (max-width: 560px) {
	.why__qs { flex-direction: column; align-items: center; }
	.why__to { transform: rotate(90deg); line-height: 1; }
	.why__flow { grid-template-columns: 1fr; gap: 0.6rem; }
	.why__arrow { width: 2px; height: 24px; justify-self: center; }
	.why__arrow::after { right: auto; left: 50%; top: auto; bottom: -1px; transform: translateX(-50%) rotate(135deg); }
	.why__arrow--faint i { background: repeating-linear-gradient(180deg, var(--line-2) 0 3px, transparent 3px 7px); }
	.why__arrow--live i { background: repeating-linear-gradient(180deg, var(--why-accent) 0 6px, transparent 6px 11px); background-size: 2px 22px; }
	@keyframes whyflow { from { background-position: 0 0; } to { background-position: 0 22px; } }
	.why__label { max-width: none; }
	.why__wall, .why__cup { max-width: 240px; }
}
.why-section .section__head { margin-bottom: 1.75rem; }

/* ==========================================================
   The Lab and the live feed (4.0)
   ========================================================== */
.lab-hero { padding: clamp(2rem, 1.5rem + 3vw, 4rem) 0 0; }
.lab-hero .page-title { max-width: 22ch; }
.lab-tabs { margin-top: 1.5rem; }
.lab-list { padding-top: 2rem; }
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--gap); align-items: stretch; }
.lab-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius-m); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s ease, transform .2s ease; min-width: 0; }
.lab-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.lab-card__media { display: grid; place-items: center; aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 40%, rgba(53, 227, 255, 0.14), transparent 65%), var(--bg-3); text-decoration: none; overflow: hidden; }
.lab-card__media img { width: 100%; height: 100%; object-fit: cover; }
.lab-card--app .lab-card__media img { width: 96px; height: 96px; object-fit: cover; border-radius: 22px; }
.lab-card--visitor .lab-card__media { background: radial-gradient(circle at 50% 40%, rgba(255, 181, 71, 0.18), transparent 65%), var(--bg-3); }
.lab-card__glyph { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); font: 700 1.6rem/1 var(--f-display); }
.lab-card__body { display: grid; gap: 0.5rem; align-content: start; padding: 1rem 1.1rem 1.15rem; }
.lab-card__badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; }
.lab-badge { padding: 0.2rem 0.55rem; border-radius: 999px; border: 1px solid var(--line-2); font: 500 0.7rem/1.3 var(--f-mono); letter-spacing: 0.04em; color: var(--ink-2); }
.lab-badge--play { color: var(--cyan); border-color: rgba(53, 227, 255, 0.4); }
.lab-badge--visitor { color: var(--amber); border-color: rgba(255, 181, 71, 0.45); }
.lab-badge--app { color: var(--violet); border-color: rgba(142, 107, 255, 0.45); }
.lab-card__title { margin: 0; font-size: var(--step-1); line-height: 1.25; }
.lab-card__title a { color: var(--ink); text-decoration: none; }
.lab-card__title a:hover { text-decoration: underline; }
.lab-card__text { margin: 0; color: var(--ink-2); font-size: 0.94rem; line-height: 1.5; }
.lab-card__idea { margin: 0; font-size: 0.85rem; color: var(--ink-3); }
.lab-card__go { margin: 0.35rem 0 0; }
.lab-card__go .btn { min-height: 42px; padding: 0.5rem 1.1rem; font-size: 0.95rem; }

.lab-bottom { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .lab-bottom { grid-template-columns: 1fr; } }
.lab-make { display: grid; gap: 0.9rem; justify-items: start; padding: clamp(1.2rem, 1rem + 1vw, 1.8rem); border-radius: var(--radius-l); border: 1px solid rgba(53, 227, 255, 0.4); background: linear-gradient(150deg, rgba(53, 227, 255, 0.08), rgba(142, 107, 255, 0.08)), var(--panel); }
.lab-make h2 { margin: 0; font-size: var(--step-2); }
.lab-make p { margin: 0; color: var(--ink-2); }

.pulse { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; }
.pulse li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: baseline; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.pulse__icon { text-align: center; }
.pulse__text { color: var(--ink-2); line-height: 1.45; }
.pulse__text a { color: var(--ink); font-weight: 600; text-decoration: none; }
.pulse__text a:hover { text-decoration: underline; }
.pulse__when { font: 500 0.72rem/1.3 var(--f-mono); color: var(--ink-3); white-space: nowrap; }
@media (max-width: 520px) { .pulse li { grid-template-columns: 1.6rem minmax(0, 1fr); } .pulse__when { grid-column: 2; } }
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(62, 240, 161, 0.6); }
@media (prefers-reduced-motion: no-preference) { .pulse-dot { animation: pulsedot 1.8s ease-out infinite; } }
@keyframes pulsedot { 0% { box-shadow: 0 0 0 0 rgba(62, 240, 161, 0.6); } 70% { box-shadow: 0 0 0 9px rgba(62, 240, 161, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 240, 161, 0); } }
.admin-hint { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-3); }

/* 4.1: Lab "build a prototype" call to action */
.lab-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 0.5rem 0 1.5rem; }
.lab-cta span { max-width: 46ch; color: var(--ink-2); font-size: 0.95rem; }
