/* TechProfuse UI motion layers (see assets/js/motion.js). */

/* 1. Home hero character field */
.tp-main .hero .tpui-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; cursor: crosshair; }
.tp-main .hero.tpui-has-field::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--ink) 0%, rgba(7, 11, 22, .86) 34%, rgba(7, 11, 22, 0) 72%), linear-gradient(0deg, var(--ink) 0%, rgba(7, 11, 22, 0) 24%); }
@media (max-width: 760px) { .tp-main .hero.tpui-has-field::after { background: linear-gradient(0deg, var(--ink) 10%, rgba(7, 11, 22, .78) 60%, rgba(7, 11, 22, .6) 100%); } }

/* 2. Process stages beside the live timeline */
.tp-main .tl.tpui-has-asm { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.tp-main .tpui-tl-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* The dots panel replaces the live week chart: that chart is decorative (aria-hidden) and its week ranges are in the step list. */
.tp-main .tl.tpui-has-asm .gantt { display: none; }
.tp-main .tpui-stage { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--line-ink); background: var(--ink); }
.tp-main section:not(.dark) .tpui-stage { background: var(--ink); }
.tp-main .tpui-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.tp-main .tpui-stage-tag { position: absolute; left: 16px; top: 14px; font: 500 12px/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.tp-main .tpui-stage-hint { position: absolute; right: 16px; bottom: 12px; font-size: 13px; color: var(--mist); }
.tp-main .tl li.tpui-step { cursor: pointer; transition: color .25s; }
.tp-main .tl li.tpui-step:focus-visible { outline: 2px solid var(--signal-on-ink); outline-offset: -2px; }
.tp-main .dark .tl li.tpui-step b { color: var(--mist); transition: color .25s; }
.tp-main .dark .tl li.tpui-step.tpui-on b { color: var(--paper); }
.tp-main .dark .tl li.tpui-step.tpui-on .n { color: var(--signal-on-ink); }
@media (max-width: 960px) { .tp-main .tl.tpui-has-asm { grid-template-columns: minmax(0, 1fr); } .tp-main .tpui-stage-hint { display: none; } }

/* 3. Office-hours timeline */
.tp-main .tpui-tl { container-type: inline-size; margin: 24px 0 0; background: var(--white); border: 1px solid var(--line); border-top: 1px solid var(--ink); padding: 24px 28px 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0; color: var(--ink); }
.tp-main .tpui-tl-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 500 14px/1.35 var(--sans); color: var(--graphite); }
.tp-main .tpui-tl-zone { font: 500 12px/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tp-main .tpui-tl-grid { position: relative; --who: 190px; padding-top: 14px; }
.tp-main .tpui-tl-row { display: grid; grid-template-columns: var(--who) minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tp-main .tpui-tl-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tp-main .tpui-tl-who b { font-weight: 500; }
.tp-main .tpui-tl-meta { font-size: 13px; color: var(--graphite); display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.tp-main .tpui-tl-time { font: 500 13px/1.35 var(--mono); color: var(--ink); }
.tp-main .tpui-tl-st[data-open='true'] { color: var(--signal); }
.tp-main .tpui-tl-track { position: relative; height: 14px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 24)); background-color: #f7f8fa; }
.tp-main .tpui-seg { position: absolute; top: 0; bottom: 0; background: var(--navy); }
.tp-main .tpui-tl-row[data-open='true'] .tpui-seg { background: var(--signal); }
.tp-main .tpui-tl-axis { display: grid; grid-template-columns: var(--who) minmax(0, 1fr); gap: 16px; padding-top: 8px; }
.tp-main .tpui-tl-ticks { position: relative; height: 16px; }
.tp-main .tpui-tl-ticks i { position: absolute; transform: translateX(-50%); font: normal 11px/1 var(--mono); color: var(--graphite); }
.tp-main .tpui-tl-ticks i:first-child { transform: none; }
.tp-main .tpui-tl-ticks i:last-child { transform: translateX(-100%); }
.tp-main .tpui-tl-now { position: absolute; top: 14px; bottom: 22px; width: 0; border-left: 1.5px solid var(--ink); display: none; }
.tp-main .tpui-tl-now span { position: absolute; top: -18px; left: 0; transform: translateX(-50%); font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--white); padding: 0 4px; }
.tp-main .tpui-tl-sum { font-size: 15px; color: var(--graphite); margin: 0; }
.tp-main .tpui-tl-sum b { color: var(--ink); font-weight: 500; }
@container (max-width: 560px) {
  .tp-main .tpui-tl-grid { --who: 0px; }
  .tp-main .tpui-tl-row { grid-template-columns: 1fr; gap: 8px; }
  .tp-main .tpui-tl-axis { grid-template-columns: 1fr; gap: 0; }
  .tp-main .tpui-tl-axis > span { display: none; }
}
