/* CHERT Think Tank — additions on top of the shared chertiot.com site styles (site.css, shell.css).
   Only the sections chertiot does not have: the record card in the hero, the engines grid and the
   screenshot gallery. Tokens only (chert-tokens.css). */

/* ---------------------------------------------------- hero: record card --- */
.tt-record { position: absolute; right: 0; bottom: calc(-78 * var(--u)); width: calc(232 * var(--u)); padding: 14px 16px; border-radius: var(--radius-card);
  border: 1px solid var(--chert-dark-border); background: color-mix(in srgb, var(--chert-dark-surface) 82%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-modal); animation: sx-float 7s ease-in-out infinite; }
.tt-record__head { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--chert-dark-muted); }
.tt-record__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--chert-orange); animation: sx-blink 1.6s ease-in-out infinite; }
.tt-record__tag { margin-inline-start: auto; font-family: var(--font-ui); font-size: 10.5px; padding: 1px 7px; border-radius: var(--radius-pill); border: 1px solid var(--chert-dark-border); }
.tt-record__steps { list-style: none; margin: 12px 0 10px; padding: 0; display: grid; gap: 7px; }
.tt-record__steps li { position: relative; padding-inline-start: 22px; font-size: 13px; color: var(--chert-dark-muted); }
.tt-record__steps li::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 1.5px solid var(--chert-dark-border); }
.tt-record__steps li.is-done { color: var(--chert-dark-text); }
.tt-record__steps li.is-done::before { background: var(--chert-success); border-color: var(--chert-success); }
.tt-record__steps li.is-now { color: var(--chert-dark-text); font-weight: 700; }
.tt-record__steps li.is-now::before { border-color: var(--chert-orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--chert-orange) 25%, transparent); animation: sx-blink 1.6s ease-in-out infinite; }
.tt-record__foot { font-family: var(--font-mono); font-size: 11px; color: var(--chert-dark-muted); }

/* ------------------------------------------------------------- doors --- */
.tt-doors { background: var(--chert-surface-alt); }

/* ----------------------------------------------------------- engines --- */
.tt-engines { background: var(--chert-cream); }
.tt-engines__grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tt-engine { position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: 20px; border: 1px solid var(--chert-border); background: var(--chert-surface);
  transition: translate var(--dur-slow) var(--ease), box-shadow var(--dur-slow), border-color var(--dur-slow), opacity .8s var(--ease), transform .8s var(--ease); }
.js .tt-engine.sx-reveal { transition-delay: calc(var(--k, 0) * 90ms), 0s, 0s, calc(var(--k, 0) * 90ms), calc(var(--k, 0) * 90ms); }
.tt-engine:hover { translate: 0 -4px; box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--chert-orange) 50%, var(--chert-border)); }
.tt-engine__kicker { margin: 18px 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--chert-orange-deep); }
[lang="ar"] .tt-engine__kicker { letter-spacing: normal; font-size: 13px; }
.tt-engine h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; }
.tt-engine p:not(.tt-engine__kicker) { margin: 0 0 14px; color: var(--chert-muted); }
.tt-engine__link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12.5px; color: var(--chert-ink); text-decoration: none; }
.tt-engine__link:hover { color: var(--chert-orange-deep); }

/* ----------------------------------------------------------- gallery --- */
.tt-gallery { color: var(--chert-dark-text); background:
  radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--chert-orange) 14%, transparent), transparent 70%), var(--chert-dark); }
.tt-gallery .sx-eyebrow { color: var(--chert-orange); }
.tt-gallery__grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.tt-shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--chert-dark-border); background: var(--chert-dark-surface); box-shadow: var(--shadow-modal);
  transition: translate var(--dur-slow) var(--ease), border-color var(--dur-slow), opacity .8s var(--ease), transform .8s var(--ease); }
.js .tt-shot.sx-reveal { transition-delay: 0s, 0s, calc(var(--k, 0) * 110ms), calc(var(--k, 0) * 110ms); }
.tt-shot:hover { translate: 0 -4px; border-color: color-mix(in srgb, var(--chert-orange) 55%, var(--chert-dark-border)); }
.tt-shot__frame { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--chert-dark-border); }
.tt-shot__frame span { width: 9px; height: 9px; border-radius: 50%; background: var(--chert-dark-border); }
.tt-shot img { display: block; width: 100%; height: auto; }
.tt-shot figcaption { padding: 12px 16px 14px; font-size: 14px; color: var(--chert-dark-muted); }

@media (max-width: 760px) { .tt-record { display: none; } }

/* ---------------------------------------------- architecture grid areas ---
   site.css names its grid areas after chertiot's layer ids; map the Think Tank's layers onto them:
   bands top→bottom in the centre column, identity rail on the left, AI & operations on the right. */
@media (min-width: 1100px) {
  .sx-layer--demand { grid-area: devices; } .sx-layer--build { grid-area: connect; }
  .sx-layer--ship { grid-area: platform; } .sx-layer--own { grid-area: apps; }
  .sx-layer--trust { grid-area: sec; } .sx-layer--ai { grid-area: ops; }
}
[lang="ar"] .tt-engine__kicker, [lang="ar"] .sx-eyebrow { text-transform: none; }
