/* =====================================================================
   sayheyto.me portfolio themes
   Each theme is scoped by body.t-<id>. Shared bits first.
   ===================================================================== */
body.t-theme { padding-bottom: 0; }
.t-container { max-width: none; margin: 0; padding: 0; }
.t-root { position: relative; }
.t-root * { box-sizing: border-box; }
.t-root button { font: inherit; cursor: pointer; }
.t-root a { color: inherit; }
.t-initials { display: flex; align-items: center; justify-content: center; font-weight: 700; letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) {
    .t-root *, .t-root *::before, .t-root *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   1. EXECUTIVE — navy, ivory and gold
   ===================================================================== */
body.t-exec {
    --bg-color: #f6f3ec; --card-bg: #fff; --card-border: #e4ddcc;
    --primary-color: #0b1f3a; --primary-hover: #142c50;
    --text-main: #18202c; --text-muted: #56606f;
    --ex-gold: #b8913f; --ex-navy: #0b1f3a;
    font-family: 'Inter', sans-serif; background: var(--bg-color);
}
.t-exec .ex-hero { background: radial-gradient(1200px 400px at 80% -10%, rgba(184,145,63,.18), transparent 60%), linear-gradient(160deg, #0b1f3a 0%, #102a4c 100%); color: #f3efe6; padding: 72px 24px 0; }
.t-exec .ex-hero-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center; }
.t-exec .ex-eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; color: var(--ex-gold); font-weight: 600; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.t-exec .ex-eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--ex-gold); }
.t-exec h1 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.01em; }
.t-exec .ex-title { margin-top: 12px; font-size: 1.1rem; color: #cfd6e2; }
.t-exec .ex-title span { color: var(--ex-gold); padding: 0 4px; }
.t-exec .ex-lead { margin-top: 22px; font-family: 'Source Serif 4', serif; font-size: 1.2rem; line-height: 1.65; color: #dfe4ec; max-width: 640px; }
.t-exec .ex-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.t-exec .ex-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 2px; font-weight: 600; font-size: .92rem; letter-spacing: .02em; text-decoration: none; border: 1px solid transparent; transition: all .2s; }
.t-exec .ex-btn--gold { background: var(--ex-gold); color: #0b1f3a; }
.t-exec .ex-btn--gold:hover { background: #cfa752; }
.t-exec .ex-btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.t-exec .ex-btn--ghost:hover { border-color: var(--ex-gold); color: var(--ex-gold); }
.t-exec .ex-btn--block { width: 100%; margin-top: 18px; }
.t-exec .ex-portrait { position: relative; justify-self: end; }
.t-exec .ex-portrait::before { content: ''; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--ex-gold); }
.t-exec .ex-portrait-img { position: relative; width: 300px; height: 360px; object-fit: cover; display: block; background: #1b3459; color: #fff; font-size: 4rem; filter: saturate(.9); }
.t-exec .ex-stats { max-width: 1120px; margin: 64px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.t-exec .ex-stats > div { padding: 26px 0 30px; border-right: 1px solid rgba(255,255,255,.1); padding-left: 24px; }
.t-exec .ex-stats > div:first-child { padding-left: 0; }
.t-exec .ex-stats > div:last-child { border-right: 0; }
.t-exec .ex-stats dt { font-family: 'Source Serif 4', serif; font-size: 2.4rem; color: #fff; line-height: 1; }
.t-exec .ex-stats dd { margin-top: 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: #9fb0c8; }
.t-exec .ex-section { max-width: 1120px; margin: 0 auto; padding: 64px 24px 0; }
.t-exec .ex-h2 { font-family: 'Source Serif 4', serif; font-weight: 600; font-size: 1.7rem; color: var(--ex-navy); margin-bottom: 26px; display: flex; align-items: center; gap: 16px; }
.t-exec .ex-h2::after { content: ''; flex: 1; height: 1px; background: var(--card-border); }
.t-exec .ex-impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.t-exec .ex-impact { background: #fff; border-top: 3px solid var(--ex-gold); padding: 28px; box-shadow: 0 10px 30px rgba(11,31,58,.06); }
.t-exec .ex-impact-fig { font-family: 'Source Serif 4', serif; font-size: 2.6rem; font-weight: 700; color: var(--ex-navy); line-height: 1; margin-bottom: 14px; }
.t-exec .ex-impact-fig--icon { color: var(--ex-gold); font-size: 1.6rem; }
.t-exec .ex-impact p { color: var(--text-muted); line-height: 1.6; }
.t-exec .ex-cols { display: grid; grid-template-columns: 1fr 340px; gap: 48px; padding-bottom: 96px; }
.t-exec .ex-career { list-style: none; }
.t-exec .ex-career li { padding: 22px 0; border-bottom: 1px solid var(--card-border); }
.t-exec .ex-career li:first-child { padding-top: 0; }
.t-exec .ex-career-head { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.t-exec .ex-career h3 { font-family: 'Source Serif 4', serif; font-size: 1.3rem; color: var(--ex-navy); font-weight: 600; }
.t-exec .ex-career-head span { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ex-gold); white-space: nowrap; font-weight: 600; }
.t-exec .ex-career-co { font-weight: 600; color: var(--text-muted); margin-top: 2px; }
.t-exec .ex-career p { margin-top: 10px; color: var(--text-main); line-height: 1.65; }
.t-exec .ex-more { padding-left: 18px; line-height: 1.8; }
.t-exec .ex-aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 24px; align-self: start; }
.t-exec .ex-card { background: #fff; border: 1px solid var(--card-border); padding: 28px; }
.t-exec .ex-card h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; color: var(--ex-gold); margin-bottom: 16px; }
.t-exec .ex-comp { list-style: none; }
.t-exec .ex-comp li { padding: 9px 0 9px 26px; border-bottom: 1px dashed var(--card-border); position: relative; font-weight: 500; }
.t-exec .ex-comp li::before { content: '✓'; position: absolute; left: 0; color: var(--ex-gold); font-weight: 700; }
.t-exec .ex-card--navy { background: var(--ex-navy); color: #dfe4ec; border-color: var(--ex-navy); }
.t-exec .ex-card--navy p { line-height: 1.6; font-size: .95rem; }
@media (max-width: 860px) {
    .t-exec .ex-hero { padding-top: 48px; }
    .t-exec .ex-hero-inner, .t-exec .ex-cols { grid-template-columns: 1fr; }
    .t-exec .ex-portrait { justify-self: start; order: -1; }
    .t-exec .ex-portrait-img { width: 160px; height: 190px; }
    .t-exec .ex-stats { grid-template-columns: repeat(2, 1fr); }
    .t-exec .ex-stats > div:nth-child(odd) { padding-left: 0; }
    .t-exec .ex-aside { position: static; }
}

/* =====================================================================
   2. MINIMALIST — monochrome, whitespace, one column
   ===================================================================== */
body.t-minimal {
    --bg-color: #fbfbfa; --card-bg: #fff; --card-border: #e7e7e4;
    --primary-color: #111; --primary-hover: #333; --text-main: #111; --text-muted: #7a7a76;
    font-family: 'Manrope', sans-serif; background: var(--bg-color);
}
.t-root--minimal { max-width: 760px; margin: 0 auto; padding: 96px 28px 64px; }
.t-minimal .mn-head { display: flex; flex-direction: column; gap: 18px; }
.t-minimal .mn-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.t-minimal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.t-minimal .mn-role { color: var(--text-muted); font-size: 1.05rem; }
.t-minimal .mn-statement { margin: 56px 0 72px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 300; line-height: 1.5; letter-spacing: -.015em; }
.t-minimal .mn-row { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 36px 0; border-top: 1px solid var(--card-border); }
.t-minimal .mn-row h2 { font-size: .78rem; font-weight: 500; color: var(--text-muted); text-transform: none; letter-spacing: .01em; padding-top: 3px; }
.t-minimal .mn-job + .mn-job { margin-top: 26px; }
.t-minimal .mn-job-line { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.t-minimal .mn-job-line time { font-weight: 400; color: var(--text-muted); font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.t-minimal .mn-job p { color: #4a4a47; margin-top: 6px; line-height: 1.65; }
.t-minimal .mn-list { list-style: none; counter-reset: mn; }
.t-minimal .mn-list li { counter-increment: mn; padding-left: 36px; position: relative; line-height: 1.65; }
.t-minimal .mn-list li + li { margin-top: 14px; }
.t-minimal .mn-list li::before { content: counter(mn, decimal-leading-zero); position: absolute; left: 0; color: var(--text-muted); font-size: .8rem; top: 3px; font-variant-numeric: tabular-nums; }
.t-minimal .mn-skills { line-height: 2; }
.t-minimal .mn-skills span { color: #c8c8c4; padding: 0 10px; }
.t-minimal .mn-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.t-minimal .mn-link { background: none; border: 0; padding: 0; font-size: 1.05rem; font-weight: 500; color: var(--text-main); text-decoration: none; border-bottom: 1px solid currentColor; line-height: 1.5; }
.t-minimal .mn-link span { display: inline-block; transition: transform .2s; }
.t-minimal .mn-link:hover span { transform: translateX(4px); }
.t-minimal .mn-foot { margin-top: 64px; color: var(--text-muted); font-size: .8rem; }
@media (max-width: 640px) {
    .t-root--minimal { padding-top: 56px; }
    .t-minimal .mn-row { grid-template-columns: 1fr; gap: 14px; }
    .t-minimal .mn-job-line { flex-direction: column; gap: 2px; }
}

/* =====================================================================
   3. TIMELINE — a journey down a glowing spine
   ===================================================================== */
body.t-timeline {
    --bg-color: #f5f6fb; --card-bg: #fff; --card-border: #e3e6f2;
    --primary-color: #4338ca; --primary-hover: #3730a3; --text-main: #1b1d3a; --text-muted: #646a8a;
    --tl-a: #4338ca; --tl-b: #0d9488;
    font-family: 'Outfit', sans-serif; background: var(--bg-color);
}
.t-timeline .tl-hero { text-align: center; max-width: 760px; margin: 0 auto; padding: 88px 24px 40px; }
.t-timeline .tl-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; padding: 4px; background: linear-gradient(135deg, var(--tl-a), var(--tl-b)); margin: 0 auto 22px; display: block; color: #fff; font-size: 2rem; }
.t-timeline .tl-kicker { display: inline-block; padding: 6px 14px; border-radius: 99px; background: #e8e8fb; color: var(--tl-a); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.t-timeline .tl-hero h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 800; letter-spacing: -.03em; margin: 14px 0 12px; line-height: 1.05; }
.t-timeline .tl-hero p { font-size: 1.15rem; color: var(--text-muted); line-height: 1.6; font-weight: 300; }
.t-timeline .tl-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.t-timeline .tl-btn { padding: 13px 24px; border-radius: 12px; background: linear-gradient(135deg, var(--tl-a), #6d5dfc); color: #fff; border: 0; font-weight: 600; text-decoration: none; box-shadow: 0 10px 24px rgba(67,56,202,.25); }
.t-timeline .tl-btn--line { background: #fff; color: var(--tl-a); border: 1px solid #d4d6f0; box-shadow: none; }
.t-timeline .tl-scroll { margin-top: 42px; color: var(--text-muted); font-size: .85rem; animation: tlBob 2s ease-in-out infinite; }
@keyframes tlBob { 50% { transform: translateY(6px); } }
.t-timeline .tl-spine { position: relative; max-width: 1040px; margin: 0 auto; padding: 20px 24px 40px; }
.t-timeline .tl-spine::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); background: linear-gradient(var(--tl-a), var(--tl-b)); border-radius: 3px; }
.t-timeline .tl-now, .t-timeline .tl-start { position: relative; width: max-content; margin: 0 auto 30px; padding: 6px 16px; border-radius: 99px; background: var(--tl-a); color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; z-index: 1; }
.t-timeline .tl-start { background: var(--tl-b); margin: 10px auto 0; }
.t-timeline .tl-stop { position: relative; width: 50%; padding: 0 44px 34px; opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.t-timeline .tl-stop.is-in { opacity: 1; transform: none; }
.t-timeline .tl-stop--l { margin-right: 50%; text-align: right; }
.t-timeline .tl-stop--r { margin-left: 50%; }
.t-timeline .tl-dot { position: absolute; top: 22px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--tl-a); box-shadow: 0 0 0 6px rgba(67,56,202,.12); }
.t-timeline .tl-stop--l .tl-dot { right: -9px; }
.t-timeline .tl-stop--r .tl-dot { left: -9px; }
.t-timeline .tl-card { background: #fff; border: 1px solid var(--card-border); border-radius: 18px; padding: 22px 24px; box-shadow: 0 12px 30px rgba(27,29,58,.06); transition: transform .25s; }
.t-timeline .tl-card:hover { transform: translateY(-3px); }
.t-timeline .tl-date { font-size: .8rem; font-weight: 700; color: var(--tl-b); letter-spacing: .08em; text-transform: uppercase; }
.t-timeline .tl-card h3 { font-size: 1.25rem; font-weight: 700; margin-top: 6px; }
.t-timeline .tl-co { color: var(--tl-a); font-weight: 500; }
.t-timeline .tl-card p { margin-top: 10px; color: var(--text-muted); line-height: 1.6; }
.t-timeline .tl-block { max-width: 1040px; margin: 0 auto; padding: 48px 24px; }
.t-timeline .tl-block h2 { font-size: 1.8rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 22px; text-align: center; }
.t-timeline .tl-miles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.t-timeline .tl-mile { background: #fff; border-radius: 18px; padding: 22px; border: 1px solid var(--card-border); opacity: 0; transform: scale(.96); transition: all .5s; }
.t-timeline .tl-mile.is-in { opacity: 1; transform: none; }
.t-timeline .tl-mile span { display: inline-flex; width: 38px; height: 38px; border-radius: 12px; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--tl-a), var(--tl-b)); color: #fff; font-weight: 700; margin-bottom: 12px; }
.t-timeline .tl-mile p { line-height: 1.55; }
.t-timeline .tl-skills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding-bottom: 60px; }
.t-timeline .tl-skills span { padding: 9px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--card-border); font-weight: 500; }
@media (max-width: 760px) {
    .t-timeline .tl-spine::before { left: 32px; }
    .t-timeline .tl-now, .t-timeline .tl-start { margin-left: 0; }
    .t-timeline .tl-stop, .t-timeline .tl-stop--l, .t-timeline .tl-stop--r { width: 100%; margin: 0; text-align: left; padding: 0 0 26px 44px; }
    .t-timeline .tl-stop--l .tl-dot, .t-timeline .tl-stop--r .tl-dot { left: -1px; right: auto; }
}

/* =====================================================================
   4. CREATIVE — cream paper, loud colour, sticker energy
   ===================================================================== */
body.t-creative {
    --bg-color: #fff7ec; --card-bg: #fff; --card-border: #1d1a17;
    --primary-color: #ff5b3a; --primary-hover: #e94a2a; --text-main: #1d1a17; --text-muted: #5e5750;
    font-family: 'DM Sans', sans-serif; background: var(--bg-color); overflow-x: hidden;
}
.t-root--creative { overflow: hidden; }
.t-creative .cr-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 0; pointer-events: none; }
.t-creative .cr-blob--a { width: 480px; height: 480px; background: #ffb4a2; top: -120px; right: -100px; }
.t-creative .cr-blob--b { width: 380px; height: 380px; background: #b8f2e6; top: 380px; left: -140px; }
.t-creative .cr-hero, .t-creative .cr-sec, .t-creative .cr-cta { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.t-creative .cr-hero { padding-top: 72px; }
.t-creative .cr-hello { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 700; }
.t-creative .cr-hero h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(4.5rem, 16vw, 13rem); line-height: .85; letter-spacing: -.05em; margin: 6px 0 0 -6px; }
.t-creative .cr-hero h1 span { color: var(--primary-color); }
.t-creative .cr-hero-row { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: center; margin-top: 28px; }
.t-creative .cr-hero-row p { font-size: 1.45rem; line-height: 1.45; max-width: 640px; font-weight: 500; }
.t-creative .cr-sticker { position: relative; transform: rotate(4deg); justify-self: center; transition: transform .3s; }
.t-creative .cr-sticker:hover { transform: rotate(-2deg) scale(1.03); }
.t-creative .cr-sticker-img { width: 220px; height: 220px; object-fit: cover; border-radius: 28px; border: 4px solid #1d1a17; box-shadow: 10px 10px 0 #1d1a17; display: block; background: #ffd23f; font-family: 'Syne'; font-size: 3rem; }
.t-creative .cr-sticker-tag { position: absolute; bottom: -16px; left: -20px; background: #ffd23f; border: 3px solid #1d1a17; padding: 6px 14px; border-radius: 99px; font-weight: 700; transform: rotate(-8deg); }
.t-creative .cr-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.t-creative .cr-btn { padding: 16px 26px; border-radius: 99px; border: 3px solid #1d1a17; background: var(--primary-color); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; box-shadow: 5px 5px 0 #1d1a17; transition: transform .15s, box-shadow .15s; }
.t-creative .cr-btn:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 #1d1a17; }
.t-creative .cr-btn--alt { background: #fff; color: #1d1a17; }
.t-creative .cr-btn--big { font-size: 1.3rem; padding: 20px 34px; }
.t-creative .cr-marquee { position: relative; z-index: 1; margin: 72px 0 0; background: #1d1a17; color: #fff7ec; padding: 18px 0; transform: rotate(-1.5deg); overflow: hidden; }
.t-creative .cr-marquee-track { display: flex; gap: 28px; width: max-content; animation: crMarq 28s linear infinite; font-family: 'Syne'; font-weight: 700; font-size: 1.6rem; white-space: nowrap; }
.t-creative .cr-marquee-track i { color: #ffd23f; font-style: normal; }
@keyframes crMarq { to { transform: translateX(-50%); } }
.t-creative .cr-sec { padding-top: 88px; }
.t-creative h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.03em; margin-bottom: 28px; }
.t-creative .cr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.t-creative .cr-tile { border: 3px solid #1d1a17; border-radius: 24px; padding: 26px; box-shadow: 6px 6px 0 #1d1a17; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .2s; }
.t-creative .cr-tile:nth-child(odd) { transform: rotate(-1deg); }
.t-creative .cr-tile:nth-child(even) { transform: rotate(1deg); }
.t-creative .cr-tile:hover { transform: rotate(0) translateY(-4px); }
.t-creative .cr-tile p { font-size: 1.15rem; font-weight: 500; line-height: 1.4; }
.t-creative .cr-num { font-family: 'Syne'; font-weight: 800; font-size: 2.6rem; line-height: 1; }
.t-creative .cr-c1 { background: #ff8a6b; } .t-creative .cr-c2 { background: #ffd23f; } .t-creative .cr-c3 { background: #c3b5ff; } .t-creative .cr-c4 { background: #8ee3c8; }
.t-creative .cr-job { display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: baseline; padding: 26px 0; border-top: 3px solid #1d1a17; }
.t-creative .cr-job:last-child { border-bottom: 3px solid #1d1a17; }
.t-creative .cr-job-n { font-family: 'Syne'; font-weight: 800; font-size: 2.2rem; color: var(--primary-color); }
.t-creative .cr-job h3 { font-family: 'Syne'; font-size: 1.6rem; font-weight: 700; }
.t-creative .cr-job em { font-style: normal; color: var(--text-muted); font-weight: 600; }
.t-creative .cr-job p { margin-top: 6px; color: var(--text-muted); font-size: 1.05rem; }
.t-creative .cr-job-d { font-weight: 700; background: #1d1a17; color: #fff7ec; padding: 4px 12px; border-radius: 99px; font-size: .85rem; white-space: nowrap; }
.t-creative .cr-cta { text-align: center; padding: 110px 28px 120px; }
@media (max-width: 760px) {
    .t-creative .cr-hero-row { grid-template-columns: 1fr; }
    .t-creative .cr-sticker { justify-self: start; }
    .t-creative .cr-sticker-img { width: 160px; height: 160px; }
    .t-creative .cr-job { grid-template-columns: 1fr; gap: 6px; }
    .t-creative .cr-job-d { justify-self: start; }
}

/* =====================================================================
   5. TERMINAL — an AI agent inside a coding session
   ===================================================================== */
body.t-terminal {
    --bg-color: #050505; --text-main: #d6d6d6; --text-muted: #7a7a7a;
    --tm-green: #5af78e; --tm-cyan: #57c7ff; --tm-amber: #f3b54a; --tm-pink: #ff6ac1; --tm-dim: #6c6c6c;
    --tm-font: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: #050505; color: var(--text-main); font-family: var(--tm-font);
}
.t-root--terminal { min-height: 100vh; padding: 28px 24px; display: flex; justify-content: center; align-items: flex-start; background: radial-gradient(800px 400px at 50% -10%, rgba(90,247,142,.06), transparent 70%); }
.t-terminal .tm-window { width: 100%; max-width: 1080px; height: calc(100vh - 56px); min-height: 520px; display: flex; flex-direction: column; background: #0c0c0c; border: 1px solid #262626; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.02) inset; overflow: hidden; font-size: 14px; line-height: 1.65; }
.t-terminal .tm-bar { display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; padding: 10px 14px; background: #161616; border-bottom: 1px solid #222; font-size: 12px; color: #8a8a8a; }
.t-terminal .tm-lights { display: flex; gap: 8px; }
.t-terminal .tm-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.t-terminal .tm-lights i:nth-child(2) { background: #febc2e; } .t-terminal .tm-lights i:nth-child(3) { background: #28c840; }
.t-terminal .tm-title { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-terminal .tm-bar-right { text-align: right; }
.t-terminal .tm-live { color: var(--tm-green); } .t-terminal .tm-off { color: #ff5f57; }
.t-terminal .tm-body { flex: 1; overflow-y: auto; padding: 22px 26px 12px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.t-terminal .tm-banner { border: 1px solid var(--tm-amber); border-radius: 8px; padding: 14px 18px; margin-bottom: 22px; max-width: 720px; }
.t-terminal .tm-banner-title { color: #fff; margin-bottom: 6px; }
.t-terminal .tm-banner-title::first-letter { color: var(--tm-amber); }
.t-terminal .tm-dim { color: var(--tm-dim); }
.t-terminal .tm-dim b { color: #bdbdbd; font-weight: 500; }
.t-terminal .tm-kbd { color: var(--tm-cyan); }
.t-terminal .tm-line { margin: 14px 0 6px; }
.t-terminal .tm-ps { color: var(--tm-green); font-weight: 700; }
.t-terminal .tm-typed { color: #fff; }
.t-terminal .tm-line--user { margin-top: 22px; padding: 6px 10px; background: #161616; border-left: 2px solid var(--tm-green); border-radius: 2px; }
.t-terminal .tm-who { display: flex; gap: 16px; align-items: center; margin: 6px 0 18px 18px; }
.t-terminal .tm-ascii { width: 64px; height: 64px; object-fit: cover; filter: grayscale(1) contrast(1.4) brightness(.9); border: 1px solid #333; image-rendering: pixelated; }
.t-terminal .tm-name { color: #fff; font-weight: 700; font-size: 1.15rem; }
.t-terminal .tm-step { margin: 16px 0; }
.t-terminal .tm-bullet { color: var(--tm-green); }
.t-terminal .tm-tool { color: #fff; font-weight: 700; }
.t-terminal .tm-arg { color: var(--tm-cyan); }
.t-terminal .tm-result { display: flex; gap: 10px; padding-left: 4px; color: #bdbdbd; }
.t-terminal .tm-elbow { color: var(--tm-dim); flex: none; }
.t-terminal .tm-result > div { flex: 1; min-width: 0; }
.t-terminal .tm-text { max-width: 820px; }
.t-terminal .tm-ls { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 18px; color: var(--tm-cyan); }
.t-terminal .tm-ls span::after { content: '/'; color: var(--tm-dim); }
.t-terminal .tm-log + .tm-log { margin-top: 8px; }
.t-terminal .tm-hash { color: var(--tm-amber); }
.t-terminal .tm-date { color: var(--tm-pink); }
.t-terminal .tm-log b { color: #fff; font-weight: 500; }
.t-terminal .tm-log-msg { color: var(--tm-dim); padding-left: 8ch; }
.t-terminal .tm-ok span { color: var(--tm-green); }
.t-terminal .tm-ok strong { color: #fff; }
.t-terminal .tm-sys { color: var(--tm-dim); margin: 18px 0 6px; padding-left: 18px; border-left: 1px solid #2b2b2b; }
.t-terminal .tm-agent { display: flex; gap: 10px; margin: 12px 0; }
.t-terminal .tm-bullet--agent { color: #fff; flex: none; }
.t-terminal .tm-reply { color: #e6e6e6; max-width: 860px; }
.t-terminal .tm-reply a { color: var(--tm-cyan) !important; }
.t-terminal .tm-reply strong { color: #fff; }
.t-terminal .tm-reply code { color: var(--tm-amber); }
.t-terminal .tm-thinking { margin: 12px 0; color: var(--tm-amber); }
.t-terminal .tm-thinking .tm-dim { font-size: 12px; }
.t-terminal .tm-prompt { display: flex; align-items: center; gap: 10px; margin: 8px 18px 4px; padding: 10px 14px; border: 1px solid #3a3a3a; border-radius: 8px; background: #0f0f0f; transition: border-color .2s; }
.t-terminal .tm-prompt:focus-within { border-color: var(--tm-green); }
.t-terminal .tm-prompt input { flex: 1; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; font-size: 14px; caret-color: var(--tm-green); min-width: 0; }
.t-terminal .tm-prompt input::placeholder { color: #555; }
.t-terminal .tm-prompt button { background: none; border: 0; color: var(--tm-dim); font-size: 16px; }
.t-terminal .tm-prompt button:hover { color: var(--tm-green); }
.t-terminal .tm-hints { padding: 4px 32px 12px; font-size: 12px; color: #555; }
.t-terminal .tm-hints span { color: #8a8a8a; }
@media (max-width: 700px) {
    .t-root--terminal { padding: 0; }
    .t-terminal .tm-window { height: 100vh; height: 100dvh; border-radius: 0; border: 0; font-size: 13px; }
    .t-terminal .tm-bar { grid-template-columns: 60px 1fr; }
    .t-terminal .tm-bar-right { display: none; }
    .t-terminal .tm-body { padding: 16px 14px 8px; }
    .t-terminal .tm-prompt { margin: 6px 10px 4px; }
    .t-terminal .tm-hints { padding: 2px 14px 10px; }
    .t-terminal .tm-log-msg { padding-left: 2ch; }
}

/* =====================================================================
   6. CONCENTRIC — orbits around the person
   ===================================================================== */
body.t-concentric {
    --bg-color: #f6f5ff; --card-bg: #fff; --card-border: #e6e3fb;
    --primary-color: #6d5efc; --primary-hover: #5b4de6; --text-main: #1e1b3a; --text-muted: #6b6890;
    font-family: 'Sora', sans-serif; background: radial-gradient(1000px 600px at 50% 0%, #ece9ff 0%, #f6f5ff 60%);
}
.t-root--concentric { max-width: 1120px; margin: 0 auto; padding: 40px 24px 80px; }
.t-concentric .cc-stage { display: grid; grid-template-columns: 480px 1fr; gap: 48px; align-items: center; }
.t-concentric .cc-orbits { position: relative; width: 460px; height: 460px; margin: 0 auto; }
.t-concentric .cc-ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px dashed #c9c3f7; }
.t-concentric .cc-ring--1 { width: 270px; height: 270px; }
.t-concentric .cc-ring--2 { width: 400px; height: 400px; }
.t-concentric .cc-ring--3 { width: 460px; height: 460px; border-style: solid; border-color: #ebe8fd; }
.t-concentric .cc-spin { animation: ccSpin 60s linear infinite; }
.t-concentric .cc-spin--slow { animation-duration: 110s; animation-direction: reverse; }
@keyframes ccSpin { to { transform: rotate(360deg); } }
.t-concentric .cc-chip { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(calc(var(--r, 135px) * -1)); }
.t-concentric .cc-ring--2 .cc-chip { --r: 200px; }
.t-concentric .cc-chip > span { position: absolute; transform: translate(-50%, -50%) rotate(calc(var(--a) * -1)); white-space: nowrap; background: #fff; border: 1px solid var(--card-border); color: var(--text-main); font-size: .74rem; font-weight: 600; padding: 5px 11px; border-radius: 99px; box-shadow: 0 6px 16px rgba(109,94,252,.12); animation: ccCounter 60s linear infinite; }
.t-concentric .cc-ring--2 .cc-chip > span { animation: ccCounter2 110s linear infinite; }
@keyframes ccCounter { from { transform: translate(-50%,-50%) rotate(calc(var(--a) * -1)); } to { transform: translate(-50%,-50%) rotate(calc(var(--a) * -1 - 360deg)); } }
@keyframes ccCounter2 { from { transform: translate(-50%,-50%) rotate(calc(var(--a) * -1)); } to { transform: translate(-50%,-50%) rotate(calc(var(--a) * -1 + 360deg)); } }
.t-concentric .cc-core { position: absolute; inset: 0; margin: auto; width: 120px; height: 120px; }
.t-concentric .cc-avatar { position: relative; z-index: 1; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: 0 16px 40px rgba(109,94,252,.3); background: var(--primary-color); color: #fff; font-size: 2.4rem; }
.t-concentric .cc-pulse { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--primary-color); opacity: 0; }
.t-concentric .cc-core[data-state="thinking"] .cc-pulse, .t-concentric .cc-core[data-state="speaking"] .cc-pulse { animation: ccPulse 1.4s ease-out infinite; }
@keyframes ccPulse { from { transform: scale(.9); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }
.t-concentric .cc-eyebrow { color: var(--primary-color); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; }
.t-concentric .cc-intro h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: 8px 0 16px; }
.t-concentric .cc-intro p { color: var(--text-muted); font-size: 1.08rem; line-height: 1.7; font-weight: 300; }
.t-concentric .cc-chat { max-width: 760px; margin: 40px auto 48px; background: rgba(255,255,255,.75); backdrop-filter: blur(12px); border: 1px solid var(--card-border); border-radius: 26px; padding: 22px; box-shadow: 0 24px 60px rgba(30,27,58,.08); }
.t-concentric .cc-chat-head { font-weight: 600; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.t-concentric .cc-chat-head small { color: var(--text-muted); font-weight: 400; }
.t-concentric .cc-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.15); }
.t-concentric .cc-log { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.t-concentric .cc-msg { max-width: 82%; padding: 12px 16px; border-radius: 18px; line-height: 1.55; font-size: .95rem; animation: ccIn .35s ease; }
@keyframes ccIn { from { opacity: 0; transform: translateY(6px); } }
.t-concentric .cc-msg--agent { background: #f1efff; border-bottom-left-radius: 6px; align-self: flex-start; }
.t-concentric .cc-msg--user { background: var(--primary-color); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.t-concentric .cc-typing { display: flex; gap: 5px; }
.t-concentric .cc-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-color); animation: ccDot 1s infinite; }
.t-concentric .cc-typing i:nth-child(2) { animation-delay: .15s; } .t-concentric .cc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ccDot { 50% { opacity: .25; transform: translateY(-3px); } }
.t-concentric .cc-input { display: flex; gap: 10px; margin-top: 14px; padding: 6px; border-radius: 99px; background: #fff; border: 1px solid var(--card-border); }
.t-concentric .cc-input input { flex: 1; border: 0; outline: 0; padding: 10px 14px; font: inherit; background: transparent; color: var(--text-main); min-width: 0; }
.t-concentric .cc-input button { border: 0; border-radius: 99px; padding: 10px 22px; background: var(--primary-color); color: #fff; font-weight: 600; }
.t-concentric .cc-book { display: block; text-align: center; margin-top: 12px; font-size: .88rem; color: var(--primary-color); text-decoration: none; font-weight: 600; }
.t-concentric .cc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.t-concentric .cc-card { background: #fff; border: 1px solid var(--card-border); border-radius: 22px; padding: 26px; transition: box-shadow .4s, transform .4s, border-color .4s; }
.t-concentric .cc-card.is-lit { border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(109,94,252,.15), 0 20px 40px rgba(109,94,252,.15); transform: translateY(-3px); }
.t-concentric .cc-card h3 { font-size: 1.1rem; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.t-concentric .cc-card h3 i { font-style: normal; font-size: .72rem; color: var(--primary-color); border: 1px solid var(--card-border); border-radius: 99px; padding: 2px 8px; }
.t-concentric .cc-card p, .t-concentric .cc-card li { color: var(--text-muted); line-height: 1.65; font-size: .95rem; }
.t-concentric .cc-card ul { padding-left: 18px; }
.t-concentric .cc-exp + .cc-exp { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--card-border); }
.t-concentric .cc-exp span { display: block; font-size: .8rem; color: var(--primary-color); }
.t-concentric .cc-exp p { margin-top: 4px; }
.t-concentric .cc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.t-concentric .cc-tags span { background: #f1efff; padding: 6px 12px; border-radius: 99px; font-size: .82rem; font-weight: 600; }
@media (max-width: 900px) {
    .t-concentric .cc-stage { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 24px; }
    .t-concentric .cc-orbits { zoom: .7; }
    .t-concentric .cc-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   7. ASSISTANT HUD ("Jarvis") — holographic interface, assistant persona
   ===================================================================== */
body.t-split {
    --bg-color: #02060c; --text-main: #cfefff; --text-muted: #6f97ad;
    --hd-cyan: #5ee7ff; --hd-cyan-dim: rgba(94,231,255,.25); --hd-amber: #ffb84d; --hd-red: #ff5d5d;
    background: #02060c; color: var(--text-main); font-family: 'Rajdhani', sans-serif; font-size: 17px;
}
.t-root--split { min-height: 100vh; overflow: hidden; }
.t-split .hd-grid-bg { position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(94,231,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(94,231,255,.05) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(ellipse at 35% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 35% 45%, #000 20%, transparent 75%); }
.t-split .hd-scan { position: fixed; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 1px, transparent 1px 3px); z-index: 5; }
.t-split .hd-top { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px 28px; border-bottom: 1px solid var(--hd-cyan-dim); font-family: 'Share Tech Mono', monospace; font-size: .82rem; letter-spacing: .12em; color: var(--hd-cyan); }
.t-split .hd-brand em { color: var(--text-muted); font-style: normal; }
.t-split .hd-hex { display: inline-block; animation: hdSpin 8s linear infinite; }
@keyframes hdSpin { to { transform: rotate(360deg); } }
.t-split .hd-clock { font-family: 'Orbitron', sans-serif; font-size: 1.1rem; letter-spacing: .2em; color: #e6fbff; text-shadow: 0 0 12px var(--hd-cyan); }
.t-split .hd-link { text-align: right; }
.t-split .hd-ok { color: #4dffa6; } .t-split .hd-bad { color: var(--hd-red); }
.t-split .hd-main { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(360px, 42%) 1fr; height: calc(100vh - 54px); }
.t-split .hd-console { display: flex; flex-direction: column; padding: 20px 28px 24px; border-right: 1px solid var(--hd-cyan-dim); min-height: 0; }
.t-split .hd-core-wrap { position: relative; height: 300px; flex: none; }
.t-split #hd-core { width: 100%; height: 100%; display: block; }
.t-split .hd-core-label { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-family: 'Share Tech Mono', monospace; font-size: .78rem; letter-spacing: .3em; color: var(--hd-cyan); }
.t-split .hd-core-label span::before, .t-split .hd-core-label span::after { content: ' ▮ '; color: var(--hd-amber); }
.t-split.is-active .hd-core-label, .t-split .is-active .hd-core-label { color: var(--hd-amber); }
.t-split .hd-transcript { flex: 1; min-height: 120px; overflow-y: auto; padding: 12px 4px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: var(--hd-cyan-dim) transparent; }
.t-split .hd-msg { display: grid; grid-template-columns: 76px 1fr; gap: 10px; font-size: 1.02rem; line-height: 1.5; animation: hdIn .4s ease; }
@keyframes hdIn { from { opacity: 0; transform: translateX(-8px); filter: blur(3px); } }
.t-split .hd-who { font-family: 'Share Tech Mono', monospace; font-size: .7rem; letter-spacing: .12em; padding-top: 4px; color: var(--hd-cyan); overflow: hidden; text-overflow: ellipsis; }
.t-split .hd-msg--agent > div { color: #e6fbff; border-left: 2px solid var(--hd-cyan); padding: 2px 0 2px 12px; text-shadow: 0 0 10px rgba(94,231,255,.25); }
.t-split .hd-msg--user .hd-who { color: var(--hd-amber); }
.t-split .hd-msg--user > div { color: #ffe2b8; border-left: 2px solid var(--hd-amber); padding: 2px 0 2px 12px; }
.t-split .hd-msg a { color: var(--hd-cyan) !important; }
.t-split .hd-proc i { animation: hdBlink 1s infinite; font-style: normal; }
.t-split .hd-proc i:nth-child(2) { animation-delay: .2s; } .t-split .hd-proc i:nth-child(3) { animation-delay: .4s; }
@keyframes hdBlink { 50% { opacity: 0; } }
.t-split .hd-directives { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.t-split .hd-directives > * { background: rgba(94,231,255,.06); border: 1px solid var(--hd-cyan-dim); color: var(--hd-cyan); font-family: 'Share Tech Mono', monospace; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); text-decoration: none; transition: background .2s, color .2s; }
.t-split .hd-directives > *:hover { background: var(--hd-cyan); color: #02060c; }
.t-split .hd-directives a { border-color: rgba(255,184,77,.5); color: var(--hd-amber); background: rgba(255,184,77,.06); }
.t-split .hd-input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--hd-cyan-dim); background: rgba(4,20,32,.8); padding: 6px 6px 6px 14px; box-shadow: 0 0 24px rgba(94,231,255,.08) inset; }
.t-split .hd-input:focus-within { border-color: var(--hd-cyan); box-shadow: 0 0 18px rgba(94,231,255,.25), 0 0 24px rgba(94,231,255,.08) inset; }
.t-split .hd-input input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #e6fbff; font: inherit; font-size: 1.05rem; }
.t-split .hd-input input::placeholder { color: #4b7488; }
.t-split .hd-input button { border: 0; background: var(--hd-cyan); color: #02060c; font-family: 'Orbitron', sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: .15em; padding: 10px 16px; text-transform: uppercase; }
.t-split .hd-wave { display: flex; gap: 3px; align-items: center; height: 20px; }
.t-split .hd-wave i { width: 3px; height: 6px; background: var(--hd-cyan); animation: hdWave 1.1s ease-in-out infinite; }
.t-split .hd-wave i:nth-child(2) { animation-delay: .1s; } .t-split .hd-wave i:nth-child(3) { animation-delay: .2s; } .t-split .hd-wave i:nth-child(4) { animation-delay: .3s; } .t-split .hd-wave i:nth-child(5) { animation-delay: .4s; }
@keyframes hdWave { 50% { height: 18px; } }
.t-split .hd-dossier { overflow-y: auto; padding: 24px 28px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; scrollbar-width: thin; scrollbar-color: var(--hd-cyan-dim) transparent; }
.t-split .hd-panel { position: relative; background: linear-gradient(180deg, rgba(10,40,60,.55), rgba(4,16,26,.55)); border: 1px solid rgba(94,231,255,.18); padding: 18px 20px 20px; animation: hdPanel .7s ease both; transition: border-color .4s, box-shadow .4s; }
.t-split .hd-panel:nth-child(2) { animation-delay: .1s; } .t-split .hd-panel:nth-child(3) { animation-delay: .2s; } .t-split .hd-panel:nth-child(4) { animation-delay: .3s; } .t-split .hd-panel:nth-child(5) { animation-delay: .4s; }
@keyframes hdPanel { from { opacity: 0; transform: translateY(10px); clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.t-split .hd-panel.is-lit { border-color: var(--hd-amber); box-shadow: 0 0 30px rgba(255,184,77,.18); }
.t-split .hd-panel--wide { grid-column: 1 / -1; }
.t-split .hd-c { position: absolute; width: 12px; height: 12px; border-color: var(--hd-cyan); border-style: solid; }
.t-split .hd-c--tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; } .t-split .hd-c--tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.t-split .hd-c--bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; } .t-split .hd-c--br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.t-split .hd-panel.is-lit .hd-c { border-color: var(--hd-amber); }
.t-split .hd-panel > header { font-family: 'Orbitron', sans-serif; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--hd-cyan); margin-bottom: 14px; display: flex; gap: 12px; align-items: center; }
.t-split .hd-panel > header span { font-family: 'Share Tech Mono', monospace; color: var(--hd-amber); }
.t-split .hd-panel > header::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--hd-cyan-dim), transparent); }
.t-split .hd-subject { display: flex; gap: 20px; align-items: center; margin-bottom: 14px; }
.t-split .hd-portrait { position: relative; width: 104px; height: 104px; flex: none; border-radius: 50%; padding: 4px; border: 1px solid var(--hd-cyan); box-shadow: 0 0 20px rgba(94,231,255,.3); overflow: hidden; }
.t-split .hd-portrait-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: saturate(.4) brightness(1.05) sepia(.2) hue-rotate(150deg); background: #0a2a3a; color: var(--hd-cyan); font-family: 'Orbitron'; font-size: 1.6rem; }
.t-split .hd-portrait-scan { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(transparent, rgba(94,231,255,.45), transparent); animation: hdScan 2.6s linear infinite; }
@keyframes hdScan { from { top: -30%; } to { top: 100%; } }
.t-split .hd-name { font-family: 'Orbitron', sans-serif; font-size: 1.6rem; font-weight: 700; color: #fff; letter-spacing: .04em; text-shadow: 0 0 14px rgba(94,231,255,.5); }
.t-split .hd-sub { color: var(--hd-cyan); font-weight: 600; font-size: 1.05rem; }
.t-split .hd-status { font-family: 'Share Tech Mono', monospace; font-size: .74rem; letter-spacing: .12em; margin-top: 6px; color: var(--text-muted); }
.t-split .hd-text { color: #b5d9ea; line-height: 1.6; font-size: 1.05rem; }
.t-split .hd-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.t-split .hd-metrics b { display: block; font-family: 'Orbitron', sans-serif; font-size: 2rem; color: #fff; text-shadow: 0 0 14px var(--hd-cyan); }
.t-split .hd-metrics span { font-family: 'Share Tech Mono', monospace; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.t-split .hd-skills { display: flex; flex-direction: column; gap: 9px; }
.t-split .hd-skill { font-weight: 600; font-size: .98rem; }
.t-split .hd-skill i { display: block; height: 4px; margin-top: 4px; background: rgba(94,231,255,.1); position: relative; overflow: hidden; }
.t-split .hd-skill i::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--hd-cyan) 0 10px, transparent 10px 12px); transform-origin: left; animation: hdFill 1.2s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
@keyframes hdFill { from { transform: scaleX(0); } }
.t-split .hd-log { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.t-split .hd-log li { display: grid; grid-template-columns: 46px 1fr; gap: 10px; line-height: 1.45; }
.t-split .hd-log li span { font-family: 'Share Tech Mono', monospace; color: var(--hd-amber); }
.t-split .hd-log strong { color: #fff; }
.t-split .hd-rec { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 10px 0; border-top: 1px dashed rgba(94,231,255,.15); }
.t-split .hd-rec:first-child { border-top: 0; padding-top: 0; }
.t-split .hd-rec-d { font-family: 'Share Tech Mono', monospace; font-size: .8rem; color: var(--hd-amber); padding-top: 3px; }
.t-split .hd-rec b { color: #fff; font-size: 1.08rem; }
.t-split .hd-rec span { color: var(--hd-cyan); }
.t-split .hd-rec p { color: #9cc3d6; margin-top: 2px; }
@media (max-width: 980px) {
    .t-root--split { overflow: visible; }
    .t-split .hd-top { grid-template-columns: 1fr auto; padding: 12px 16px; }
    .t-split .hd-brand em, .t-split .hd-link { display: none; }
    .t-split .hd-main { grid-template-columns: minmax(0, 1fr); height: auto; }
    .t-split .hd-console, .t-split .hd-dossier { min-width: 0; }
    .t-split .hd-console { border-right: 0; border-bottom: 1px solid var(--hd-cyan-dim); padding: 12px 16px 18px; }
    .t-split .hd-core-wrap { height: 220px; }
    .t-split .hd-transcript { max-height: 300px; }
    .t-split .hd-dossier { grid-template-columns: 1fr; padding: 18px 16px 40px; overflow: visible; }
    .t-split .hd-rec { grid-template-columns: 1fr; gap: 2px; }
}

/* =====================================================================
   8. EDITORIAL — magazine feature
   ===================================================================== */
body.t-editorial {
    --bg-color: #f4efe4; --card-bg: #fbf8f1; --card-border: #1a1a1a;
    --primary-color: #b3261e; --primary-hover: #8f1d17; --text-main: #1a1a1a; --text-muted: #5f5a52;
    font-family: 'Source Serif 4', Georgia, serif; background: var(--bg-color);
}
.t-root--editorial { max-width: 1160px; margin: 0 auto; padding: 0 28px 40px; }
.t-editorial .ed-mast { padding-top: 22px; border-bottom: 4px double #1a1a1a; text-align: center; }
.t-editorial .ed-mast-top { display: flex; justify-content: space-between; gap: 12px; font-family: 'Inter', sans-serif; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted); border-bottom: 1px solid #1a1a1a; padding-bottom: 10px; }
.t-editorial .ed-mast-name { font-family: 'Playfair Display', serif; font-weight: 900; font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: 1; padding: 18px 0 14px; letter-spacing: -.02em; }
.t-editorial .ed-mast-nav { display: flex; justify-content: center; gap: 28px; border-top: 1px solid #1a1a1a; padding: 10px 0; font-family: 'Inter', sans-serif; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
.t-editorial .ed-mast-nav a { text-decoration: none; }
.t-editorial .ed-mast-nav a:hover { color: var(--primary-color); }
.t-editorial .ed-feature { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; padding: 48px 0 36px; border-bottom: 1px solid #1a1a1a; }
.t-editorial .ed-kicker, .t-editorial h1, .t-editorial .ed-deck, .t-editorial .ed-byline { grid-column: 1 / -1; }
.t-editorial .ed-kicker { font-family: 'Inter', sans-serif; font-weight: 700; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--primary-color); }
.t-editorial h1 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: clamp(3rem, 9vw, 7rem); line-height: .95; letter-spacing: -.03em; margin: 10px 0 18px; }
.t-editorial .ed-deck { font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.35; max-width: 880px; color: #2b2b2b; }
.t-editorial .ed-byline { font-family: 'Inter', sans-serif; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin: 18px 0 32px; padding-bottom: 16px; border-bottom: 1px solid #c9c1b2; color: var(--text-muted); }
.t-editorial .ed-fig { margin: 0; }
.t-editorial .ed-fig img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1) contrast(1.05); display: block; }
.t-editorial .ed-fig figcaption { font-family: 'Inter', sans-serif; font-size: .75rem; color: var(--text-muted); margin-top: 8px; border-top: 1px solid #c9c1b2; padding-top: 6px; }
.t-editorial .ed-body { font-size: 1.12rem; line-height: 1.75; }
.t-editorial .ed-feature:not(:has(.ed-fig)) .ed-body { grid-column: 1 / -1; columns: 2; column-gap: 48px; column-rule: 1px solid #c9c1b2; }
.t-editorial .ed-body p + p { margin-top: 1em; }
.t-editorial .ed-body b { font-weight: 600; }
.t-editorial .ed-dropcap::first-letter { float: left; font-family: 'Playfair Display', serif; font-weight: 900; font-size: 5.2rem; line-height: .8; padding: 8px 10px 0 0; color: var(--primary-color); }
.t-editorial .ed-pull { break-inside: avoid; margin: 28px 0; padding: 18px 0; border-top: 3px solid #1a1a1a; border-bottom: 1px solid #1a1a1a; font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.6rem; line-height: 1.3; }
.t-editorial .ed-lower { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding: 36px 0; border-bottom: 1px solid #1a1a1a; }
.t-editorial .ed-lower h2, .t-editorial .ed-int-head h2 { font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; border-bottom: 3px solid #1a1a1a; padding-bottom: 8px; margin-bottom: 18px; }
.t-editorial .ed-high ol { list-style: none; counter-reset: ed; }
.t-editorial .ed-high li { counter-increment: ed; display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid #c9c1b2; font-size: 1.15rem; line-height: 1.5; }
.t-editorial .ed-high li::before { content: counter(ed); font-family: 'Playfair Display', serif; font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--primary-color); }
.t-editorial .ed-brief { background: var(--card-bg); border: 1px solid #1a1a1a; padding: 22px; align-self: start; }
.t-editorial .ed-brief dt { font-family: 'Inter', sans-serif; font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--primary-color); margin-top: 14px; }
.t-editorial .ed-brief dt:first-child { margin-top: 0; }
.t-editorial .ed-brief dd { margin-top: 4px; line-height: 1.55; }
.t-editorial .ed-brief a { color: var(--primary-color); }
.t-editorial .ed-interview { padding: 40px 0 20px; max-width: 820px; margin: 0 auto; }
.t-editorial .ed-int-head p { font-style: italic; color: var(--text-muted); margin: -6px 0 20px; }
.t-editorial .ed-turn { padding: 18px 0; border-bottom: 1px solid #c9c1b2; }
.t-editorial .ed-turn.is-new { animation: edIn .5s ease; }
@keyframes edIn { from { opacity: 0; } }
.t-editorial .ed-turn h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.35rem; line-height: 1.3; margin-bottom: 8px; }
.t-editorial .ed-turn p { font-size: 1.1rem; line-height: 1.7; }
.t-editorial .ed-turn p + p { margin-top: .7em; }
.t-editorial .ed-pending { font-style: italic; color: var(--text-muted); }
.t-editorial .ed-ask { display: flex; margin-top: 24px; border: 2px solid #1a1a1a; background: var(--card-bg); }
.t-editorial .ed-ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 16px 18px; font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.15rem; color: var(--text-main); }
.t-editorial .ed-ask button { border: 0; background: #1a1a1a; color: #f4efe4; padding: 0 28px; font-family: 'Inter', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; }
.t-editorial .ed-ask button:hover { background: var(--primary-color); }
.t-editorial .ed-foot { text-align: center; font-family: 'Inter', sans-serif; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--text-muted); padding: 40px 0 0; border-top: 4px double #1a1a1a; margin-top: 40px; }
@media (max-width: 820px) {
    .t-editorial .ed-mast-top span:nth-child(3) { display: none; }
    .t-editorial .ed-mast-nav { gap: 16px; flex-wrap: wrap; }
    .t-editorial .ed-feature, .t-editorial .ed-lower { grid-template-columns: 1fr; }
    .t-editorial .ed-fig { margin-bottom: 24px; }
    .t-editorial .ed-feature:not(:has(.ed-fig)) .ed-body { columns: 1; }
}

/* =====================================================================
   9. NODE GRAPH — live knowledge graph
   ===================================================================== */
body.t-graph {
    --bg-color: #0b1020; --text-main: #e2e8f0; --text-muted: #94a3b8;
    background: #0b1020; color: var(--text-main); font-family: 'IBM Plex Sans', sans-serif; overflow: hidden;
}
.t-root--graph { position: relative; height: 100vh; height: 100dvh; background-image: radial-gradient(rgba(148,163,184,.14) 1px, transparent 1px); background-size: 24px 24px; }
.t-graph .gr-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.t-graph .gr-panel { position: absolute; top: 20px; left: 20px; bottom: 20px; width: 360px; display: flex; flex-direction: column; gap: 14px; padding: 20px; background: rgba(15,23,42,.82); backdrop-filter: blur(10px); border: 1px solid rgba(148,163,184,.18); border-radius: 14px; overflow: hidden; }
.t-graph .gr-id { display: flex; gap: 12px; align-items: center; }
.t-graph .gr-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid #f8fafc; background: #1e293b; color: #fff; }
.t-graph .gr-id h1 { font-size: 1.15rem; font-weight: 600; }
.t-graph .gr-id span { font-family: 'IBM Plex Mono', monospace; font-size: .75rem; color: #38bdf8; }
.t-graph .gr-summary { font-size: .88rem; line-height: 1.6; color: #cbd5e1; }
.t-graph .gr-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-family: 'IBM Plex Mono', monospace; font-size: .7rem; color: var(--text-muted); }
.t-graph .gr-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; border: 2px solid; }
.t-graph .k-root { border-color: #f8fafc !important; background: #f8fafc; } .t-graph .k-hub { border-color: #38bdf8 !important; } .t-graph .k-skill { border-color: #a78bfa !important; }
.t-graph .k-role { border-color: #34d399 !important; } .t-graph .k-win { border-color: #fbbf24 !important; } .t-graph .k-qa { border-color: #f472b6 !important; }
.t-graph .gr-query label { display: block; font-family: 'IBM Plex Mono', monospace; font-size: .72rem; color: var(--text-muted); margin-bottom: 6px; }
.t-graph .gr-query > div { display: flex; gap: 6px; padding: 5px; border: 1px solid rgba(56,189,248,.35); border-radius: 10px; background: rgba(2,6,23,.6); }
.t-graph .gr-query input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; font-size: .88rem; padding: 6px 8px; }
.t-graph .gr-query button { border: 0; border-radius: 7px; background: #38bdf8; color: #0b1020; font-family: 'IBM Plex Mono', monospace; font-weight: 500; padding: 6px 14px; }
.t-graph .gr-out { flex: 1; overflow-y: auto; font-size: .86rem; line-height: 1.55; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.t-graph .gr-q { font-family: 'IBM Plex Mono', monospace; color: #f472b6; font-size: .8rem; }
.t-graph .gr-q span { color: var(--text-muted); }
.t-graph .gr-wait { color: var(--text-muted); animation: hdBlink 1s infinite; }
.t-graph .gr-a { color: #cbd5e1; padding-left: 12px; border-left: 2px solid rgba(244,114,182,.4); }
.t-graph .gr-a a { color: #38bdf8 !important; }
.t-graph .gr-book { font-family: 'IBM Plex Mono', monospace; font-size: .82rem; color: #fbbf24; text-decoration: none; }
.t-graph .gr-hint { font-family: 'IBM Plex Mono', monospace; font-size: .68rem; color: #475569; }
.t-graph .gr-detail { position: absolute; top: 20px; right: 20px; width: 340px; max-height: calc(100% - 40px); overflow-y: auto; padding: 18px 20px; background: rgba(15,23,42,.92); border: 1px solid rgba(148,163,184,.22); border-radius: 14px; font-size: .9rem; line-height: 1.6; color: #cbd5e1; }
.t-graph .gr-detail[hidden] { display: none; }
.t-graph .gr-detail button { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--text-muted); }
.t-graph .gr-detail-k { font-family: 'IBM Plex Mono', monospace; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #38bdf8; }
.t-graph .gr-detail h3 { color: #fff; font-size: 1.05rem; margin: 4px 0 10px; padding-right: 20px; }
.t-graph .gr-mono { font-family: 'IBM Plex Mono', monospace; font-size: .78rem; color: #34d399; }
@media (max-width: 900px) {
    body.t-graph { overflow: auto; }
    .t-root--graph { height: auto; display: flex; flex-direction: column; }
    .t-graph .gr-canvas { position: relative; height: 60vh; order: 2; }
    .t-graph .gr-panel { position: relative; inset: auto; width: auto; margin: 12px; order: 1; }
    .t-graph .gr-out { max-height: 240px; }
    .t-graph .gr-detail { position: fixed; top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; max-height: 45vh; z-index: 10; }
}
