/* Shared Project TAOS frame. The homepage retains its original orb and status feed. */
:root { --titan-gutter: clamp(22px, 5vw, 96px); --taos-header-height: 76px; }
.taos-front, .taos-front:root, html:has(.taos-front) { height: auto; overflow: visible; }
.taos-frame-header, .taos-front > main, .taos-front > footer, .taos-inner > main, .taos-inner > footer {
  width: calc(100% - 2 * var(--titan-gutter)); max-width: none; margin-inline: auto; padding-inline: 0; box-sizing: border-box;
}
.taos-frame-header {
  min-height: var(--taos-header-height); padding-block: 14px; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; position: relative; z-index: 65; border-bottom: 1px solid #242423;
}
.taos-frame-header .mark { color: #f1efe8; font: 400 22px/1 "Deltha","Exo 2",sans-serif; letter-spacing: .32em; text-decoration: none; }
.taos-frame-header .mark b { color: #ff6a1f; font-weight: inherit; }
.taos-frame-header nav { display: flex; gap: clamp(12px, 1.65vw, 28px); align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.taos-frame-header nav a, .taos-mobile-menu summary {
  color: #b9b7af; font: 500 12px/1.3 "Exo 2",system-ui,sans-serif; letter-spacing: .15em; text-transform: uppercase; text-decoration: none;
}
.taos-frame-header nav a:hover, .taos-frame-header nav [aria-current="page"] { color: #ff8a4f; }
.taos-frame-header :focus-visible { outline: 2px solid #ff8a4f; outline-offset: 4px; }
.taos-mobile-menu { display: none; }
.taos-frame-header .sys { display: inline-flex; gap: 7px; align-items: center; }
.taos-frame-header .sys i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #ffb23f; animation: taos-frame-pulse 1.4s steps(1,end) infinite !important; }
@keyframes taos-frame-pulse { 0% { background: #ff6a1f; } 50% { background: #ffc21f; } }
@media (prefers-reduced-motion: reduce) {
  .taos-frame-header .sys i { animation: none !important; background: #ffb23f; }
}
@media (max-width: 1000px) {
  .taos-frame-header .taos-desktop-nav { display: none; }
  .taos-mobile-menu { display: block; }
  .taos-mobile-menu summary { cursor: pointer; padding: 13px; border: 1px solid #383835; border-radius: 5px; }
  .taos-mobile-menu nav { position: absolute; top: 100%; inset-inline: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; background: #0b0b0b; border: 1px solid #383835; padding: 6px; }
  .taos-mobile-menu nav a { padding: 12px 8px; overflow-wrap: anywhere; }
}
.taos-inner > main { padding-block: clamp(44px,6vw,96px) clamp(60px,8vw,116px); }
.taos-inner h1 { font-size: clamp(30px,4.5vw,64px); margin-block: 0 20px; }
.taos-inner h2 { margin-block-start: clamp(38px,5vw,68px); }
.taos-inner .lede { color: #b9b7af; }
.taos-inner .grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); }
.taos-inner .tablewrap { max-width: 100%; overflow-x: auto; }
.taos-front > main { position: relative; inset: auto; min-height: calc(100svh - var(--taos-header-height)); display: grid; place-items: center; align-content: center; gap: 16px; padding-block: 36px; }
.taos-front #soul { width: min(58vh,100%); height: auto; aspect-ratio: 1; }
.taos-front .taos-hero-title { position: static; }
.taos-front #taos-eta { top: auto; bottom: 20px; left: var(--titan-gutter); }
.taos-front #taos-moments { right: var(--titan-gutter); }
.taos-front #taos-hud { right: var(--titan-gutter); }
.taos-front > footer { padding-block: 28px; border-top: 1px solid #242423; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #a09e97; font-size: 12px; letter-spacing: .12em; }
@media (max-width: 900px) {
  .taos-front > main { padding-block-start: 150px; }
  .taos-front #taos-hud { top: calc(var(--taos-header-height) + 14px); left: var(--titan-gutter); }
}

/* Research keeps comfortable text measures while using the desktop frame. */
.taos-research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 32px);
  margin-block-start: clamp(32px, 4.5vw, 68px);
}
.taos-research-entry {
  min-width: 0;
  padding: clamp(18px, 2.6vw, 38px);
  border: 1px solid #30312f;
  border-radius: 8px;
  background: #0b0e10;
}
.taos-inner .taos-research-entry h2 {
  margin: 0 0 14px;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.4;
}
.taos-research-entry p { margin: 0; color: #d8d6ce; }
.taos-research-entry p + p { margin-block-start: 16px; }
.taos-research-entry a { color: #ff914e; text-decoration: underline; text-underline-offset: .25em; }
@media (min-width: 720px) {
  .taos-research-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .taos-research-entry:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1320px) {
  .taos-research-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

/* Titan orange text insertion caret and pointer for desktop input. */
:root { --titan-input-orange: #ff6a1f; }
html :is(input,textarea,[contenteditable]:not([contenteditable="false"])) {
  caret-color: var(--titan-input-orange);
}
html body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff6a1f' stroke='%23101010' stroke-width='1.5' stroke-linejoin='round' d='M3 2l15 12-7 1 3 6-3 1-3-6-4 5z'/%3E%3C/svg%3E") 3 2, auto;
}
html :is(a[href],button:not(:disabled),summary,[role="button"]:not([aria-disabled="true"])):not([draggable="true"]) {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff6a1f' stroke='%23101010' stroke-width='1.4' stroke-linejoin='round' d='M8 12V4c0-2 3-2 3 0v6l2-1 2 1 2 0 3 2v4l-3 6h-7l-5-7c-1-2 1-3 3-2z'/%3E%3C/svg%3E") 9 2, pointer;
}
html :is(textarea,[contenteditable]:not([contenteditable="false"]),input:not([type]),input[type="email"],input[type="text"],input[type="search"],input[type="password"],input[type="url"],input[type="tel"]) {
  cursor: text;
}
@media (forced-colors: active) {
  html body { cursor: auto; }
  html :is(a[href],button:not(:disabled),summary,[role="button"]:not([aria-disabled="true"])):not([draggable="true"]) {
    cursor: pointer;
  }
  html :is(input,textarea,[contenteditable]:not([contenteditable="false"])) { caret-color: auto; }
}
/* Chat launcher on every inner page (27 Nov 2026): at desktop widths it is a 44px control centred in the frame gutter,
   so it never sits on page or footer text. Same rule the About page carried inline; now shared. Label stays as the accessible name. */
@media (min-width: 1024px) {
  body.taos-inner .ac-btn {
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    right: calc((clamp(22px, 5vw, 96px) - 44px) / 2);
    padding: 0;
    justify-content: center;
    gap: 0;
    font-size: 0;
    letter-spacing: 0;
  }
}
/* Phone and tablet: the launcher keeps its label, so the footer leaves room for it at the end of the page. */
@media (max-width: 1023.98px) {
  body.taos-inner:has(.ac-btn) > footer { padding-bottom: 92px; }
}
