/* ============================================================
   ThalaivanTech — Corporate Design System (TCS-inspired)
   Clean, editorial, enterprise. All layout-critical rules are
   GLOBAL so the site never depends on a scoped-CSS bundle.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Tokens ---------- */
:root {
    /* Brand */
    --ink: #0a1f44;          /* deep navy — primary text & brand */
    --ink-2: #12305f;
    --brand: #1f4fff;        /* electric indigo-blue accent */
    --brand-dark: #163bcc;
    --teal: #12b3a6;

    /* Neutrals */
    --bg: #ffffff;
    --bg-soft: #f4f6fb;
    --bg-band: #eef2fa;
    --line: #e2e7f0;
    --line-2: #d3dae7;

    /* Text */
    --text: #16233b;
    --muted: #5a6b86;
    --dim: #8794a8;
    --on-dark: #eef2fb;
    --on-dark-muted: #a9b6cf;

    /* Type */
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: 'Sora', 'Inter', system-ui, sans-serif;

    /* Shape */
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(10, 31, 68, 0.06);
    --shadow: 0 10px 30px rgba(10, 31, 68, 0.10);
    --shadow-lg: 0 24px 60px rgba(10, 31, 68, 0.16);

    --header-h: 4.5rem;
    color-scheme: light;

    /* Back-compat aliases for page-scoped CSS (Careers/Contact/Insights) */
    --tt-radius: var(--radius);
    --tt-radius-lg: var(--radius-lg);
    --tt-border: var(--line);
    --tt-border-strong: var(--line-2);
    --tt-text: var(--text);
    --tt-text-muted: var(--muted);
    --tt-text-dim: var(--dim);
    --tt-bg: var(--bg);
    --tt-bg-2: var(--bg-soft);
    --tt-surface: #ffffff;
    --tt-glass: #ffffff;
    --tt-blue: var(--brand);
    --tt-blue-glow: rgba(31, 79, 255, 0.14);
    --tt-purple: #6b46e5;
    --tt-purple-glow: rgba(107, 70, 229, 0.14);
    --tt-emerald: var(--teal);
    --tt-emerald-glow: rgba(18, 179, 166, 0.16);
    --tt-shadow: var(--shadow);
    --tt-grad: linear-gradient(135deg, var(--brand), var(--teal));
    --tt-grad-3: linear-gradient(120deg, var(--brand), #6b46e5 55%, var(--teal));
}

/* ---------- Base ---------- */
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0;
    font-weight: 700;
}

p { margin: 0; color: var(--muted); }

::selection { background: rgba(31, 79, 255, 0.16); }

/* ---------- Layout ---------- */
.tt-container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.tt-section { padding-block: 5.5rem; position: relative; }
.tt-section-sm { padding-block: 3.25rem; }
.tt-band { background: var(--bg-soft); }
.tt-band-2 { background: var(--ink); color: var(--on-dark); }

.tt-center { text-align: center; }
.tt-center .tt-section-lead { margin-inline: auto; }

/* Section header */
.tt-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.9rem;
}

.tt-section-title {
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    margin: 0 0 1rem;
    color: var(--ink);
}

.tt-section-lead {
    font-size: 1.1rem;
    max-width: 44rem;
    color: var(--muted);
}

.tt-accent { color: var(--brand); }
.tt-text-gradient {
    background: linear-gradient(90deg, var(--brand), var(--teal));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.tt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    border: 1.5px solid transparent;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}
.tt-btn:hover { transform: translateY(-1px); }

.tt-btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(31, 79, 255, 0.22); }
.tt-btn-primary:hover { background: var(--brand-dark); color: #fff; }

.tt-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.tt-btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.tt-btn-dark { background: var(--ink); color: #fff; }
.tt-btn-dark:hover { background: var(--ink-2); color: #fff; }

.tt-btn-light { background: #fff; color: var(--ink); }
.tt-btn-light:hover { background: var(--on-dark); }

.tt-btn-block { width: 100%; justify-content: center; }
.tt-btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.tt-link-arrow {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-weight: 600; color: var(--brand);
}
.tt-link-arrow::after { content: "\2192"; transition: transform 0.2s ease; }
.tt-link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Chips / badges ---------- */
.tt-chip {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.8rem; border-radius: 999px;
    font-size: 0.8rem; font-weight: 600;
    color: var(--ink); background: var(--bg-band); border: 1px solid var(--line);
}

/* ============================================================
   HEADER — two-row (utility bar + main nav)
   ============================================================ */
.tt-topbar {
    background: var(--ink);
    color: var(--on-dark-muted);
    font-size: 0.82rem;
}
.tt-topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 2.4rem;
}
.tt-topbar a { color: var(--on-dark-muted); transition: color 0.2s ease; }
.tt-topbar a:hover { color: #fff; }
.tt-topbar-links { display: flex; gap: 1.5rem; }

.tt-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.tt-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h);
}

/* Logo lockup */
.tt-logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.tt-logo-mark { border-radius: 10px; }
.tt-logo-word {
    font-family: var(--font-display);
    font-size: 1.28rem; font-weight: 700; color: var(--ink);
    letter-spacing: -0.02em;
}
.tt-logo-word strong { color: var(--brand); font-weight: 800; }
.tt-logo-light .tt-logo-word { color: #fff; }
.tt-logo-light .tt-logo-word strong { color: var(--teal); }

/* Main nav */
.tt-nav { display: flex; align-items: center; gap: 0.35rem; }
.tt-nav-link {
    position: relative;
    padding: 0.6rem 0.95rem; border-radius: 8px;
    color: var(--ink); font-size: 0.96rem; font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}
.tt-nav-link:hover { color: var(--brand); }
.tt-nav-link.active { color: var(--brand); }
.tt-nav-link.active::after {
    content: ""; position: absolute; left: 0.95rem; right: 0.95rem; bottom: -2px;
    height: 3px; border-radius: 3px; background: var(--brand);
}
.tt-nav-cta { margin-left: 0.75rem; padding: 0.6rem 1.4rem; }

.tt-nav-toggle {
    display: none;
    width: 2.75rem; height: 2.75rem; border-radius: 8px;
    border: 1px solid var(--line-2); background: #fff;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.tt-nav-toggle span { width: 1.25rem; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s; }

@media (max-width: 1000px) {
    .tt-nav-toggle { display: flex; }
    .tt-nav {
        position: absolute; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0.15rem;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: 0.75rem 1.5rem 1.25rem;
        box-shadow: var(--shadow);
        transform: translateY(-10px); opacity: 0; pointer-events: none;
        transition: 0.2s ease;
    }
    .tt-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .tt-nav-link { padding: 0.85rem 0.75rem; }
    .tt-nav-link.active::after { display: none; }
    .tt-nav-cta { margin: 0.5rem 0 0; text-align: center; justify-content: center; }
    .tt-topbar { display: none; }
}

/* ============================================================
   HERO — editorial
   ============================================================ */
.tt-hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(60rem 40rem at 88% -10%, rgba(31, 79, 255, 0.10), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
    border-bottom: 1px solid var(--line);
}
.tt-hero-inner {
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center;
    padding-block: 5rem 4.5rem;
}
.tt-hero-kicker {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.9rem; border-radius: 999px;
    background: #fff; border: 1px solid var(--line);
    font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.tt-hero-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.tt-hero h1 {
    font-size: clamp(2.4rem, 4.6vw, 3.9rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}
.tt-hero-lead {
    font-size: 1.2rem; color: var(--muted);
    margin-top: 1.5rem; max-width: 34rem;
}
.tt-hero-actions { display: flex; gap: 1rem; margin-top: 2.25rem; flex-wrap: wrap; }

/* Hero visual card */
.tt-hero-visual { position: relative; }
.tt-hero-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 1.75rem;
}
.tt-hero-card-row {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.tt-hero-card-row:last-child { border-bottom: none; }
.tt-hero-card-ic {
    width: 2.75rem; height: 2.75rem; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
    background: var(--bg-band); color: var(--brand);
}
.tt-hero-card-row h4 { font-size: 1rem; margin: 0 0 0.15rem; font-family: var(--font-body); }
.tt-hero-card-row p { font-size: 0.88rem; margin: 0; }

@media (max-width: 900px) {
    .tt-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 3.5rem; }
    .tt-hero-visual { order: -1; }
}

/* ---------- Stat strip ---------- */
.tt-statstrip {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
}
.tt-statstrip > div {
    padding: 2rem 1.5rem; text-align: center;
    border-right: 1px solid var(--line);
}
.tt-statstrip > div:last-child { border-right: none; }
.tt-stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: var(--ink); line-height: 1;
}
.tt-stat-label { color: var(--muted); font-size: 0.92rem; margin-top: 0.4rem; }
@media (max-width: 760px) {
    .tt-statstrip { grid-template-columns: repeat(2, 1fr); }
    .tt-statstrip > div:nth-child(2) { border-right: none; }
    .tt-statstrip > div:nth-child(1), .tt-statstrip > div:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Logo trust row ---------- */
.tt-trust-caption {
    text-align: center; font-size: 0.82rem; text-transform: uppercase;
    letter-spacing: 0.14em; color: var(--dim); margin: 0 0 1.5rem;
}
.tt-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1rem; }
.tt-logo-pill {
    padding: 0.5rem 1.25rem; border-radius: 8px;
    border: 1px solid var(--line); background: #fff;
    color: var(--muted); font-weight: 700; letter-spacing: 0.01em;
}

/* ============================================================
   TILES / CARDS
   ============================================================ */
.tt-grid { display: grid; gap: 1.5rem; }
.tt-grid-2 { grid-template-columns: repeat(2, 1fr); }
.tt-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tt-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .tt-grid-3, .tt-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tt-grid-2, .tt-grid-3, .tt-grid-4 { grid-template-columns: 1fr; } }

.tt-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}
.tt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tt-card h3 { font-size: 1.2rem; margin: 0 0 0.55rem; font-family: var(--font-body); font-weight: 700; }
.tt-card p { font-size: 0.96rem; margin: 0; }

/* Tile with top accent bar (TCS-style) */
.tt-tile {
    display: block; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.9rem 1.75rem;
    position: relative; overflow: hidden; height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tt-tile::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--teal));
    transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.tt-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tt-tile:hover::before { transform: scaleX(1); }
.tt-tile-num { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--brand); }
.tt-tile h3 { font-size: 1.25rem; margin: 0.75rem 0 0.6rem; font-family: var(--font-body); font-weight: 700; }
.tt-tile p { font-size: 0.96rem; margin: 0 0 1.1rem; }

.tt-card-icon {
    width: 3rem; height: 3rem; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 1.1rem;
    background: var(--bg-band); color: var(--brand); border: 1px solid var(--line);
}
.tt-card-icon.purple { background: rgba(31, 79, 255, 0.08); }
.tt-card-icon.emerald { background: rgba(18, 179, 166, 0.10); color: var(--teal); }

.tt-card-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; font-weight: 600; color: var(--brand); font-size: 0.94rem; }
.tt-card-link::after { content: "\2192"; transition: transform 0.2s ease; }
.tt-card-link:hover::after { transform: translateX(4px); }

/* ---------- Split feature ---------- */
.tt-split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; align-items: center; }
.tt-split.reverse .tt-split-visual { order: -1; }
@media (max-width: 900px) { .tt-split { grid-template-columns: 1fr; } .tt-split.reverse .tt-split-visual { order: 0; } }

.tt-feature-list { display: grid; gap: 0.85rem; margin-top: 1.5rem; }
.tt-feature-list li { position: relative; padding-left: 1.9rem; color: var(--text); }
.tt-feature-list li::before {
    content: "\2713"; position: absolute; left: 0; top: 0.05rem;
    width: 1.3rem; height: 1.3rem; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 800; color: #fff; background: var(--brand);
}

.tt-check-list { display: grid; gap: 0.85rem; margin: 1.5rem 0 2rem; }
.tt-check-list li { position: relative; padding-left: 2rem; color: var(--muted); }
.tt-check-list li::before {
    content: "\2713"; position: absolute; left: 0; top: 0;
    width: 1.4rem; height: 1.4rem; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 800; color: var(--brand);
    background: var(--bg-band); border: 1px solid var(--line);
}

/* ---------- Timeline ---------- */
.tt-timeline { display: grid; gap: 1rem; margin-top: 2.5rem; }
.tt-timeline-step {
    display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start;
    padding: 1.5rem 1.75rem; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--line);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.tt-timeline-step:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.tt-timeline-num {
    width: 3rem; height: 3rem; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
    color: #fff; background: var(--ink);
}
.tt-timeline-step h3 { font-size: 1.15rem; margin: 0.25rem 0 0.4rem; font-family: var(--font-body); }
.tt-timeline-step p { margin: 0; font-size: 0.95rem; }

/* ---------- Inner page hero ---------- */
.tt-page-hero {
    position: relative; overflow: hidden;
    padding-block: 4.5rem 3.5rem; text-align: center;
    background:
        radial-gradient(50rem 30rem at 15% -30%, rgba(31, 79, 255, 0.08), transparent 60%),
        var(--bg-soft);
    border-bottom: 1px solid var(--line);
}
.tt-page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin: 0.75rem 0 0; }
.tt-page-hero-lead { font-size: 1.15rem; max-width: 46rem; margin: 1.25rem auto 0; color: var(--muted); }

/* ---------- Stats block (cards) ---------- */
.tt-stat-value.tt-metric-value { font-size: clamp(2rem, 4vw, 2.8rem); }

/* ---------- CTA band ---------- */
.tt-cta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
    padding: 3rem; border-radius: var(--radius-lg);
    background: var(--ink); color: var(--on-dark);
}
.tt-cta h2 { color: #fff; }
.tt-cta p { color: var(--on-dark-muted); }
.tt-cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Testimonial ---------- */
.tt-testimonial {
    max-width: 50rem; margin: 2.5rem auto 0; padding: 3rem 2.5rem; text-align: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.tt-testimonial-text { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.55rem); color: var(--ink); line-height: 1.4; font-weight: 600; }
.tt-testimonial-author { display: inline-flex; align-items: center; gap: 0.9rem; margin-top: 1.75rem; text-align: left; }
.tt-avatar { width: 3rem; height: 3rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: var(--ink); }
.tt-testimonial-author strong { display: block; color: var(--ink); }
.tt-testimonial-author span { font-size: 0.88rem; color: var(--dim); }
.tt-testimonial-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.75rem; }
.tt-dot-btn { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: none; background: var(--line-2); transition: 0.2s; }
.tt-dot-btn.active { width: 26px; border-radius: 999px; background: var(--brand); }

/* ---------- Forms ---------- */
.tt-field { margin-bottom: 1.15rem; }
.tt-label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--ink); margin-bottom: 0.45rem; }
.tt-input, .tt-textarea, .tt-select {
    width: 100%; padding: 0.8rem 1rem;
    background: #fff; border: 1.5px solid var(--line-2); border-radius: 10px;
    color: var(--text); font-size: 0.98rem; font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tt-textarea { resize: vertical; min-height: 140px; }
.tt-input::placeholder, .tt-textarea::placeholder { color: var(--dim); }
.tt-input:focus, .tt-textarea:focus, .tt-select:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(31, 79, 255, 0.12);
}
.tt-file {
    display: block; width: 100%; padding: 0.8rem 1rem;
    background: var(--bg-soft); border: 1.5px dashed var(--line-2); border-radius: 10px;
    color: var(--muted); cursor: pointer;
}
.tt-file:hover { border-color: var(--brand); }
.tt-file::file-selector-button { margin-right: 0.9rem; padding: 0.4rem 0.9rem; border-radius: 8px; border: none; background: var(--brand); color: #fff; font-weight: 600; }
.validation-message, .tt-validation { color: #d33; font-size: 0.85rem; margin-top: 0.35rem; display: block; }
.invalid { border-color: #e88 !important; }

.tt-alert { padding: 0.9rem 1.15rem; border-radius: 10px; font-size: 0.94rem; margin-bottom: 1.25rem; border: 1px solid transparent; }
.tt-alert.success { background: rgba(18, 179, 166, 0.10); border-color: rgba(18, 179, 166, 0.35); color: #0a6e66; }
.tt-alert.error { background: rgba(221, 51, 51, 0.08); border-color: rgba(221, 51, 51, 0.3); color: #a12; }

/* ---------- Divider ---------- */
.tt-divider { height: 1px; background: var(--line); border: none; margin: 0; }

/* ---------- Back-compat surface for page-scoped blocks ---------- */
.tt-glass {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}

/* ---------- Expander (Learn more disclosure) ---------- */
.tt-expander { margin-top: 1rem; }
.tt-expander-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0; background: none; border: none;
    color: var(--brand); font-weight: 600; font-size: 0.94rem;
}
.tt-expander-btn:hover { color: var(--brand-dark); }
.tt-expander-chevron { transition: transform 0.25s ease; }
.tt-expander.open .tt-expander-chevron { transform: rotate(180deg); }
.tt-expander-body {
    margin-top: 1rem; padding-top: 1rem;
    border-top: 1px dashed var(--line-2);
    animation: tt-fade-up 0.3s ease both;
}
.tt-detail-list { display: grid; gap: 0.6rem; }
.tt-detail-list li {
    position: relative; padding-left: 1.6rem;
    font-size: 0.92rem; color: var(--muted); line-height: 1.5;
}
.tt-detail-list li::before {
    content: ""; position: absolute; left: 0; top: 0.55rem;
    width: 7px; height: 7px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--teal));
}
.tt-detail-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.tt-detail-label {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--dim); margin: 0 0 0.5rem;
}
.tt-case-detail-p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; margin: 0; }
.tt-detail-label .tt-case-dot { margin-right: 0.45rem; vertical-align: middle; }

/* ============================================================
   FOOTER — large, dark, multi-column
   ============================================================ */
.tt-footer { background: var(--ink); color: var(--on-dark-muted); padding-top: 4rem; }
.tt-footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem;
    padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.tt-footer-brand p { color: var(--on-dark-muted); max-width: 22rem; margin: 1.1rem 0 0; font-size: 0.95rem; }
.tt-footer-social { display: flex; gap: 0.6rem; margin-top: 1.3rem; }
.tt-footer-social a {
    width: 2.4rem; height: 2.4rem; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--on-dark); font-weight: 700; font-size: 0.85rem; transition: 0.2s;
}
.tt-footer-social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.tt-footer-col h4 { font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin: 0 0 1.1rem; }
.tt-footer-col a { display: block; color: var(--on-dark-muted); font-size: 0.94rem; margin-bottom: 0.7rem; transition: color 0.2s ease; }
.tt-footer-col a:hover { color: #fff; }
.tt-footer-bottom {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    padding-block: 1.5rem; color: var(--dim); font-size: 0.86rem;
}
.tt-footer-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tt-footer-badges .tt-chip { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: var(--on-dark); }
@media (max-width: 900px) { .tt-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tt-footer-grid { grid-template-columns: 1fr; } }

/* ---------- Shell ---------- */
.tt-shell { display: flex; flex-direction: column; min-height: 100vh; }
.tt-main { flex: 1; }

/* ---------- Animations ---------- */
@keyframes tt-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.tt-animate { animation: tt-fade-up 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.tt-delay-1 { animation-delay: 0.08s; } .tt-delay-2 { animation-delay: 0.16s; } .tt-delay-3 { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; } }

/* ---------- Blazor error UI ---------- */
#blazor-error-ui {
    color-scheme: light; background: #ffd75a; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    box-sizing: border-box; display: none; left: 0; padding: 0.7rem 1.25rem; position: fixed; width: 100%; z-index: 1000; color: #202020;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
.blazor-error-boundary { background: #b32121; padding: 1rem 1.5rem; color: white; border-radius: 10px; }
.blazor-error-boundary::after { content: "An error has occurred."; }
