/*
Theme Name: Tianhou Glass 2026
Theme URI: https://example.com/tianhou-glass-2026
Author: Tianhou Glass
Author URI: https://example.com
Description: Modern glass / industrial style theme for Tianhou Glass Global. Dark cool palette, glassmorphism panels, geometric accents, cinematic typography. Includes a dedicated About Us page template.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tianhou-glass-2026
Tags: one-column, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
    --tg-bg: #0b0f14;
    --tg-bg-alt: #10151c;
    --tg-bg-panel: rgba(255, 255, 255, 0.055);
    --tg-bg-panel-2: rgba(255, 255, 255, 0.09);
    --tg-line: rgba(255, 255, 255, 0.12);
    --tg-line-soft: rgba(255, 255, 255, 0.07);
    --tg-text: #e9eef4;
    --tg-text-dim: #9aa7b5;
    --tg-text-mute: #6b7a8a;
    --tg-accent: #38bdf8;
    --tg-accent-2: #5ad0c5;
    --tg-accent-glow: rgba(56, 189, 248, 0.35);
    --tg-danger: #ff6b6b;
    --tg-radius: 18px;
    --tg-radius-sm: 10px;
    --tg-gutter: clamp(20px, 5vw, 72px);
    --tg-font-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
    --tg-font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --tg-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   2. RESET / BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    background:
        radial-gradient(1100px 520px at 82% -8%, rgba(56, 189, 248, 0.10), transparent 60%),
        radial-gradient(900px 500px at -8% 30%, rgba(90, 208, 197, 0.07), transparent 60%),
        var(--tg-bg);
    color: var(--tg-text);
    font-family: var(--tg-font-body);
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--tg-accent);
    text-decoration: none;
    transition: color 0.25s var(--tg-ease);
}

a:hover {
    color: var(--tg-accent-2);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--tg-font-head);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.5em;
    color: #fff;
}

::selection {
    background: var(--tg-accent);
    color: #08121c;
}

/* ============================================================
   3. LAYOUT HELPERS
   ============================================================ */
.tg-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-inline: var(--tg-gutter);
}

.tg-grid {
    display: grid;
    gap: 28px;
}

.tg-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tg-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tg-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.tg-section {
    padding-block: clamp(72px, 9vw, 130px);
    position: relative;
}

.tg-section--alt {
    background: var(--tg-bg-alt);
}

.tg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--tg-accent);
    margin: 0 0 18px;
}

.tg-eyebrow::before {
    content: "";
    width: 38px;
    height: 2px;
    background: linear-gradient(90deg, var(--tg-accent), var(--tg-accent-2));
    border-radius: 2px;
}

.tg-title {
    font-size: clamp(30px, 4.6vw, 52px);
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.tg-title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--tg-accent), var(--tg-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tg-lead {
    color: var(--tg-text-dim);
    font-size: 18px;
    max-width: 640px;
    margin: 0;
}

.tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.06em;
    background: linear-gradient(120deg, var(--tg-accent), var(--tg-accent-2));
    color: #071018;
    box-shadow: 0 10px 30px var(--tg-accent-glow);
    transition: transform 0.3s var(--tg-ease), box-shadow 0.3s var(--tg-ease);
    border: none;
    cursor: pointer;
}

.tg-btn:hover {
    color: #071018;
    transform: translateY(-2px);
    box-shadow: 0 16px 44px var(--tg-accent-glow);
}

.tg-btn--ghost {
    background: var(--tg-bg-panel);
    color: var(--tg-text);
    border: 1px solid var(--tg-line);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.tg-btn--ghost:hover {
    color: #fff;
    border-color: var(--tg-accent);
}

/* Reveal on scroll */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--tg-ease), transform 0.8s var(--tg-ease);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================================
   4. GLASS PANEL
   ============================================================ */
.tg-panel {
    background: var(--tg-bg-panel);
    border: 1px solid var(--tg-line);
    border-radius: var(--tg-radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   5. SITE HEADER / NAV
   ============================================================ */
.tg-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background 0.4s var(--tg-ease), border-color 0.4s var(--tg-ease);
    border-bottom: 1px solid transparent;
    background: var(--tg-bg);
}

.tg-header:has(.tg-nav.is-open) {
    z-index: 9999;
}

.tg-header.nav-is-open {
    z-index: 9999;
}

.tg-header.nav-is-open,
.tg-header:has(.tg-nav.is-open) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.tg-header.is-scrolled {
    background: rgba(11, 15, 20, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--tg-line-soft);
}

.tg-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 18px;
}

.tg-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tg-nav {
    margin-inline-start: auto;
}

.tg-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-family: var(--tg-font-head);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: 0.02em;
    max-height: 50px;
    flex-shrink: 0;
}

.tg-brand:hover {
    color: #fff;
}

.tg-brand__logo {
    height: 46px;
    max-height: 46px;
    width: auto;
    display: block;
    object-fit: contain;
}

.tg-brand__text {
    font-family: var(--tg-font-head);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
}

.tg-brand__glass {
    color: var(--tg-accent);
}

.tg-brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--tg-accent), var(--tg-accent-2));
    color: #071018;
    font-weight: 800;
    box-shadow: 0 0 24px var(--tg-accent-glow);
}

.tg-brand__sub {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--tg-text-mute);
}

.tg-footer .custom-logo {
    height: 34px;
    width: auto;
}

@media (max-width: 920px) {
    .tg-header .custom-logo {
        height: 38px;
    }
}

.tg-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.tg-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.tg-nav a {
    color: var(--tg-text-dim);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    position: relative;
    padding-block: 6px;
}

.tg-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--tg-accent), var(--tg-accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--tg-ease);
}

.tg-nav a:hover,
.tg-nav .current-menu-item>a,
.tg-nav .current_page_item>a {
    color: #fff;
}

.tg-nav a:hover::after,
.tg-nav .current-menu-item>a::after,
.tg-nav .current_page_item>a::after {
    transform: scaleX(1);
}

.tg-nav__contact a {
    padding: 10px 22px !important;
    color: #071018 !important;
    background: linear-gradient(120deg, var(--tg-accent), var(--tg-accent-2));
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 8px 24px var(--tg-accent-glow);
    transition: transform 0.3s var(--tg-ease), box-shadow 0.3s var(--tg-ease);
}

.tg-nav__contact a::after {
    display: none;
}

.tg-nav__contact a:hover {
    color: #071018 !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--tg-accent-glow);
}

.tg-nav__contact.current-menu-item a,
.tg-nav__contact.current_page_item a {
    box-shadow: 0 0 0 2px rgba(11, 15, 20, 0.85), 0 0 0 4px var(--tg-accent), 0 12px 32px var(--tg-accent-glow);
}

/* Desktop dropdown sub-menus */
@media (min-width: 921px) {
    .tg-nav ul .menu-item-has-children {
        position: relative;
    }

    .tg-nav ul .sub-menu {
        position: absolute;
        top: 100%;
        inset-inline-start: 0;
        min-width: 220px;
        display: none;
        flex-direction: column;
        gap: 2px;
        padding: 10px;
        margin: 10px 0 0;
        background: var(--tg-bg-panel, #151c24);
        border: 1px solid var(--tg-line, rgba(255, 255, 255, 0.08));
        border-radius: 12px;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
        z-index: 3001;
    }

    .tg-nav ul .sub-menu::before {
        content: "";
        position: absolute;
        inset: -10px 0 auto;
        height: 10px;
    }

    .tg-nav ul .menu-item-has-children:hover>.sub-menu,
    .tg-nav ul .menu-item-has-children:focus-within>.sub-menu {
        display: flex;
    }

    .tg-nav ul .sub-menu li {
        margin: 0;
    }

    .tg-nav ul .sub-menu a {
        display: block;
        padding: 9px 12px;
        border-radius: 8px;
        font-size: 13px;
        color: var(--tg-text-dim);
    }

    .tg-nav ul .sub-menu a::after {
        display: none;
    }

    .tg-nav ul .sub-menu a:hover {
        color: #fff;
        background: rgba(56, 189, 248, 0.08);
    }
}

/* Language dropdown */
.tg-langs {
    position: relative;
}

.tg-langs__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--tg-line);
    border-radius: 999px;
    background: var(--tg-bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--tg-text-dim);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: border-color 0.3s var(--tg-ease), color 0.3s, background 0.3s;
}

.tg-langs__btn svg {
    color: var(--tg-accent);
    flex: none;
}

.tg-langs__chevron {
    transition: transform 0.3s var(--tg-ease);
}

.tg-langs--drop.is-open .tg-langs__chevron {
    transform: rotate(180deg);
}

.tg-langs__btn:hover {
    color: #fff;
    border-color: var(--tg-accent);
}

.tg-langs__list {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    min-width: 180px;
    list-style: none;
    margin: 0;
    padding: 8px;
    background: var(--tg-bg-alt);
    border: 1px solid var(--tg-line);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.3s var(--tg-ease), transform 0.3s var(--tg-ease), visibility 0.3s;
    z-index: 3000;
}

.tg-langs--drop.is-open .tg-langs__list {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
}

.tg-langs__list li {
    margin: 0;
}

.tg-langs__list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--tg-text-dim);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s, background 0.3s;
}

.tg-langs__list a::after {
    display: none;
}

.tg-langs__list a:hover {
    color: #fff;
    background: var(--tg-bg-panel-2);
}

.tg-langs__list li.is-active a {
    color: var(--tg-accent);
    background: rgba(56, 189, 248, 0.1);
}

.tg-nav .tg-langs {
    margin-inline-start: 6px;
}

.tg-footer .tg-langs {
    position: relative;
}

.tg-footer .tg-langs__list {
    top: auto;
    bottom: 100%;
    right: 0;
    left: auto;
    transform: none;
}

.tg-footer__langs .tg-langs__btn {
    background: var(--tg-bg-panel-2);
}

.tg-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    z-index: 2002;
}

.tg-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s var(--tg-ease);
}

.tg-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.tg-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.tg-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.tg-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
    z-index: 2001;
}

@media (max-width: 920px) {
    .tg-header__inner {
        padding-block: 12px;
    }

    .tg-toggle {
        display: block;
    }

    .tg-nav {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        background: rgba(11, 15, 20, 0.97);
        backdrop-filter: blur(20px);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: 0.4s var(--tg-ease);
        z-index: 2001;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tg-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .tg-nav li {
        margin: 6px 0;
    }

    .tg-nav a {
        font-size: 22px;
    }

    .tg-nav .menu-item-has-children {
        position: relative;
    }

    .tg-nav .sub-menu {
        display: none;
        flex-direction: column;
        gap: 4px;
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .tg-nav .sub-menu.is-open,
    .tg-nav .menu-item-has-children.is-open>.sub-menu {
        display: flex;
    }

    .tg-nav .sub-menu a {
        font-size: 18px;
        opacity: 0.7;
    }

    .tg-nav .menu-item-has-children>a::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid currentColor;
        margin-inline-start: 6px;
        vertical-align: middle;
        transition: transform 0.3s;
    }

    .tg-nav .menu-item-has-children.is-open>a::after {
        transform: rotate(180deg);
    }

    .tg-nav .tg-langs__list a {
        font-size: 14px;
    }

    .tg-nav .tg-langs {
        margin-inline-start: 0;
    }

    .tg-nav .tg-langs--drop {
        display: inline-flex;
    }

    .tg-nav .tg-langs__list {
        inset-inline-end: 50%;
        transform: translate(50%, 8px);
    }

    .tg-nav .tg-langs--drop.is-open .tg-langs__list {
        transform: translate(50%, 0);
    }

    .tg-nav__contact {
        margin-top: 8px;
    }
}

/* ============================================================
   6. FOOTER
   ============================================================ */
.tg-footer {
    border-top: 1px solid var(--tg-line-soft);
    background: var(--tg-bg-alt);
    padding: 64px 0 30px;
}

.tg-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 44px;
}

.tg-footer h4 {
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tg-text-dim);
    margin-bottom: 18px;
}

.tg-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tg-footer li {
    margin-bottom: 10px;
}

.tg-footer a {
    color: var(--tg-text-dim);
    font-size: 14px;
}

.tg-footer a:hover {
    color: var(--tg-accent);
}

.tg-footer__whatsapp {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tg-footer__whatsapp a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tg-footer p {
    color: var(--tg-text-mute);
    font-size: 14px;
}

.tg-footer__bottom {
    border-top: 1px solid var(--tg-line-soft);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--tg-text-mute);
    font-size: 13px;
}

.tg-footer__logo {
    color: #fff;
    font-family: var(--tg-font-head);
    font-weight: 700;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tg-footer__logo-img {
    height: 34px;
    max-height: 34px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

.tg-footer__brand-text {
    font-size: 18px;
    white-space: nowrap;
}

.tg-footer__mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--tg-accent), var(--tg-accent-2));
    color: #071018;
    font-weight: 800;
    font-size: 14px;
}

.tg-footer__social {
    display: grid;
    grid-template-columns: repeat(4, 32px);
    gap: 8px;
    margin-top: 14px;
}

.tg-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--tg-bg-panel-2);
    color: var(--tg-text-dim);
    transition: background 0.25s, color 0.25s;
}

.tg-footer__social-link:hover,
.tg-footer .tg-footer__social-link:hover {
    background: var(--tg-accent);
    color: #fff;
}

.tg-social-svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (max-width: 920px) {
    .tg-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .tg-footer__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   7. HERO
   ============================================================ */
.tg-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-block: clamp(120px, 16vh, 180px) 80px;
}

.tg-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}

.tg-hero__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(11, 15, 20, 0.78), rgba(11, 15, 20, 0.5) 42%, rgba(11, 15, 20, 0.9)),
        url("assets/img/hero-glass.jpg");
    background-size: cover;
    background-position: center;
}

.tg-hero__img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 30% 40%, rgba(56, 189, 248, 0.14), transparent 70%);
}

.tg-hero__glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
}

.tg-hero__glow--a {
    width: 520px;
    height: 520px;
    top: -160px;
    right: -120px;
    background: var(--tg-accent-glow);
}

.tg-hero__glow--b {
    width: 420px;
    height: 420px;
    bottom: -160px;
    left: -100px;
    background: rgba(90, 208, 197, 0.22);
}

.tg-hero__inner {
    max-width: 860px;
}

.tg-hero h1 {
    font-size: clamp(42px, 7vw, 84px);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 26px;
}

.tg-hero h1 em {
    font-style: normal;
    background: linear-gradient(92deg, var(--tg-accent), var(--tg-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tg-hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--tg-text-dim);
    max-width: 620px;
    margin: 0 0 36px;
}

.tg-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tg-hero__strip {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--tg-accent), var(--tg-accent-2), transparent);
    opacity: 0.7;
}

/* ============================================================
   8. ABOUT: STORY
   ============================================================ */
.tg-story {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}

.tg-story__media {
    position: relative;
}

.tg-story__frame {
    position: absolute;
    inset: 26px -26px -26px 26px;
    border: 1px solid var(--tg-line);
    border-radius: var(--tg-radius);
    z-index: -1;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), transparent 55%);
}

.tg-story__img {
    border-radius: var(--tg-radius);
    overflow: hidden;
    border: 1px solid var(--tg-line);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(90, 208, 197, 0.08));
    aspect-ratio: 4 / 3.1;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.tg-story__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tg-story__badge {
    position: absolute;
    right: -10px;
    bottom: 34px;
    padding: 16px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--tg-accent), var(--tg-accent-2));
    color: #071018;
    font-family: var(--tg-font-head);
    font-weight: 800;
    box-shadow: 0 18px 40px var(--tg-accent-glow);
}

.tg-story__badge strong {
    font-size: 30px;
    display: block;
    line-height: 1;
}

.tg-story__badge span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tg-story__body h2 {
    font-size: clamp(28px, 3.6vw, 44px);
}

.tg-story__body>p {
    color: var(--tg-text-dim);
    margin-bottom: 20px;
}

.tg-story__list {
    margin: 26px 0 32px;
    padding: 0;
    list-style: none;
}

.tg-story__list li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 14px;
    color: var(--tg-text-dim);
}

.tg-story__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    color: #071018;
    background: linear-gradient(135deg, var(--tg-accent), var(--tg-accent-2));
}

@media (max-width: 920px) {
    .tg-story {
        grid-template-columns: 1fr;
    }

    .tg-story__media {
        max-width: 520px;
    }
}

/* ============================================================
   9. STATS
   ============================================================ */
.tg-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tg-stat {
    text-align: center;
    padding: 34px 18px;
}

.tg-stat__value {
    font-family: var(--tg-font-head);
    font-weight: 800;
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1;
    background: linear-gradient(180deg, #fff, var(--tg-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.tg-stat__label {
    color: var(--tg-text-mute);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

@media (max-width: 920px) {
    .tg-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tg-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   10. TIMELINE
   ============================================================ */
.tg-timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
}

.tg-timeline::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--tg-accent), var(--tg-accent-2), transparent);
}

.tg-timeline__item {
    position: relative;
    padding-left: 44px;
    margin-bottom: 34px;
}

.tg-timeline__dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tg-bg);
    border: 2px solid var(--tg-accent);
    box-shadow: 0 0 18px var(--tg-accent-glow);
}

.tg-timeline__dot::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tg-accent), var(--tg-accent-2));
}

.tg-timeline__year {
    display: inline-block;
    font-family: var(--tg-font-head);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--tg-accent);
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--tg-bg-panel);
    border: 1px solid var(--tg-line);
    margin-bottom: 8px;
}

.tg-timeline__item h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.tg-timeline__item p {
    color: var(--tg-text-dim);
    margin: 0;
}

/* ============================================================
   11. VALUES
   ============================================================ */
.tg-value {
    padding: 30px 26px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--tg-ease), border-color 0.4s var(--tg-ease);
}

.tg-value:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.5);
}

.tg-value__num {
    position: absolute;
    top: 8px;
    right: 18px;
    font-family: var(--tg-font-head);
    font-weight: 800;
    font-size: 72px;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    -webkit-text-stroke: 1px rgba(56, 189, 248, 0.3);
}

.tg-value__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(90, 208, 197, 0.12));
    border: 1px solid var(--tg-line);
    font-size: 20px;
    margin-bottom: 18px;
}

.tg-value h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.tg-value p {
    color: var(--tg-text-dim);
    font-size: 15px;
    margin: 0;
}

/* ============================================================
   12. CAPABILITIES
   ============================================================ */
.tg-cap {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
    align-items: center;
}

.tg-cap__img {
    border-radius: var(--tg-radius);
    overflow: hidden;
    border: 1px solid var(--tg-line);
    background: linear-gradient(135deg, rgba(90, 208, 197, 0.16), rgba(56, 189, 248, 0.08));
    aspect-ratio: 4 / 3;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.tg-cap__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tg-cap__item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--tg-line-soft);
}

.tg-cap__item:last-child {
    border-bottom: 0;
}

.tg-cap__item strong {
    display: block;
    font-family: var(--tg-font-head);
    font-size: 17px;
    margin-bottom: 4px;
}

.tg-cap__item p {
    margin: 0;
    color: var(--tg-text-dim);
    font-size: 15px;
}

.tg-cap__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--tg-bg-panel-2);
    border: 1px solid var(--tg-line);
    font-size: 19px;
    color: var(--tg-accent);
}

@media (max-width: 920px) {
    .tg-cap {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   13. TEAM
   ============================================================ */
.tg-team {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.tg-member {
    padding: 20px;
    text-align: center;
    transition: transform 0.4s var(--tg-ease), border-color 0.4s var(--tg-ease);
}

.tg-member:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.5);
}

.tg-member__avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--tg-line);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(90, 208, 197, 0.14));
    display: grid;
    place-items: center;
    color: var(--tg-accent);
    font-family: var(--tg-font-head);
    font-weight: 800;
    font-size: 28px;
}

.tg-member__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tg-member h3 {
    font-size: 17px;
    margin-bottom: 2px;
}

.tg-member__role {
    color: var(--tg-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

@media (max-width: 920px) {
    .tg-team {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tg-team {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   14. CTA BAND
   ============================================================ */
.tg-cta {
    text-align: center;
    padding: clamp(60px, 8vw, 100px) var(--tg-gutter);
    position: relative;
    overflow: hidden;
}

.tg-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 300px at 50% 120%, rgba(56, 189, 248, 0.22), transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: auto, 56px 56px, 56px 56px;
    z-index: -1;
}

.tg-cta h2 {
    font-size: clamp(28px, 4vw, 46px);
    margin-bottom: 14px;
}

.tg-cta p {
    color: var(--tg-text-dim);
    max-width: 560px;
    margin: 0 auto 30px;
}

.tg-cta .tg-btn {
    margin-inline: 5px;
}

/* ============================================================
   15. GENERIC PAGE CONTENT
   ============================================================ */
.tg-page-head {
    padding: clamp(120px, 18vh, 190px) 0 60px;
    position: relative;
}

.tg-page-head__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, #000 20%, transparent 78%);
    mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, #000 20%, transparent 78%);
}

.tg-page-head h1 {
    font-size: clamp(36px, 5.4vw, 64px);
    margin-bottom: 12px;
}

.tg-page-head p {
    color: var(--tg-text-dim);
    max-width: 620px;
    margin: 0;
}

.tg-entry {
    padding-block: 10px 90px;
}

.tg-entry__card {
    padding: clamp(28px, 4vw, 56px);
}

.tg-entry__thumb {
    margin: 0 auto clamp(20px, 3vw, 36px);
    text-align: center;
}

.tg-entry__thumb img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.tg-entry>.tg-entry__card {
    max-width: 860px;
    margin: 0 auto;
}

.tg-entry h1,
.tg-entry h2,
.tg-entry h3 {
    margin-top: 1.4em;
}

.tg-entry h2 {
    font-size: clamp(24px, 3vw, 32px);
}

.tg-entry p {
    color: var(--tg-text-dim);
}

.tg-entry ul,
.tg-entry ol {
    color: var(--tg-text-dim);
}

.tg-entry .wp-block-button__link,
.tg-entry .button {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--tg-accent), var(--tg-accent-2));
    color: #071018;
    font-weight: 600;
}

.tg-entry blockquote {
    border-left: 3px solid var(--tg-accent);
    margin-left: 0;
    padding: 6px 0 6px 22px;
    color: var(--tg-text-dim);
}

.tg-entry img {
    border-radius: 12px;
    border: 1px solid var(--tg-line);
}

.tg-entry table {
    border-collapse: collapse;
    color: var(--tg-text-dim);
}

.tg-entry th,
.tg-entry td {
    border: 1px solid var(--tg-line-soft);
    padding: 10px 14px;
}

.tg-entry .wp-block-quote,
.tg-entry blockquote {
    color: var(--tg-text-dim);
}

.tg-entry .alignwide {
    margin-inline: -4%;
}

.tg-entry .alignfull {
    margin-inline: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

/* Archive / blog cards */
.tg-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.tg-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    transition: transform 0.4s var(--tg-ease), border-color 0.4s var(--tg-ease);
}

.tg-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.5);
}

.tg-card__media {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(90, 208, 197, 0.1));
    border-bottom: 1px solid var(--tg-line-soft);
}

.tg-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tg-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.tg-card__meta {
    font-size: 12px;
    color: var(--tg-text-mute);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tg-card h2 {
    font-size: 20px;
    margin: 0;
}

.tg-card p {
    color: var(--tg-text-dim);
    font-size: 15px;
    margin: 0;
}

.tg-card__more {
    margin-top: auto;
    font-weight: 600;
    font-size: 14px;
}

.tg-card__more::after {
    content: "→";
    margin-inline-start: 6px;
    transition: transform 0.3s var(--tg-ease);
    display: inline-block;
}

.tg-card:hover .tg-card__more::after {
    transform: translateX(4px);
}

@media (max-width: 920px) {
    .tg-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .tg-posts {
        grid-template-columns: 1fr;
    }
}

/* Pagination */
.tg-pagination {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 48px;
    width: 100%;
    overflow-x: auto;
}

.tg-pagination a,
.tg-pagination span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--tg-line);
    background: var(--tg-bg-panel);
    color: var(--tg-text-dim);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.tg-pagination .current {
    background: linear-gradient(120deg, var(--tg-accent), var(--tg-accent-2));
    color: #071018;
    border-color: transparent;
}

.tg-pagination a:hover {
    color: #fff;
    border-color: var(--tg-accent);
}

/* 404 */
.tg-404 {
    min-height: 80vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding-block: 120px 60px;
}

.tg-404__code {
    font-family: var(--tg-font-head);
    font-weight: 800;
    font-size: clamp(90px, 18vw, 200px);
    line-height: 1;
    background: linear-gradient(180deg, #fff 10%, var(--tg-accent) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tg-404 h1 {
    font-size: clamp(24px, 4vw, 40px);
}

/* Search form */
.tg-search {
    display: flex;
    gap: 0;
    max-width: 560px;
}

.tg-search input[type="search"] {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--tg-line);
    border-right: 0;
    border-radius: 999px 0 0 999px;
    background: var(--tg-bg-panel);
    color: var(--tg-text);
    font-size: 15px;
    outline: none;
}

.tg-search input[type="search"]:focus {
    border-color: var(--tg-accent);
}

.tg-search button {
    padding: 14px 24px;
    border: 0;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(120deg, var(--tg-accent), var(--tg-accent-2));
    color: #071018;
    font-weight: 700;
    cursor: pointer;
}

/* Single post meta */
.tg-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--tg-text-mute);
    font-size: 13px;
    margin-bottom: 28px;
}

.tg-meta a {
    color: var(--tg-text-mute);
}

.tg-meta a:hover {
    color: var(--tg-accent);
}

.tg-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.tg-post-nav a {
    color: var(--tg-text-dim);
    font-size: 14px;
}

.tg-post-nav a:hover {
    color: var(--tg-accent);
}

/* Comments */
.tg-comments {
    margin-top: 40px;
}

.tg-comments .comment-list {
    list-style: none;
    padding: 0;
}

.tg-comments .comment {
    padding: 18px 0;
    border-bottom: 1px solid var(--tg-line-soft);
    color: var(--tg-text-dim);
}

.tg-comments .comment-author {
    color: var(--tg-text);
    font-weight: 600;
}

.tg-comments .comment-form input[type="text"],
.tg-comments .comment-form input[type="email"],
.tg-comments .comment-form input[type="url"],
.tg-comments .comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: var(--tg-bg-panel);
    border: 1px solid var(--tg-line);
    border-radius: 10px;
    color: var(--tg-text);
    font-family: inherit;
    font-size: 14px;
}

.tg-comments .comment-form input:focus,
.tg-comments .comment-form textarea:focus {
    border-color: var(--tg-accent);
    outline: none;
}

.tg-comments .submit {
    padding: 12px 26px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--tg-accent), var(--tg-accent-2));
    color: #071018;
    font-weight: 700;
    cursor: pointer;
}

/* ============================================================
   16. SMALL SCREENS
   ============================================================ */
@media (max-width: 920px) {

    .tg-grid-2,
    .tg-grid-3,
    .tg-grid-4 {
        grid-template-columns: 1fr;
    }

    .tg-hero {
        min-height: 80vh;
        padding-block: clamp(110px, 18vh, 150px) 70px;
    }

    .tg-hero__inner {
        max-width: 100%;
    }
}

@media (max-width: 560px) {

    .tg-gutter,
    .tg-container {
        padding-inline: 20px;
    }

    .tg-section {
        padding-block: 64px;
    }

    .tg-hero {
        min-height: 72vh;
    }

    .tg-hero__actions {
        flex-direction: column;
    }

    .tg-hero__actions .tg-btn {
        width: 100%;
        justify-content: center;
    }

    .tg-story {
        gap: 44px;
    }

    .tg-story__badge {
        right: -6px;
        bottom: 20px;
        padding: 12px 16px;
    }

    .tg-story__badge strong {
        font-size: 22px;
    }

    .tg-stat {
        padding: 24px 12px;
    }

    .tg-footer__bottom {
        justify-content: center;
        text-align: center;
    }

    .tg-cap {
        gap: 40px;
    }

    .tg-cap__item {
        flex-direction: column;
        gap: 10px;
    }

    .tg-pagination {
        gap: 8px;
    }

    .tg-pagination a,
    .tg-pagination span {
        min-width: 38px;
        height: 38px;
    }

    .tg-cta .tg-btn {
        margin: 8px 0;
        width: 100%;
        justify-content: center;
    }

    .tg-member__avatar {
        width: 84px;
        height: 84px;
        font-size: 24px;
    }
}

@media (max-width: 380px) {
    .tg-brand {
        font-size: 16px;
        max-height: 42px;
    }

    .tg-brand__text {
        font-size: 16px;
    }

    .tg-brand__logo {
        height: 38px;
        max-height: 38px;
    }

    .tg-brand__mark {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background: var(--tg-bg-panel);
    clip: auto !important;
    clip-path: none;
    color: var(--tg-text);
    display: block;
    font-size: 14px;
    height: auto;
    left: 8px;
    line-height: normal;
    padding: 16px 22px;
    text-decoration: none;
    top: 8px;
    width: auto;
    z-index: 100000;
}

/* ============================================================
    17. HOMEPAGE — NEWS HEADER
   ============================================================ */
.tg-home-news {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.tg-home-news .tg-title {
    margin: 0;
}

/* ============================================================
    18. FAQ
   ============================================================ */
.tg-faq {
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tg-faq__item {
    padding: 0;
    overflow: hidden;
}

.tg-faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    text-align: start;
    font-family: var(--tg-font-head);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s;
}

.tg-faq__q:hover {
    color: var(--tg-accent);
}

.tg-faq__icon {
    flex: 0 0 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--tg-bg-panel-2);
    border: 1px solid var(--tg-line);
    font-size: 18px;
    font-weight: 400;
    transition: transform 0.35s var(--tg-ease), background 0.3s, border-color 0.3s, color 0.3s;
}

.tg-faq__item.is-open .tg-faq__icon {
    transform: rotate(45deg);
    background: linear-gradient(120deg, var(--tg-accent), var(--tg-accent-2));
    border-color: transparent;
    color: #071018;
}

.tg-faq__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s var(--tg-ease);
}

.tg-faq__a>* {
    overflow: hidden;
    min-height: 0;
}

.tg-faq__item.is-open .tg-faq__a {
    grid-template-rows: 1fr;
}

.tg-faq__a p {
    margin: 0;
    padding: 0 22px 22px;
    color: var(--tg-text-dim);
    font-size: 15px;
    line-height: 1.75;
}

/* ============================================================
    19. CONTACT
   ============================================================ */
.tg-contact {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
    align-items: start;
}

.tg-contact__card,
.tg-contact__form .tg-panel {
    padding: 28px;
}

.tg-contact__card h3,
.tg-contact__form .tg-panel h3 {
    font-size: 20px;
    margin: 0 0 18px;
}

.tg-contact__list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tg-contact__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--tg-text-dim);
    font-size: 14px;
    line-height: 1.6;
}

.tg-contact__list svg {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--tg-accent);
}

.tg-contact__list a {
    color: var(--tg-text-dim);
}

.tg-contact__list a:hover {
    color: var(--tg-accent);
}

.tg-contact__hours {
    color: var(--tg-text-mute);
    font-size: 13px;
    margin: 0 0 20px;
    padding: 14px 16px;
    background: var(--tg-bg-panel-2);
    border-radius: 10px;
}

.tg-contact__card .tg-btn {
    box-shadow: none;
}

.tg-contact__map {
    margin-top: 28px;
    border-radius: var(--tg-radius);
    overflow: hidden;
    border: 1px solid var(--tg-line);
    background: var(--tg-bg-panel);
}

.tg-contact__map iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
    filter: grayscale(0.25) contrast(1.05);
}

/* ============================================================
    20. NOTICES + CONTACT FORM
   ============================================================ */
.tg-notice {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.tg-notice--success {
    background: rgba(90, 208, 197, 0.12);
    border: 1px solid rgba(90, 208, 197, 0.45);
    color: #d9fff8;
}

.tg-notice--error {
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.45);
    color: #ffe9e9;
}

.tg-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tg-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.tg-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tg-form label {
    font-size: 13px;
    color: var(--tg-text-dim);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.tg-form input,
.tg-form textarea,
.tg-form select {
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    background: var(--tg-bg-panel-2);
    border: 1px solid var(--tg-line);
    color: var(--tg-text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.tg-form input:focus,
.tg-form textarea:focus,
.tg-form select:focus {
    outline: none;
    border-color: var(--tg-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.tg-form select option {
    background: var(--tg-bg-alt);
    color: var(--tg-text);
}

.tg-form .tg-btn {
    align-self: flex-start;
}

.tg-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* ============================================================
    21. NEWS ARCHIVE — CATEGORY FILTER
   ============================================================ */
.tg-news__cats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tg-news__cats a {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tg-text-dim);
    background: var(--tg-bg-panel);
    border: 1px solid var(--tg-line);
    transition: color 0.3s, border-color 0.3s;
}

.tg-news__cats a:hover {
    color: #fff;
    border-color: var(--tg-accent);
}

.tg-news__cats a.is-active {
    background: linear-gradient(120deg, var(--tg-accent), var(--tg-accent-2));
    color: #071018;
    border-color: transparent;
}

/* ============================================================
    22. ADD-ON RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
    .tg-contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .tg-form__row {
        grid-template-columns: 1fr;
    }

    .tg-faq__q {
        padding: 16px 16px;
        font-size: 15px;
    }

    .tg-faq__a p {
        padding: 0 16px 18px;
    }

    .tg-contact__card,
    .tg-contact__form .tg-panel {
        padding: 22px;
    }

    .tg-contact__map iframe {
        height: 300px;
    }
}

/* ============================================================
    23. LEGAL / POLICY PAGES
   ============================================================ */
.tg-page-head--center {
    text-align: center;
}

.tg-page-head--center p {
    margin-inline: auto;
}

.tg-page-head--legal {
    padding-bottom: 84px;
}

.tg-page-head--legal::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.55), rgba(90, 208, 197, 0.55), transparent);
}

.tg-page-head__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: -1;
}

.tg-page-head__glow--a {
    width: 480px;
    height: 480px;
    top: -140px;
    right: -140px;
    background: rgba(56, 189, 248, 0.16);
}

.tg-page-head__glow--b {
    width: 400px;
    height: 400px;
    bottom: -180px;
    left: -140px;
    background: rgba(90, 208, 197, 0.13);
}

.tg-page-head--legal h1 {
    margin-bottom: 18px;
}

.tg-page-head__sub {
    max-width: 640px;
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 28px;
}

.tg-legal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.tg-legal__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border: 1px solid var(--tg-line);
    border-radius: 999px;
    background: var(--tg-bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--tg-text-dim);
    font-size: 13.5px;
}

.tg-legal__meta-item svg {
    color: var(--tg-accent);
    flex: none;
}

.tg-legal__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.tg-legal__hero-actions .tg-btn,
.tg-legal__actions .tg-btn {
    box-shadow: none;
}

.tg-legal__hero-actions .tg-btn svg,
.tg-legal__actions .tg-btn svg {
    vertical-align: -2px;
    margin-inline-end: 7px;
}

.tg-section--legal {
    padding-block: 64px 90px;
}

.tg-legal {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.tg-legal__side {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tg-legal__main {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

/* Sidebar table of contents */
.tg-legal__toc {
    padding: 22px 18px;
}

.tg-legal__toc-head {
    margin-bottom: 16px;
}

.tg-legal__toc-title {
    display: block;
    margin-bottom: 12px;
    font-family: var(--tg-font-head);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tg-text);
}

.tg-legal__toc-progress {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--tg-bg-panel-2);
    overflow: hidden;
}

.tg-legal__toc-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--tg-accent), var(--tg-accent-2));
    transition: width 0.15s linear;
}

.tg-legal__toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 58vh;
    overflow: auto;
}

.tg-legal__toc-item a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 10px;
    border-inline-start: 2px solid transparent;
    color: var(--tg-text-dim);
    font-size: 13.5px;
    line-height: 1.5;
    transition: color 0.3s var(--tg-ease), background 0.3s var(--tg-ease), border-color 0.3s var(--tg-ease);
}

.tg-legal__toc-num {
    flex: none;
    margin-top: 3px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
    color: var(--tg-text-mute);
}

.tg-legal__toc-item a:hover {
    color: #fff;
    background: var(--tg-bg-panel-2);
}

.tg-legal__toc-item a.is-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.16), rgba(90, 208, 197, 0.07));
    border-inline-start-color: var(--tg-accent);
}

.tg-legal__toc-item a.is-active .tg-legal__toc-num {
    color: var(--tg-accent);
}

.tg-legal__backtop {
    width: 100%;
    justify-content: center;
    box-shadow: none;
}

/* Document body — each section is its own glass card */
.tg-legal__body {
    counter-reset: tgSec;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tg-legal__sec {
    position: relative;
    padding: 32px 36px;
    border: 1px solid var(--tg-line);
    border-radius: var(--tg-radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    scroll-margin-top: 130px;
    transition: border-color 0.35s var(--tg-ease), box-shadow 0.35s var(--tg-ease), transform 0.35s var(--tg-ease);
}

.tg-legal__sec:hover {
    border-color: rgba(56, 189, 248, 0.42);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(56, 189, 248, 0.1);
}

.tg-legal__sec::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 26px;
    bottom: 26px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--tg-accent), var(--tg-accent-2));
    opacity: 0;
    transform: scaleY(0.4);
    transform-origin: top;
    transition: opacity 0.35s var(--tg-ease), transform 0.35s var(--tg-ease);
}

.tg-legal__sec:hover::after {
    opacity: 1;
    transform: scaleY(1);
}

.tg-legal__sec h2 {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 16px;
    font-size: 21px;
    scroll-margin-top: 130px;
}

.tg-legal__sec h2::before {
    counter-increment: tgSec;
    content: counter(tgSec, decimal-leading-zero);
    flex: none;
    min-width: 46px;
    height: 46px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--tg-accent), var(--tg-accent-2));
    color: #071018;
    box-shadow: 0 8px 22px var(--tg-accent-glow);
}

.tg-legal__sec h3 {
    margin: 24px 0 10px;
    font-size: 17px;
    color: var(--tg-text);
}

.tg-legal__sec h4 {
    margin: 20px 0 8px;
    font-size: 15px;
    color: var(--tg-text);
}

/* Legal hub accordion */
.tg-legal__hub {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tg-legal__policy {
    border: 1px solid var(--tg-line);
    border-radius: var(--tg-radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    overflow: hidden;
    scroll-margin-top: 130px;
    transition: border-color 0.35s var(--tg-ease), box-shadow 0.35s var(--tg-ease);
}

.tg-legal__toc-txt {
    min-width: 0;
}

.tg-legal__policy:hover {
    border-color: rgba(56, 189, 248, 0.42);
}

.tg-legal__policy[open] {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.tg-legal__policy-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.tg-legal__policy-head::-webkit-details-marker {
    display: none;
}

.tg-legal__policy-num {
    flex: none;
    min-width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--tg-accent), var(--tg-accent-2));
    color: #071018;
    box-shadow: 0 8px 22px var(--tg-accent-glow);
}

.tg-legal__policy-titles {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tg-legal__policy-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--tg-text);
}

.tg-legal__policy-desc {
    font-size: 13px;
    color: var(--tg-text-dim);
    line-height: 1.6;
}

.tg-legal__policy-chev {
    flex: none;
    display: grid;
    place-items: center;
    color: var(--tg-text-dim);
    transition: transform 0.35s var(--tg-ease);
}

.tg-legal__policy[open] .tg-legal__policy-chev {
    transform: rotate(180deg);
    color: var(--tg-accent);
}

.tg-legal__policy-body {
    padding: 0 24px 26px;
    border-top: 1px solid var(--tg-line-soft);
    margin-inline-start: 84px;
}

.tg-legal__policy-body h3 {
    margin: 22px 0 8px;
    font-size: 16px;
    color: var(--tg-text);
}

.tg-legal__policy-body p {
    margin: 0 0 14px;
    color: var(--tg-text-dim);
    line-height: 1.85;
}

.tg-legal__policy-body .tg-legal__list {
    margin-bottom: 14px;
}

.tg-legal__policy-body h3:first-child {
    margin-top: 18px;
}

@media (max-width: 560px) {
    .tg-legal__policy-head {
        padding: 16px;
        gap: 12px;
    }

    .tg-legal__policy-num {
        min-width: 34px;
        height: 34px;
        font-size: 11px;
        border-radius: 10px;
    }

    .tg-legal__policy-body {
        padding: 0 16px 20px;
        margin-inline-start: 0;
    }
}

.tg-legal__sec p {
    margin: 0 0 14px;
    color: var(--tg-text-dim);
    line-height: 1.85;
}

.tg-legal__sec p:last-child,
.tg-legal__sec ul:last-child,
.tg-legal__sec ol:last-child {
    margin-bottom: 0;
}

.tg-legal__sec ul:not(.tg-legal__list),
.tg-legal__sec ol {
    margin: 0 0 14px;
    padding-inline-start: 22px;
    color: var(--tg-text-dim);
    line-height: 1.8;
}

.tg-legal__sec li {
    margin-bottom: 8px;
}

.tg-legal__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--tg-text-dim);
    line-height: 1.75;
}

.tg-legal__list li {
    position: relative;
    padding-inline-start: 28px;
}

.tg-legal__list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 2px;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--tg-accent), var(--tg-accent-2));
    box-shadow: 0 0 10px var(--tg-accent-glow);
}

.tg-legal__actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media (max-width: 980px) {
    .tg-legal {
        grid-template-columns: 1fr;
    }

    .tg-legal__side {
        position: static;
    }

    .tg-legal__backtop {
        display: none;
    }
}

@media (max-width: 560px) {
    .tg-page-head--legal {
        padding-bottom: 60px;
    }

    .tg-legal__sec {
        padding: 24px 20px;
    }

    .tg-legal__sec h2 {
        font-size: 18px;
        gap: 12px;
    }

    .tg-legal__sec h2::before {
        min-width: 40px;
        height: 40px;
        font-size: 12px;
    }
}

@media print {

    .tg-header,
    .tg-footer,
    .tg-toggle,
    .tg-langs,
    .tg-nav__contact,
    .tg-legal__side,
    .tg-legal__actions,
    .tg-legal__hero-actions,
    .tg-cart-drawer,
    .skip-link {
        display: none !important;
    }

    body,
    .tg-site,
    .tg-main,
    .tg-page-head {
        background: #fff !important;
    }

    .tg-page-head {
        padding: 24px 0 8px;
    }

    .tg-page-head h1,
    .tg-page-head .tg-eyebrow,
    .tg-page-head p,
    .tg-page-head__sub,
    .tg-legal__meta-item {
        color: #111 !important;
    }

    .tg-legal__meta-item {
        background: none !important;
        border-color: #bbb !important;
    }

    .tg-legal__sec {
        background: #fff !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .tg-legal__sec::after {
        display: none;
    }

    .tg-legal__sec h2::before {
        background: #111 !important;
        color: #fff !important;
        box-shadow: none !important;
    }

    .tg-legal__sec h1,
    .tg-legal__sec h2,
    .tg-legal__sec h3,
    .tg-legal__sec h4,
    .tg-legal__sec p,
    .tg-legal__sec li,
    .tg-legal__sec a {
        color: #111 !important;
    }

    .tg-legal__list li::before {
        background: #111 !important;
        box-shadow: none !important;
    }

    .tg-container,
    .tg-gutter {
        max-width: 100% !important;
        padding-inline: 0 !important;
    }
}

/* ============================================================
    24. SEARCH
   ============================================================ */
body.tg-no-scroll {
    overflow: hidden;
}

/* Header search toggle (matches the mini-cart button) */
.tg-search-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    background: var(--tg-bg-panel);
    border: 1px solid var(--tg-line);
    color: var(--tg-text);
    font: inherit;
    cursor: pointer;
    transition: transform 0.3s var(--tg-ease), border-color 0.3s var(--tg-ease), color 0.3s;
}

.tg-search-toggle:hover {
    color: #fff;
    border-color: var(--tg-accent);
    transform: translateY(-2px);
}

/* Results page form wrapper */
.tg-search__wrap {
    max-width: 640px;
}

/* Result stats row */
.tg-search__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 34px;
}

.tg-search__stats-count {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--tg-accent), var(--tg-accent-2));
    color: #071018;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 22px var(--tg-accent-glow);
}

.tg-search__stats-hint {
    color: var(--tg-text-mute);
    font-size: 14px;
}

/* Post type badge on cards */
.tg-badge--type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.08);
    color: var(--tg-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tg-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tg-card__media-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--tg-text-mute);
    font-family: var(--tg-font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Popular / refinement tags */
.tg-search__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tg-search__tag {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--tg-line);
    background: var(--tg-bg-panel);
    color: var(--tg-text-dim);
    font-size: 13.5px;
    font-weight: 500;
    transition: border-color 0.3s var(--tg-ease), color 0.3s var(--tg-ease), transform 0.3s var(--tg-ease);
}

.tg-search__tag::before {
    content: "#";
    color: var(--tg-accent);
    margin-inline-end: 6px;
}

.tg-search__tag:hover {
    color: #fff;
    border-color: var(--tg-accent);
    transform: translateY(-2px);
}

/* Empty state */
.tg-search__empty {
    text-align: center;
    padding: 70px 30px;
}

.tg-search__empty-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 26px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--tg-accent), var(--tg-accent-2));
    color: #071018;
    box-shadow: 0 16px 40px var(--tg-accent-glow);
}

.tg-search__empty h2 {
    font-size: 26px;
    margin: 0 0 10px;
}

.tg-search__empty p {
    color: var(--tg-text-dim);
    margin: 0 0 26px;
}

.tg-search__empty .tg-search__tags {
    justify-content: center;
    margin-bottom: 30px;
}

/* ---------- Full-screen search overlay ---------- */
.tg-search-panel {
    position: fixed;
    inset: 0;
    z-index: 200;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s var(--tg-ease), visibility 0.35s;
}

.tg-search-panel.is-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.tg-search-panel__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 12, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 0.35s var(--tg-ease);
}

.tg-search-panel.is-open .tg-search-panel__backdrop {
    opacity: 1;
}

.tg-search-panel__inner {
    position: relative;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 24px;
}

.tg-search-panel__card {
    width: min(680px, 100%);
    padding: clamp(30px, 5vw, 52px);
    text-align: center;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: transform 0.45s var(--tg-ease), opacity 0.45s var(--tg-ease);
}

.tg-search-panel.is-open .tg-search-panel__card {
    opacity: 1;
    transform: none;
}

.tg-search-panel__card .tg-eyebrow {
    justify-content: center;
    margin-bottom: 16px;
}

.tg-search-panel__card h2 {
    font-size: clamp(24px, 4vw, 34px);
    margin: 0 0 10px;
}

.tg-search-panel__hint {
    color: var(--tg-text-dim);
    margin: 0 0 30px;
}

.tg-search-panel__close {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--tg-line);
    background: var(--tg-bg-panel);
    color: var(--tg-text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s, background 0.3s, border-color 0.3s, transform 0.35s var(--tg-ease);
}

.tg-search-panel__close:hover {
    color: #fff;
    background: var(--tg-bg-panel-2);
    border-color: var(--tg-accent);
    transform: rotate(90deg);
}

/* Overlay search form */
.tg-search--overlay {
    display: flex;
    position: relative;
    max-width: 640px;
    margin-inline: auto;
}

.tg-search--overlay input[type="search"] {
    flex: 1;
    padding: 20px 20px 20px 58px;
    border: 1px solid var(--tg-line);
    border-right: 0;
    border-radius: 16px 0 0 16px;
    background: var(--tg-bg-panel-2);
    color: var(--tg-text);
    font-size: 17px;
    outline: none;
    transition: border-color 0.3s var(--tg-ease), box-shadow 0.3s var(--tg-ease);
}

.tg-search--overlay input[type="search"]:focus {
    border-color: var(--tg-accent);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.tg-search--overlay button {
    flex: none;
    padding: 0 32px;
    border: 0;
    border-radius: 0 16px 16px 0;
    background: linear-gradient(120deg, var(--tg-accent), var(--tg-accent-2));
    color: #071018;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s var(--tg-ease), box-shadow 0.3s var(--tg-ease);
}

.tg-search--overlay button:hover {
    transform: translateX(2px);
    box-shadow: 0 12px 30px var(--tg-accent-glow);
}

.tg-search__icon {
    position: absolute;
    inset-inline-start: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tg-text-mute);
    pointer-events: none;
}

/* Popular searches inside the overlay */
.tg-search-panel__popular {
    margin-top: 34px;
}

.tg-search-panel__label {
    display: block;
    margin-bottom: 14px;
    color: var(--tg-text-mute);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tg-search-panel__tags {
    justify-content: center;
}

@media (max-width: 560px) {
    .tg-search--overlay button {
        padding: 0 20px;
    }

    .tg-search__stats {
        justify-content: center;
    }

    .tg-search__stats-hint {
        width: 100%;
        text-align: center;
    }

    .tg-search-panel__inner {
        padding: 16px;
    }

    .tg-search-panel__close {
        top: 12px;
        inset-inline-end: 12px;
    }
}

@media print {

    .tg-search-toggle,
    .tg-search-panel {
        display: none !important;
    }
}

/* ============================================================
   GALLERY — homepage sliders + archive landing page
   ============================================================ */
.tg-gallery-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.tg-gallery-head .tg-eyebrow {
    justify-content: flex-start;
}

.tg-gallery-head .tg-title {
    margin: 8px 0 0;
}

/* Slider */
.tg-gallery-slider {
    position: relative;
    padding-inline: 0;
}

.tg-gallery-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 8px 2px 18px;
    -webkit-overflow-scrolling: touch;
}

.tg-gallery-track::-webkit-scrollbar {
    display: none;
}

.tg-gallery-card {
    flex: 0 0 clamp(240px, 26vw, 340px);
    scroll-snap-align: start;
    margin: 0;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--tg-line);
    background: var(--tg-bg-panel);
    cursor: pointer;
    transition: transform 0.35s var(--tg-ease), border-color 0.35s var(--tg-ease), box-shadow 0.35s var(--tg-ease);
}

.tg-gallery-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.tg-gallery-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.tg-gallery-card figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 34px 18px 14px;
    background: linear-gradient(180deg, transparent, rgba(6, 10, 14, 0.92));
}

.tg-gallery-card figcaption span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.03em;
}

.tg-gallery-arrow {
    position: absolute;
    top: calc(50% - 10px);
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--tg-line);
    background: rgba(11, 15, 20, 0.82);
    backdrop-filter: blur(10px);
    color: var(--tg-text);
    cursor: pointer;
    z-index: 5;
    transition: border-color 0.3s var(--tg-ease), color 0.3s var(--tg-ease), transform 0.3s var(--tg-ease);
}

.tg-gallery-arrow:hover {
    color: #fff;
    border-color: var(--tg-accent);
}

.tg-gallery-arrow--prev {
    inset-inline-start: -8px;
}

.tg-gallery-arrow--next {
    inset-inline-end: -8px;
}

.tg-gallery-arrow--next:hover {
    transform: translateY(-50%) translateX(2px);
}

.tg-gallery-arrow--prev:hover {
    transform: translateY(-50%) translateX(-2px);
}

/* Archive landing page */
.tg-gallery__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tg-gallery__cat {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid var(--tg-line);
    background: var(--tg-bg-panel);
    color: var(--tg-text-dim);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: color 0.3s var(--tg-ease), border-color 0.3s var(--tg-ease), background 0.3s var(--tg-ease), transform 0.3s var(--tg-ease);
}

.tg-gallery__cat:hover {
    color: #fff;
    border-color: var(--tg-accent);
    transform: translateY(-2px);
}

.tg-gallery__cat.is-active {
    background: linear-gradient(120deg, var(--tg-accent), var(--tg-accent-2));
    color: #071018;
    border-color: transparent;
    box-shadow: 0 8px 24px var(--tg-accent-glow);
}

.tg-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.tg-gallery__item {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--tg-line);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    transition: transform 0.35s var(--tg-ease), border-color 0.35s var(--tg-ease), box-shadow 0.35s var(--tg-ease);
}

.tg-gallery__item:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.tg-gallery__media {
    margin: 0;
    position: relative;
    cursor: zoom-in;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(90, 208, 197, 0.04));
}

.tg-gallery__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s var(--tg-ease);
}

.tg-gallery__item:hover .tg-gallery__media img {
    transform: scale(1.05);
}

.tg-gallery__placeholder {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(90, 208, 197, 0.06));
}

.tg-gallery__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 20px 20px;
}

.tg-gallery__info-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tg-accent);
}

.tg-gallery__info-title {
    margin: 0;
    font-size: 16.5px;
    line-height: 1.45;
}

.tg-gallery__info-title a {
    color: var(--tg-text);
}

.tg-gallery__info-title a:hover {
    color: var(--tg-accent);
}

.tg-gallery__info-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--tg-text-dim);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.tg-gallery__info-more:hover {
    color: var(--tg-accent);
}

.tg-gallery__pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* Lightbox */
.tg-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9995;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--tg-ease), visibility 0.35s var(--tg-ease);
}

.tg-gallery-lightbox.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.tg-gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 10, 0.94);
    backdrop-filter: blur(10px);
}

.tg-gallery-lightbox__panel {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    max-width: min(1080px, 92vw);
    width: fit-content;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-gallery-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    border-radius: 16px;
    border: 1px solid var(--tg-line);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.tg-gallery-lightbox__cap {
    text-align: center;
    color: var(--tg-text-dim);
    font-size: 14px;
}

.tg-gallery-lightbox__close {
    position: absolute;
    top: -14px;
    inset-inline-end: -14px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--tg-line);
    background: rgba(11, 15, 20, 0.9);
    color: var(--tg-text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
}

.tg-gallery-lightbox__close:hover {
    color: #fff;
    border-color: var(--tg-accent);
}

.tg-gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid var(--tg-line);
    background: rgba(11, 15, 20, 0.85);
    color: var(--tg-text);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
}

.tg-gallery-lightbox__nav:hover {
    color: #fff;
    border-color: var(--tg-accent);
}

.tg-gallery-lightbox__nav--prev {
    inset-inline-start: -64px;
}

.tg-gallery-lightbox__nav--next {
    inset-inline-end: -64px;
}

@media (max-width: 920px) {
    .tg-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tg-gallery-card {
        flex-basis: clamp(220px, 44vw, 300px);
    }

    .tg-gallery-lightbox__nav--prev {
        inset-inline-start: 8px;
    }

    .tg-gallery-lightbox__nav--next {
        inset-inline-end: 8px;
    }

    .tg-gallery-lightbox__nav {
        background: rgba(11, 15, 20, 0.6);
    }
}

@media (max-width: 560px) {
    .tg-gallery__grid {
        grid-template-columns: 1fr;
    }

    .tg-gallery-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .tg-gallery-arrow {
        width: 38px;
        height: 38px;
    }
}

/* ============================================================
   FAQ — category chips, condensed list, Q/A detail landing
   ============================================================ */
/* FAQ category chips — premium glass pills with counts */
.tg-faq__cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 44px;
}

.tg-faq__cat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid var(--tg-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    color: var(--tg-text-dim);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: color 0.3s var(--tg-ease), border-color 0.3s var(--tg-ease), transform 0.3s var(--tg-ease), box-shadow 0.3s var(--tg-ease);
}

.tg-faq__cat:hover {
    color: #fff;
    border-color: var(--tg-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.18);
}

.tg-faq__cat.is-active {
    background: linear-gradient(120deg, var(--tg-accent), var(--tg-accent-2));
    color: #071018;
    border-color: transparent;
    box-shadow: 0 12px 34px var(--tg-accent-glow);
}

.tg-faq__cat-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--tg-accent);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
    transition: background 0.3s, box-shadow 0.3s;
}

.tg-faq__cat.is-active .tg-faq__cat-dot {
    background: #071018;
    box-shadow: 0 0 8px rgba(7, 16, 24, 0.5);
}

.tg-faq__cat-count {
    flex: none;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--tg-accent);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.tg-faq__cat.is-active .tg-faq__cat-count {
    background: rgba(7, 16, 24, 0.16);
    border-color: rgba(7, 16, 24, 0.22);
    color: #071018;
}

/* Condensed list item */
.tg-faq__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tg-faq__more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 6px 0 22px;
    padding: 0 22px;
    color: var(--tg-accent);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.tg-faq__more:hover {
    color: #fff;
}

/* Q/A detail landing page */
.tg-faq-detail {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin: 0 auto;
}

.tg-faq-detail__qa {
    padding: clamp(26px, 4vw, 44px);
}

.tg-faq-detail__head {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--tg-line-soft);
}

.tg-faq-detail__head h2 {
    margin: 6px 0 0;
    font-size: clamp(20px, 2.6vw, 27px);
    line-height: 1.4;
}

.tg-faq-detail__badge {
    flex: none;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-family: var(--tg-font-head);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.tg-faq-detail__badge--q {
    background: linear-gradient(135deg, var(--tg-accent), var(--tg-accent-2));
    color: #071018;
    box-shadow: 0 10px 30px var(--tg-accent-glow);
}

.tg-faq-detail__badge--a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 18px;
    background: var(--tg-bg-panel-2);
    border: 1px solid var(--tg-line);
    color: var(--tg-accent);
}

.tg-faq-detail__answer {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding-top: 26px;
}

.tg-faq-detail__content {
    flex: 1;
    min-width: 0;
    color: var(--tg-text-dim);
    line-height: 1.85;
    font-size: 15.5px;
}

.tg-faq-detail__content p {
    margin: 0 0 14px;
}

.tg-faq-detail__content p:last-child {
    margin-bottom: 0;
}

.tg-faq-detail__content ul,
.tg-faq-detail__content ol {
    padding-inline-start: 22px;
    margin: 0 0 14px;
}

.tg-faq-detail__content li {
    margin-bottom: 6px;
}

.tg-faq-detail__back {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tg-faq-detail__back .tg-btn {
    box-shadow: none;
}

/* Related questions */
.tg-faq-related {
    margin: 44px auto 0;
}

.tg-faq-related__title {
    font-size: 20px;
    margin: 0 0 18px;
}

.tg-faq-related__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-faq-related__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    color: var(--tg-text);
    transition: border-color 0.3s var(--tg-ease), transform 0.3s var(--tg-ease);
}

.tg-faq-related__item:hover {
    border-color: var(--tg-accent);
    transform: translateX(4px);
}

.tg-faq-related__item .tg-faq-detail__badge {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 15px;
}

.tg-faq-related__item>span:nth-child(2) {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
}

.tg-faq-related__item svg {
    color: var(--tg-text-mute);
}

/* ============================================================
   PROJECT CASES — archive list + single detail
   ============================================================ */
.tg-projects__cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 44px;
}

.tg-projects__cat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid var(--tg-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    color: var(--tg-text-dim);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: color 0.3s var(--tg-ease), border-color 0.3s var(--tg-ease), transform 0.3s var(--tg-ease), box-shadow 0.3s var(--tg-ease);
}

.tg-projects__cat:hover {
    color: #fff;
    border-color: var(--tg-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.18);
}

.tg-projects__cat.is-active {
    background: linear-gradient(120deg, var(--tg-accent), var(--tg-accent-2));
    color: #071018;
    border-color: transparent;
    box-shadow: 0 12px 34px var(--tg-accent-glow);
}

.tg-projects__cat-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--tg-accent);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
    transition: background 0.3s, box-shadow 0.3s;
}

.tg-projects__cat.is-active .tg-projects__cat-dot {
    background: #071018;
    box-shadow: 0 0 8px rgba(7, 16, 24, 0.5);
}

.tg-projects__cat-count {
    flex: none;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--tg-accent);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.tg-projects__cat.is-active .tg-projects__cat-count {
    background: rgba(7, 16, 24, 0.16);
    border-color: rgba(7, 16, 24, 0.22);
    color: #071018;
}

.tg-projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tg-project-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--tg-line);
    border-radius: var(--tg-radius);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    transition: transform 0.35s var(--tg-ease), border-color 0.35s var(--tg-ease), box-shadow 0.35s var(--tg-ease);
}

.tg-project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.tg-project-card--featured {
    grid-column: span 2;
}

.tg-project-card__media {
    position: relative;
    display: block;
    overflow: hidden;
}

.tg-project-card__media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.6s var(--tg-ease);
}

.tg-project-card:hover .tg-project-card__media img {
    transform: scale(1.05);
}

.tg-project-card__placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(90, 208, 197, 0.05));
}

.tg-project-card__badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(6, 10, 14, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    color: var(--tg-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tg-project-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px 24px;
}

.tg-project-card__body h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.4;
}

.tg-project-card--featured .tg-project-card__body h2 {
    font-size: clamp(21px, 2.4vw, 26px);
}

.tg-project-card__body h2 a {
    color: var(--tg-text);
}

.tg-project-card__body h2 a:hover {
    color: var(--tg-accent);
}

.tg-project-card__body p {
    margin: 0;
    color: var(--tg-text-dim);
    font-size: 14px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tg-project-card__more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    color: var(--tg-accent);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.tg-project-card__more:hover {
    color: #fff;
}

.tg-projects__pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* Single project */
.tg-project-single {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin: 0 auto;
}

.tg-project-single__media {
    margin: 0;
    border-radius: var(--tg-radius);
    overflow: hidden;
    border: 1px solid var(--tg-line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.tg-project-single__media img {
    display: block;
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
}

.tg-project-single__body {
    padding: clamp(26px, 4vw, 44px);
    color: var(--tg-text-dim);
    font-size: 15.5px;
    line-height: 1.85;
}

.tg-project-single__body p {
    margin: 0 0 14px;
}

.tg-project-single__body p:last-child {
    margin-bottom: 0;
}

.tg-project-single__body h2,
.tg-project-single__body h3 {
    color: var(--tg-text);
}

.tg-project-single__body ul,
.tg-project-single__body ol {
    padding-inline-start: 22px;
    margin: 0 0 14px;
}

.tg-project-single__body img {
    max-width: 100%;
    border-radius: 12px;
}

.tg-project-single__back {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tg-project-single__back .tg-btn {
    box-shadow: none;
}

.tg-project-related {
    max-width: 980px;
    margin: 44px auto 0;
}

.tg-project-related__title {
    font-size: 20px;
    margin: 0 0 18px;
}

.tg-projects__grid--related {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 920px) {
    .tg-projects__grid {
        grid-template-columns: 1fr;
    }

    .tg-project-card--featured {
        grid-column: span 1;
    }

    .tg-projects__grid--related {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .tg-projects__grid--related {
        grid-template-columns: 1fr;
    }
}

/* Project core data — premium facts panel */
.tg-project-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tg-project-facts__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--tg-line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(8px);
    transition: border-color 0.35s var(--tg-ease), transform 0.35s var(--tg-ease), box-shadow 0.35s var(--tg-ease);
}

.tg-project-facts__item:hover {
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.tg-project-facts__icon {
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--tg-accent), var(--tg-accent-2));
    color: #071018;
    box-shadow: 0 8px 20px var(--tg-accent-glow);
}

.tg-project-facts__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.tg-project-facts__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tg-text-mute);
}

.tg-project-facts__value {
    font-size: 15px;
    font-weight: 700;
    color: var(--tg-text);
    line-height: 1.4;
    overflow-wrap: break-word;
}

@media (max-width: 920px) {
    .tg-project-facts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .tg-project-facts {
        grid-template-columns: 1fr;
    }
}

/* Gallery single detail */
.tg-gallery-single {
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-width: 980px;
    margin: 0 auto;
}

.tg-gallery-single__media {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    border-radius: var(--tg-radius);
    overflow: hidden;
    border: 1px solid var(--tg-line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}

.tg-gallery-single__media img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
}

.tg-gallery-single__body {
    padding: clamp(26px, 4vw, 44px);
    color: var(--tg-text-dim);
    font-size: 15.5px;
    line-height: 1.85;
}

.tg-gallery-single__body p {
    margin: 0 0 14px;
}

.tg-gallery-single__body p:last-child {
    margin-bottom: 0;
}

.tg-gallery-single__back {
    display: flex;
    margin: 0 auto;
}

.tg-gallery-single__back .tg-btn {
    box-shadow: none;
}

.tg-faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.tg-faq-card {
    position: relative;
    padding: 32px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, .08),
            rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    backdrop-filter: blur(12px);
    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}

/* 左侧装饰线 */
.tg-faq-card:before {
    content: "";
    position: absolute;
    left: 0;
    top: 25px;
    bottom: 25px;
    width: 3px;
    background: #38bdf8;
    border-radius: 10px;
    opacity: 0;
    transition: .3s ease;
}

.tg-faq-card:hover {
    transform: translateY(-8px);
    border-color:
        rgba(56, 189, 248, .45);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, .35);
}

.tg-faq-card:hover:before {
    opacity: 1;
}

/* 标题 */
.tg-faq-card h2 {
    margin: 0 0 18px;
    font-size: 22px;
    line-height: 1.45;
    font-weight: 700;
}

.tg-faq-card h2 a {
    color: #38bdf8;
    text-decoration: none;
    transition: .25s ease;
}

.tg-faq-card h2 a:hover {
    color: #7dd3fc;
}

/* 描述 */
.tg-faq-card p {
    margin: 0;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.8;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分类 */
.tg-faq-card__meta {
    margin-top: 24px;
    display: inline-flex;
    width: max-content;
    padding: 6px 14px;
    border-radius: 999px;
    background:
        rgba(56, 189, 248, .12);
    color: #7dd3fc;
    font-size: 13px;
    font-weight: 600;
}

/* Read Answer */
.tg-project-card__more {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: .3s ease;
}

.tg-project-card__more:after {
    content: "→";
    transition: .3s ease;
}

.tg-project-card__more:hover {
    color: #38bdf8;
}

.tg-project-card__more:hover:after {
    transform: translateX(5px);
}

/* 平板 */
@media(max-width:1024px) {
    .tg-faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机 */
@media(max-width:640px) {
    .tg-faq-grid {
        grid-template-columns: 1fr;
    }

    .tg-faq-card {
        padding: 24px;
    }

    .tg-faq-card h2 {
        font-size: 19px;
    }
}