/* ════════════════════════════════════
   HEADER WRAP — floats over hero
════════════════════════════════════ */
.tn-header-wrap {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 40;
}

/* ════════════════════════════════════
   TOPBAR
════════════════════════════════════ */
.tn-topbar {
    display: none;
    position: relative;
    background: var(--tn-accent);
    padding: 0 24px;
}
@media (min-width: 768px) { .tn-topbar { display: block; } }
.tn-topbar__inner {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 32px;
    padding: 16px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
}
.tn-topbar__inner a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.tn-topbar__inner a:hover { color: #fff; text-decoration: none; }
.tn-topbar__sep { width: 1px; height: 16px; background: rgba(255,255,255,0.25); flex-shrink: 0; }

/* ════════════════════════════════════
   HEADER + PILL NAV
════════════════════════════════════ */
.tn-header {
    position: relative;
    z-index: 40;
    padding: 12px 0 0;
    margin-top: 14px;
}
@media (min-width: 768px) { .tn-header { padding-top: 16px; } }
.tn-pill {
    position: relative;
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(251,249,249,0.90);
    backdrop-filter: blur(24px);
    border-radius: 100px;
    box-shadow: 0 20px 55px -24px rgba(0,0,0,0.34);
    outline: 1px solid rgba(255,255,255,0.30);
    padding: 8px 16px 8px 36px;
}
@media (min-width: 768px) {
    .tn-pill { padding: 18px 20px 18px 44px; }
}
.tn-pill__logo img {
    height: 32px;
    width: auto;
    display: block;
    transition: opacity 0.2s;
}
.tn-pill__logo:hover img { opacity: 0.8; }
@media (min-width: 768px) { .tn-pill__logo img { height: 36px; } }

/* Desktop nav links */
.tn-pill__nav {
    display: none;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}
@media (min-width: 1120px) { .tn-pill__nav { display: flex; } }
.tn-pill__nav > li { position: relative; }
.tn-pill__nav > li > a,
.tn-pill__nav > li > button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: rgba(26,26,34,0.80);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s;
    white-space: nowrap;
}
.tn-pill__nav > li > a:hover,
.tn-pill__nav > li > button:hover,
.tn-pill__nav > li:hover > a,
.tn-pill__nav > li:hover > button { color: var(--tn-accent); text-decoration: none; }
.tn-chevron-sm {
    width: 20px; height: 20px;
    transition: transform 0.2s;
    color: rgba(26,26,34,0.6);
    flex-shrink: 0;
    stroke-width: 2.5;
}
.tn-pill__nav > li:hover .tn-chevron-sm { transform: rotate(180deg); color: var(--tn-accent); }

/* Mega menu panel — fixed to viewport, top set by JS */
.tn-mega {
    position: fixed;
    left: 50%;
    top: var(--tn-mega-top, 120px);
    margin-top: -45px;
    z-index: 50;
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    pointer-events: none;
}
/* Invisible bridge covers the gap between pill and panel so hover isn't lost */
.tn-mega::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0; right: 0;
    height: 50px;
}
.tn-pill__nav > li.mega-open .tn-mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.tn-mega__panel {
    width: 90vw;
    max-width: 1360px;
    background: var(--tn-bg);
    border-radius: 28px;
    box-shadow: 0 30px 90px -35px rgba(0,0,0,0.35);
    outline: 1px solid var(--tn-border);
    overflow: hidden;
    padding: 28px;
}

/* About mega */
.tn-mega__about { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.tn-mega__about-item {
    display: block;
    background: rgba(244,244,247,0.5);
    border-radius: 24px;
    padding: 20px;
    text-decoration: none;
    color: var(--tn-fg);
    transition: background 0.2s, transform 0.3s;
}
.tn-mega__about-item:hover { background: var(--tn-muted); transform: translateY(-2px); text-decoration: none; color: var(--tn-fg); }
.tn-mega__about-img {
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    outline: 1px solid var(--tn-border);
}
.tn-mega__about-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s; }
.tn-mega__about-item:hover .tn-mega__about-img img { transform: scale(1.05); }
.tn-mega__about-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.tn-mega__about-desc { font-size: 14px; color: rgba(26,26,34,0.55); line-height: 1.65; margin-top: 8px; }

/* Services mega — 3-column card layout (Managed Services / Cybersecurity / Artificial Intelligence) */
.tn-mega__services-v2 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.tn-mega__svc-col {
    border: 2px solid var(--tn-border); border-radius: 16px;
    background: var(--tn-bg); padding: 20px;
    transition: border-color 0.15s;
}
.tn-mega__svc-col:hover { border-color: rgba(161,61,61,0.3); }
.tn-mega__svc-col-title {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 12px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--tn-accent); text-decoration: none;
}
.tn-mega__svc-col-title:hover { text-decoration: none; }
.tn-mega__svc-col-title svg { transition: transform 0.15s; }
.tn-mega__svc-col-title:hover svg { transform: translate(1px, -1px); }
.tn-mega__svc-col-links { display: grid; gap: 2px; }
.tn-mega__svc-col-links a {
    display: block;
    font-size: 14px; font-weight: 600; color: rgba(26,26,34,0.78);
    text-decoration: none; padding: 8px 12px;
    border-radius: 10px; transition: background 0.15s, color 0.15s;
}
.tn-mega__svc-col-links a:hover { background: rgba(244,244,247,1); color: var(--tn-accent); text-decoration: none; }

/* Resources mega */
.tn-mega__resources { display: grid; grid-template-columns: 340px 1fr; margin: -28px; }
.tn-mega__res-list-wrap { padding: 28px; display: flex; flex-direction: column; }
.tn-mega__res-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--tn-fg); margin: 0 0 20px; }
.tn-mega__res-list { display: flex; flex-direction: column; gap: 8px; }
.tn-mega__res-item {
    display: flex; align-items: center; gap: 16px;
    padding: 12px; border-radius: 16px;
    text-decoration: none; color: var(--tn-fg);
    transition: background 0.15s;
}
.tn-mega__res-item:hover, .tn-mega__res-item.is-active { background: var(--tn-muted); text-decoration: none; color: var(--tn-fg); }
.tn-mega__res-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    background: var(--tn-bg); border-radius: 12px;
    outline: 1px solid var(--tn-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--tn-fg); transition: color 0.15s;
}
.tn-mega__res-item:hover .tn-mega__res-icon,
.tn-mega__res-item.is-active .tn-mega__res-icon { color: var(--tn-accent); }
.tn-mega__res-icon svg { width: 16px; height: 16px; }
.tn-mega__res-title { font-size: 14px; font-weight: 600; color: var(--tn-fg); }
.tn-mega__res-desc { font-size: 12px; color: rgba(26,26,34,0.5); line-height: 1.65; margin-top: 4px; }
.tn-mega__res-preview {
    background: rgba(244,244,247,0.5); padding: 28px;
}
.tn-res-panel { display: none; flex-direction: column; height: 100%; }
.tn-res-panel.is-active { display: flex; }
.tn-res-panel h4 { font-size: 14px; font-weight: 700; margin: 0 0 8px; color: var(--tn-fg); }
.tn-res-panel > p { font-size: 12px; color: rgba(26,26,34,0.55); line-height: 1.65; margin: 0; }
.tn-mega__res-cards { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.tn-mega__res-card {
    display: grid; grid-template-columns: 132px 1fr;
    overflow: hidden; border-radius: 16px;
    background: var(--tn-bg); outline: 1px solid var(--tn-border);
    text-decoration: none; color: var(--tn-fg);
    transition: transform 0.2s, outline-color 0.2s;
}
.tn-mega__res-card:hover { transform: translateY(-2px); outline-color: rgba(161,61,61,0.3); text-decoration: none; color: var(--tn-fg); }
.tn-mega__res-card-img { position: relative; height: 112px; overflow: hidden; background: var(--tn-muted); }
.tn-mega__res-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s; }
.tn-mega__res-card:hover .tn-mega__res-card-img img { transform: scale(1.05); }
.tn-mega__res-card-body { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px; }
.tn-mega__res-card-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--tn-accent); }
.tn-mega__res-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.35; margin-top: 8px; color: var(--tn-fg); }
.tn-mega__res-card-arrow { flex-shrink: 0; margin-top: 2px; color: rgba(26,26,34,0.45); transition: transform 0.2s, color 0.2s; }
.tn-mega__res-card:hover .tn-mega__res-card-arrow { transform: translate(2px, -2px); color: var(--tn-accent); }
.tn-mega__res-preview-cta {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: var(--tn-fg);
    text-decoration: none; padding-top: 24px; margin-top: auto;
    transition: gap 0.2s;
}
.tn-mega__res-preview-cta:hover { gap: 12px; text-decoration: none; color: var(--tn-fg); }

/* Actions */
.tn-pill__actions { display: flex; align-items: center; gap: 8px; }
.tn-btn-contact {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 54px;
    background: var(--tn-accent);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 0 8px 0 28px;
    border-radius: 100px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 18px 36px -18px rgba(161,61,61,0.7);
}
@media (min-width: 640px) { .tn-btn-contact { display: inline-flex; } }
.tn-btn-contact:hover { background: var(--tn-accent-h); color: #fff !important; transform: translateY(-2px); }
.tn-btn-contact__icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.tn-btn-contact:hover .tn-btn-contact__icon { transform: translateX(2px); }
.tn-hamburger {
    display: flex;
    align-items: center; justify-content: center;
    width: 48px; height: 48px;
    background: none; border: none;
    cursor: pointer;
    color: rgba(26,26,34,0.8);
    transition: color 0.2s, background-color 0.2s;
    border-radius: 50%;
}
.tn-hamburger:hover { color: var(--tn-accent); background: rgba(26,26,34,0.05); text-decoration: none; }
@media (min-width: 1120px) { .tn-hamburger { display: none; } }
.tn-hamburger svg { width: 22px; height: 22px; display: block; }

/* ════════════════════════════════════
   MOBILE DRAWER
════════════════════════════════════ */
.tn-drawer {
    display: none;
    position: fixed;
    top: var(--tn-mega-top, 120px);
    left: 5%; right: 5%;
    margin-top: 8px;
    background: rgba(251,249,249,0.98);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.22);
    outline: 1px solid var(--tn-border);
    overflow-y: auto;
    max-height: 75vh;
    z-index: 50;
}
.tn-drawer.is-open { display: block; }
.tn-drawer nav { display: flex; flex-direction: column; padding: 8px 0; }
.tn-drawer a,
.tn-drawer__acc-btn {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px;
    font-family: inherit;
    font-size: 15px; font-weight: 500;
    color: rgba(26,26,34,0.8);
    text-decoration: none;
    background: none; border: none; width: 100%;
    text-align: left; cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.tn-drawer a:hover,
.tn-drawer__acc-btn:hover { color: var(--tn-accent); background: rgba(26,26,34,0.03); text-decoration: none; }
.tn-drawer__sub {
    display: none;
    background: rgba(26,26,34,0.025);
    border-top: 1px solid rgba(26,26,34,0.06);
    border-bottom: 1px solid rgba(26,26,34,0.06);
}
.tn-drawer__sub.is-open { display: block; }
.tn-drawer__sub a {
    display: block;
    padding: 12px 24px 12px 38px;
    font-size: 14px;
    color: rgba(26,26,34,0.65);
}
.tn-drawer__item-title {
    display: flex; align-items: center; gap: 6px;
    padding: 0 !important;
    font-size: 14px; font-weight: 700 !important;
    color: var(--tn-fg);
}
.tn-drawer__item-title svg { color: var(--tn-fg); stroke-width: 2.5; flex-shrink: 0; }
.tn-drawer__item-desc {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(26,26,34,0.55);
}
.tn-drawer__svc-group { padding: 12px 24px; }
.tn-drawer__svc-group + .tn-drawer__svc-group { border-top: 1px solid rgba(26,26,34,0.06); }
.tn-drawer__svc-links { display: flex; flex-direction: column; margin-top: 4px; }
.tn-drawer__svc-links a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: rgba(26,26,34,0.65);
}
.tn-drawer__svc-links a:hover { color: var(--tn-accent); background: none; }

.tn-drawer__cta { padding: 12px 24px 16px; border-top: 1px solid var(--tn-border); }
@media (min-width: 640px) { .tn-drawer__cta { display: none; } }
.tn-drawer__cta a {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    height: 54px;
    background: var(--tn-accent); color: #fff !important;
    padding: 0 8px 0 28px; border-radius: 100px;
    font-size: 15px; font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 18px 36px -18px rgba(161,61,61,0.7);
    transition: background 0.2s, transform 0.2s;
}
.tn-drawer__cta a:hover { background: var(--tn-accent-h); transform: translateY(-2px); }
.tn-drawer__cta-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.tn-acc-chevron { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.2s; color: rgba(26,26,34,0.4); }
.tn-acc-chevron.is-open { transform: rotate(180deg); color: var(--tn-accent); }

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.tn-footer {
    background: #0a0a12;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.tn-footer__logobar {
    width: 90%;
    margin: 0 auto;
    padding: 56px 0 40px;
}
@media (min-width: 768px) { .tn-footer__logobar { padding-top: 80px; } }
.tn-footer__logo {
    height: 32px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

/* Cards row — AI Community, Offices, Get in Touch */
.tn-footer__cards {
    width: 90%;
    margin: 0 auto;
    padding-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) { .tn-footer__cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tn-footer__cards { grid-template-columns: repeat(4, 1fr); } }
.tn-footer__card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    outline: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
    padding: 20px 24px;
}
.tn-footer__card--ai {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    outline-color: rgba(255,255,255,0.10);
}
@media (min-width: 640px) { .tn-footer__card--ai { grid-column: span 2; } }
.tn-footer__card--ai::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 0% 50%, rgba(161,61,61,0.18) 0%, transparent 60%);
}
.tn-footer__card--ai-head { position: relative; display: flex; align-items: center; gap: 12px; }
.tn-footer__card--ai-icon {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    outline: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
}
.tn-footer__card--ai-title { position: relative; font-weight: 600; color: #fff; font-size: 14px; line-height: 1.35; }
.tn-footer__card--ai-desc { position: relative; color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.6; }
.tn-footer__card--ai-cta {
    position: relative;
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 8px;
    border-radius: 100px;
    background: var(--tn-accent);
    padding: 8px 20px;
    font-size: 12px; font-weight: 600;
    color: #fff !important;
    text-decoration: none !important;
    transition: background 0.2s;
}
.tn-footer__card--ai-cta:hover { background: var(--tn-accent-h); color: #fff !important; text-decoration: none; }

.tn-footer__card--offices { display: flex; flex-direction: column; gap: 20px; }
.tn-footer__office { display: flex; align-items: flex-start; gap: 12px; }
.tn-footer__office-icon {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; flex-shrink: 0; margin-top: 2px;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    color: #fff;
}
.tn-footer__office-city { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.9); margin: 0; }
.tn-footer__office-addr { font-size: 12px; color: #fff; line-height: 1.6; margin: 2px 0 0; }

.tn-footer__card--contact { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.tn-footer__card--contact h5 {
    font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
    color: rgba(255,255,255,0.9); margin: 0 0 16px;
}
.tn-footer__card--contact ul { list-style: none; margin: 0; padding: 0; font-size: 14px; opacity: 0.8; }
.tn-footer__card--contact ul li + li { margin-top: 10px; }
.tn-footer__card--contact ul a { color: inherit; text-decoration: none; transition: color 0.2s, opacity 0.2s; }
.tn-footer__card--contact ul a:hover { opacity: 1; color: var(--tn-accent); text-decoration: none; }
.tn-footer__socials { display: flex; gap: 8px; }
.tn-footer__social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    outline: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: background 0.2s, outline-color 0.2s;
}
.tn-footer__social:hover { background: var(--tn-accent); outline-color: var(--tn-accent); color: #fff; text-decoration: none; }

/* Main columns — Services, Industries, Solutions, Resources, Company */
.tn-footer__cols {
    width: 90%;
    margin: 0 auto;
    padding-bottom: 48px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px 24px;
}
@media (min-width: 768px) { .tn-footer__cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .tn-footer__cols { grid-template-columns: repeat(5, 1fr); gap: 32px; } }
.tn-footer__col h5 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin: 0 0 20px;
}
.tn-footer__col ul { list-style: none; margin: 0; padding: 0; }
.tn-footer__col ul li + li { margin-top: 12px; }
.tn-footer__col ul a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.tn-footer__col ul a:hover { color: var(--tn-accent); text-decoration: none; }

.tn-footer__bottom-wrap {
    border-top: 1px solid rgba(255,255,255,0.15);
}
.tn-footer__bottom {
    width: 90%;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}
