/* Public information architecture for T&N Control. Brand tokens remain in styles.css. */
.tn-site {
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Kanit', 'Inter', sans-serif;
}

.tn-site h1,
.tn-site h2,
.tn-site h3,
.tn-site button,
.tn-site input,
.tn-site textarea,
.tn-site select {
    font-family: 'Kanit', 'Inter', sans-serif;
}

tn-header,
tn-footer {
    display: block;
}

.tn-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.tn-site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--card-border);
}

.tn-nav {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
}

.tn-brand {
    display: inline-flex;
    align-items: center;
    width: 158px;
    height: 58px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
}

.tn-brand img {
    width: 158px;
    height: 158px;
    object-fit: cover;
    display: block;
    transform: translateY(-40px);
}

.tn-nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.75rem, 1.4vw, 1.35rem);
}

.tn-nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 650;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.tn-nav-links a:hover,
.tn-nav-links a[aria-current='page'] {
    color: var(--accent-primary);
}

.tn-nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.tn-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: #fff;
    color: var(--text-primary);
    cursor: pointer;
}

.tn-menu-button span {
    width: 19px;
    height: 2px;
    display: block;
    margin: 4px auto;
    background: currentColor;
}

.tn-button,
.tn-button-secondary,
.tn-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0.72rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tn-button {
    color: #fff;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink));
    box-shadow: 0 12px 28px rgba(242, 101, 34, 0.18);
}

.tn-button:hover,
.tn-button-secondary:hover {
    transform: translateY(-2px);
}

.tn-button-secondary {
    color: var(--text-primary);
    background: #fff;
    border: 1px solid rgba(61, 64, 70, 0.18);
}

.tn-text-link {
    min-height: auto;
    padding: 0;
    color: var(--accent-primary);
    border-radius: 0;
}

.tn-main {
    overflow: clip;
}

.tn-hero {
    position: relative;
    isolation: isolate;
    min-height: min(760px, calc(100vh - 76px));
    padding: clamp(4.5rem, 8vw, 7rem) 0;
    background:
        radial-gradient(circle at 84% 18%, rgba(27, 159, 231, 0.18), transparent 34%),
        radial-gradient(circle at 76% 86%, rgba(242, 101, 34, 0.2), transparent 38%),
        var(--text-primary);
    color: #fff;
}

.tn-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.08;
    background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent);
}

.tn-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
}

.tn-kicker {
    margin: 0 0 1rem;
    color: var(--accent-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.tn-hero .tn-kicker { color: #ff9b6d; }

.tn-hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.65rem, 4.6vw, 4.45rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: inherit;
    text-wrap: balance;
}

.tn-hero-lead {
    max-width: 680px;
    margin: 1.5rem 0 0;
    color: rgba(255,255,255,.82);
    font-size: clamp(1rem, 1.35vw, 1.16rem);
    line-height: 1.8;
}

.tn-hero-actions,
.tn-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.tn-hero .tn-button-secondary {
    color: #fff;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.28);
}

.tn-hero-services { display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; margin: 2rem 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.68); font-size: .82rem; }
.tn-hero-services li::before { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 .55rem .1rem 0; border-radius: 50%; background: var(--accent-primary); }

.tn-hero-visual { position: relative; min-height: 480px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: linear-gradient(145deg, rgba(27,159,231,.94), rgba(89,70,175,.82) 42%, rgba(242,101,34,.92)); box-shadow: 0 30px 80px rgba(0,0,0,.24); }
.tn-hero-visual::before { content: ''; position: absolute; width: 420px; height: 190px; left: -55px; top: 135px; border-radius: 48% 52% 62% 38% / 55% 36% 64% 45%; background: linear-gradient(120deg, rgba(31,47,125,.9), rgba(242,101,34,.28)); transform: rotate(-12deg); box-shadow: 120px 25px 90px rgba(255,125,104,.28); }
.tn-hero-visual::after { content: ''; position: absolute; width: 300px; height: 300px; right: -110px; top: 80px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.04), 0 0 0 84px rgba(255,255,255,.03); }
.tn-visual-meta { position: absolute; inset: 24px 26px auto; z-index: 2; display: flex; justify-content: space-between; color: rgba(255,255,255,.78); font-size: .68rem; letter-spacing: .13em; }
.tn-visual-title { position: absolute; z-index: 2; left: 42px; top: 105px; display: grid; color: #fff; line-height: .92; letter-spacing: .1em; }
.tn-visual-title span { font-size: clamp(1.55rem,2.6vw,2.4rem); font-weight: 400; }
.tn-visual-title strong { font-size: clamp(2.5rem,4.8vw,4.6rem); font-weight: 700; }
.tn-visual-orbit { position: absolute; z-index: 2; inset: 0; }
.tn-visual-orbit i { position: absolute; width: 10px; height: 10px; border: 2px solid rgba(255,255,255,.72); border-radius: 50%; }
.tn-visual-orbit i:nth-child(1) { top: 26%; right: 24%; }
.tn-visual-orbit i:nth-child(2) { top: 52%; right: 15%; width: 18px; height: 18px; }
.tn-visual-orbit i:nth-child(3) { left: 35%; bottom: 24%; width: 7px; height: 7px; background: #fff; }
.tn-visual-note { position: absolute; z-index: 2; right: 24px; bottom: 24px; width: min(260px,60%); padding: 1rem; color: #fff; border: 1px solid rgba(255,255,255,.28); background: rgba(24,29,43,.62); backdrop-filter: blur(10px); }
.tn-visual-note span { display: block; margin-bottom: .45rem; font-size: .68rem; font-weight: 700; letter-spacing: .1em; }
.tn-visual-note small { display: block; color: rgba(255,255,255,.7); line-height: 1.5; }

.tn-section {
    padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.tn-section-muted { background: #eef4f8; }
.tn-section-dark { background: var(--text-primary); color: #fff; }

.tn-section-head {
    max-width: 800px;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.tn-section-head-row {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
}

.tn-section h2,
.tn-section-head h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(1.85rem, 3.2vw, 3rem);
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.tn-section-intro {
    max-width: 700px;
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.tn-section-dark .tn-section-intro { color: rgba(255,255,255,.72); }

.tn-grid-2,
.tn-grid-3,
.tn-grid-4,
.tn-grid-5 {
    display: grid;
    gap: 1.25rem;
}

.tn-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tn-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tn-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tn-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.tn-card {
    min-width: 0;
    padding: clamp(1.4rem, 2.5vw, 2rem);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(61, 64, 70, 0.04);
}

a.tn-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

a.tn-card:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 101, 34, .42);
    box-shadow: 0 18px 42px rgba(242, 101, 34, .1);
}

.tn-card-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 1.4rem;
    border-radius: 50%;
    color: var(--accent-primary);
    background: rgba(242,101,34,.1);
    font-size: 0.78rem;
    font-weight: 800;
}

.tn-card h3 {
    margin: 0 0 0.75rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    line-height: 1.35;
}

.tn-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.tn-card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.tn-card-list li,
.tn-chip {
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    color: var(--text-primary);
    background: var(--surface-soft);
    font-size: 0.78rem;
    line-height: 1.3;
}

.tn-service-card {
    display: flex !important;
    min-height: 100%;
    flex-direction: column;
}

.tn-solution-card {
    display: flex !important;
    min-height: 100%;
    flex-direction: column;
}

.tn-solution-card .tn-card-list { margin-top: auto; padding-top: 1.25rem; }

.tn-service-card .tn-card-list { margin-top: auto; padding-top: 1.25rem; }

.tn-service-card-meta {
    display: flex;
    min-height: 38px;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.tn-service-card-meta .tn-card-index { flex: 0 0 auto; margin: 0; }

.tn-service-group {
    color: var(--text-muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: right;
    text-transform: uppercase;
}

.tn-service-card.is-coming-soon {
    border-style: dashed;
    background: linear-gradient(145deg, #fff, rgba(242,101,34,.045));
}

.tn-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin: 1rem 0 2rem;
}

.tn-service-use-cases .tn-card { padding: 1.2rem; box-shadow: none; }
.tn-service-use-cases .tn-card h3 { margin: 0; font-size: 1rem; }
.tn-service-notice { padding: 1rem 1.15rem; border-left: 4px solid var(--accent-primary); background: var(--surface-soft); }
.tn-service-coming-soon-hero .tn-badge { margin-bottom: 1rem; }
.tn-aside-card .tn-button,
.tn-aside-card .tn-button-secondary { width: 100%; margin-top: .75rem; }

.tn-capability-band {
    border-bottom: 1px solid var(--card-border);
    background: #fff;
}

.tn-capability-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tn-capability-list li {
    padding: 1.35rem 1rem;
    border-right: 1px solid var(--card-border);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

.tn-capability-list li:last-child { border-right: 0; }

.tn-process-list {
    counter-reset: tn-process;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: var(--card-border);
}

.tn-process-step {
    counter-increment: tn-process;
    min-height: 240px;
    padding: 1.6rem;
    background: #fff;
}

.tn-process-step::before {
    content: '0' counter(tn-process);
    display: block;
    margin-bottom: 2.5rem;
    color: var(--accent-primary);
    font-size: 0.78rem;
    font-weight: 800;
}

.tn-process-step h3 { margin: 0 0 0.75rem; }
.tn-process-step p { margin: 0; color: var(--text-muted); line-height: 1.65; }

.tn-stack-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255,255,255,.16);
    border-left: 1px solid rgba(255,255,255,.16);
}

.tn-stack-group {
    min-height: 180px;
    padding: 1.5rem;
    border-right: 1px solid rgba(255,255,255,.16);
    border-bottom: 1px solid rgba(255,255,255,.16);
}

.tn-stack-group h3 { margin: 0 0 0.75rem; color: #fff; }
.tn-stack-group p { margin: 0; color: rgba(255,255,255,.66); line-height: 1.65; }

.tn-quality-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.tn-quality-item {
    padding: 1.6rem 0;
    border-top: 2px solid var(--accent-primary);
}

.tn-quality-item h3 { margin: 0 0 0.65rem; }
.tn-quality-item p { margin: 0; color: var(--text-muted); line-height: 1.7; }

.tn-coming-soon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px dashed rgba(27,159,231,.48);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(27,159,231,.08), rgba(242,101,34,.07));
}

.tn-coming-soon h2 { margin-bottom: 0.7rem; }
.tn-coming-soon p { margin: 0; max-width: 740px; color: var(--text-muted); line-height: 1.7; }

.tn-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    color: #fff;
    background: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tn-faq-list { display: grid; gap: 0.8rem; max-width: 900px; }
.tn-faq-list details { border: 1px solid var(--card-border); border-radius: 12px; background: #fff; }
.tn-faq-list summary { padding: 1.2rem 1.4rem; cursor: pointer; font-weight: 750; }
.tn-faq-list p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--text-muted); line-height: 1.75; }

.tn-cta {
    padding: clamp(2.25rem, 5vw, 4rem);
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 20%, rgba(27,159,231,.28), transparent 35%),
        var(--text-primary);
}

.tn-cta h2 { max-width: 840px; margin: 0; color: #fff; font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.08; }
.tn-cta p { max-width: 720px; margin: 1rem 0 0; color: rgba(255,255,255,.72); line-height: 1.75; }
.tn-cta .tn-button-secondary { color: #fff; background: transparent; border-color: rgba(255,255,255,.3); }

.tn-page-hero {
    padding: clamp(4.5rem, 8vw, 6.5rem) 0;
    color: #fff;
    background: var(--text-primary);
}

.tn-page-hero h1 { margin: 0; max-width: 900px; color: inherit; font-size: clamp(2.4rem, 4.6vw, 4.25rem); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.tn-page-hero p:last-child { max-width: 760px; margin: 1.35rem 0 0; color: rgba(255,255,255,.72); font-size: 1.1rem; line-height: 1.75; }

.tn-technology-hero { background: radial-gradient(circle at 85% 20%, rgba(27,159,231,.2), transparent 30%), radial-gradient(circle at 70% 90%, rgba(242,101,34,.16), transparent 34%), var(--text-primary); }
.tn-architecture-rule { display: inline-flex; padding: .65rem .85rem; border-left: 3px solid var(--accent-primary); color: rgba(255,255,255,.82) !important; background: rgba(255,255,255,.06); font-size: .88rem !important; }
.tn-technology-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--card-border); }
.tn-technology-card { position: relative; display: grid; grid-template-columns: minmax(130px,.35fr) minmax(0,1fr) auto; gap: 1.25rem; align-items: center; min-height: 112px; padding: 1.35rem 1rem; border-bottom: 1px solid var(--card-border); color: inherit; text-decoration: none; }
.tn-technology-card:nth-child(odd) { border-right: 1px solid var(--card-border); }
.tn-technology-card:hover { background: var(--surface-soft); }
.tn-technology-card > span { color: var(--text-primary); font-size: 1.1rem; font-weight: 700; }
.tn-technology-card p { margin: 0; color: var(--text-muted); line-height: 1.6; }
.tn-technology-card i { color: var(--accent-primary); font-style: normal; font-size: 1.25rem; }
.tn-technology-route-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid rgba(255,255,255,.16); border-left: 1px solid rgba(255,255,255,.16); }
.tn-technology-route { min-height: 250px; padding: 1.6rem; border-right: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); color: #fff; text-decoration: none; }
.tn-technology-route small { color: #ff9b6d; }
.tn-technology-route h3 { margin: 2.6rem 0 .7rem; color: #fff; font-size: 1.35rem; }
.tn-technology-route p { margin: 0 0 1.4rem; color: rgba(255,255,255,.62); line-height: 1.65; }
.tn-technology-route span { color: #ff9b6d; font-size: .84rem; font-weight: 700; }
.tn-scope-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; border: 1px solid var(--card-border); background: var(--card-border); }
.tn-scope-grid article { min-height: 150px; padding: 1.4rem; background: #fff; }
.tn-scope-grid small { color: var(--accent-primary); font-weight: 700; }
.tn-scope-grid h3 { margin: 2rem 0 0; font-size: 1.1rem; }
.tn-plain-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.tn-plain-list li { padding: 1rem; border-top: 2px solid var(--accent-primary); background: #fff; font-weight: 600; }
.tn-deliverable-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; }
.tn-deliverable-grid div { min-height: 92px; padding: 1rem; border: 1px solid var(--card-border); background: #fff; font-weight: 650; }
.tn-dark-card-grid .tn-card { box-shadow: none; }

.tn-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, .38fr);
    gap: clamp(2rem, 6vw, 5rem);
}

.tn-prose { min-width: 0; }
.tn-prose h2 { margin: 2.5rem 0 0.8rem; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.tn-prose h2:first-child { margin-top: 0; }
.tn-prose p, .tn-prose li { color: var(--text-muted); line-height: 1.85; }
.tn-prose ul { padding-left: 1.2rem; }

.tn-aside-card {
    align-self: start;
    position: sticky;
    top: 110px;
    padding: 1.5rem;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: #fff;
}

.tn-aside-card h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.tn-aside-card ul { display: grid; gap: 0.7rem; margin: 0 0 1.4rem; padding-left: 1.1rem; }
.tn-aside-card li { color: var(--text-muted); line-height: 1.55; }

.tn-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.tn-project-card {
    overflow: hidden;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.tn-project-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: var(--surface-soft);
}

.tn-project-card-body { padding: 1.25rem; }
.tn-project-card-body span { color: var(--accent-primary); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tn-project-card-body h2,
.tn-project-card-body h3 { margin: .5rem 0 .6rem; font-size: 1.2rem; }
.tn-project-card-body p { margin: 0; color: var(--text-muted); line-height: 1.65; }
.tn-project-tools { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tn-project-tools small { display: inline-flex; padding: .3rem .55rem; border-radius: 999px; background: var(--surface-soft); color: var(--text-muted); font-size: .72rem; font-weight: 700; }

.tn-empty-state {
    grid-column: 1 / -1;
    padding: 3rem;
    border: 1px dashed var(--card-border);
    border-radius: 16px;
    color: var(--text-muted);
    text-align: center;
    background: #fff;
}

.tn-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 2rem;
}

.tn-service-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(220px, .8fr) auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 2rem;
    padding: 1.25rem;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: var(--surface-soft);
}

.tn-service-toolbar input,
.tn-service-toolbar select {
    width: 100%;
    min-height: 48px;
    padding: .75rem .9rem;
    border: 1px solid rgba(61,64,70,.18);
    border-radius: 10px;
    background: #fff;
    color: var(--text-primary);
    font: inherit;
}

.tn-service-toolbar input:focus,
.tn-service-toolbar select:focus { outline: 3px solid rgba(242,101,34,.16); border-color: var(--accent-primary); }
.tn-service-count { min-width: 155px; margin: 0 0 .85rem; color: var(--text-muted); font-size: .88rem; font-weight: 700; text-align: right; }

.tn-toolbar input,
.tn-form input,
.tn-form textarea,
.tn-form select {
    width: 100%;
    padding: .9rem 1rem;
    border: 1px solid rgba(61,64,70,.18);
    border-radius: 10px;
    background: #fff;
    color: var(--text-primary);
    font: inherit;
}

.tn-toolbar input { max-width: 440px; }
.tn-toolbar input:focus,
.tn-form input:focus,
.tn-form textarea:focus,
.tn-form select:focus { outline: 3px solid rgba(242,101,34,.16); border-color: var(--accent-primary); }

.tn-form {
    display: grid;
    gap: 1rem;
}

.tn-form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.tn-field { display: grid; gap: .45rem; }
.tn-field label { font-weight: 700; }
.tn-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.tn-form-status { min-height: 1.5rem; color: var(--text-muted); }
.tn-form-context { margin: 0; padding: .85rem 1rem; border-left: 4px solid var(--accent-primary); background: var(--surface-soft); color: var(--text-primary); font-weight: 700; }

.tn-contact-grid {
    display: grid;
    grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr);
    gap: clamp(2rem,6vw,5rem);
}

.tn-contact-list { display: grid; gap: .8rem; margin-top: 1.5rem; }
.tn-contact-list a { color: var(--text-primary); text-decoration: none; font-weight: 700; }

.tn-project-detail-image {
    width: 100%;
    max-height: 680px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--card-border);
    background: var(--surface-soft);
}

.tn-project-detail-layout { margin-top: 3rem; }
.tn-case-study section + section { margin-top: 2.5rem; }
.tn-case-study p { white-space: pre-wrap; }
.tn-project-video { width: 100%; margin-top: 1rem; border-radius: 14px; background: #111; }
.tn-project-video-embed { aspect-ratio: 16/9; border: 0; }
.tn-diagram-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1rem; }
.tn-diagram-grid figure { margin: 0; overflow: hidden; border: 1px solid var(--card-border); border-radius: 14px; background: #fff; }
.tn-diagram-grid img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--surface-soft); }
.tn-diagram-grid figcaption { padding: .75rem 1rem; color: var(--text-primary); font-weight: 700; }
.tn-aside-card a { color: var(--accent-primary); }

.tn-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1rem; }
.tn-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }

.tn-site-footer {
    padding: 4rem 0 2rem;
    color: #fff;
    background: var(--bg-footer);
}

.tn-footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(140px, .6fr));
    gap: 2rem;
}

.tn-footer-brand { max-width: 430px; }
.tn-footer-brand strong { display: block; margin-bottom: .7rem; font-size: 1.15rem; }
.tn-footer-brand p { margin: 0; color: rgba(255,255,255,.65); line-height: 1.7; }
.tn-footer-column strong { display: block; margin-bottom: .8rem; }
.tn-footer-column a { display: block; margin: .55rem 0; color: rgba(255,255,255,.68); text-decoration: none; }
.tn-footer-column a:hover { color: #fff; }
.tn-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.55); font-size: .86rem; }
.tn-footer-bottom a { color: inherit; }

@media (max-width: 1080px) {
    .tn-nav { grid-template-columns: auto 1fr auto; }
    .tn-nav-links {
        position: fixed;
        inset: 76px 0 auto;
        display: none;
        max-height: calc(100vh - 76px);
        overflow-y: auto;
        padding: 1.4rem 20px 2rem;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border-bottom: 1px solid var(--card-border);
        box-shadow: 0 18px 30px rgba(61,64,70,.1);
    }
    .tn-nav-links[data-open='true'] { display: flex; }
    .tn-nav-links a { padding: .55rem 0; font-size: 1rem; }
    .tn-menu-button { display: block; }
    .tn-nav-actions .tn-button { display: none; }
    .tn-hero-grid { grid-template-columns: 1fr; }
    .tn-hero-visual { width: min(100%,720px); }
    .tn-grid-4, .tn-grid-5 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .tn-process-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .tn-stack-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .tn-portfolio-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .tn-service-toolbar { grid-template-columns: 1fr 1fr; }
    .tn-service-count { grid-column: 1 / -1; margin: 0; text-align: left; }
    .tn-technology-route-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .tn-deliverable-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
    .tn-shell { width: min(100% - 28px, 1180px); }
    .tn-nav { min-height: 68px; gap: .65rem; }
    .tn-brand { width: 132px; height: 52px; }
    .tn-brand img { width: 132px; height: 132px; transform: translateY(-33px); }
    .tn-nav-links { inset-block-start: 68px; max-height: calc(100vh - 68px); }
    .tn-hero { min-height: auto; padding: 4.25rem 0; }
    .tn-hero h1 { font-size: clamp(2.05rem, 9vw, 2.45rem); letter-spacing: -0.025em; }
    .tn-page-hero h1 { font-size: clamp(2.15rem, 9vw, 3rem); letter-spacing: -0.03em; }
    .tn-hero-visual { min-height: 300px; }
    .tn-section-head-row { align-items: flex-start; flex-direction: column; }
    .tn-grid-2, .tn-grid-3, .tn-grid-4, .tn-grid-5,
    .tn-quality-list, .tn-portfolio-grid, .tn-detail-layout,
    .tn-contact-grid, .tn-form-row { grid-template-columns: 1fr; }
    .tn-capability-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .tn-capability-list li:nth-child(2) { border-right: 0; }
    .tn-capability-list li:nth-child(-n+2) { border-bottom: 1px solid var(--card-border); }
    .tn-process-list, .tn-stack-grid { grid-template-columns: 1fr; }
    .tn-process-step { min-height: auto; }
    .tn-process-step::before { margin-bottom: 1.2rem; }
    .tn-coming-soon { grid-template-columns: 1fr; }
    .tn-coming-soon .tn-badge { justify-self: start; }
    .tn-aside-card { position: static; }
    .tn-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .tn-footer-brand { grid-column: 1 / -1; }
    .tn-footer-bottom { flex-direction: column; }
    .tn-gallery { grid-template-columns: 1fr; }
    .tn-diagram-grid { grid-template-columns: 1fr; }
    .tn-service-toolbar { grid-template-columns: 1fr; }
    .tn-service-count { grid-column: auto; }
    .tn-technology-grid, .tn-technology-route-grid, .tn-scope-grid { grid-template-columns: 1fr; }
    .tn-technology-card:nth-child(odd) { border-right: 0; }
    .tn-technology-card { grid-template-columns: 1fr auto; gap: .5rem 1rem; }
    .tn-technology-card p { grid-column: 1 / -1; }
    .tn-plain-list { grid-template-columns: 1fr; }
}

/* Home — editorial direction inspired by the pacing of modern design studios.
   Scoped to the homepage so public tools and detail pages keep their existing behavior. */
.tn-home {
    --home-ink: #202124;
    --home-paper: #f4f1eb;
    --home-orange: var(--accent-primary);
    --home-line: rgba(32, 33, 36, .2);
    background: var(--home-paper);
    overflow-x: clip;
}

.tn-home .tn-site-header {
    position: relative;
    background: #fff;
    border-bottom-color: var(--home-line);
}

.tn-home .tn-nav { min-height: 88px; }
.tn-home .tn-brand { background: transparent; }
.tn-home .tn-nav-links a { font-size: .82rem; font-weight: 600; }
.tn-home .tn-button,
.tn-home .tn-button-secondary {
    border-radius: 999px;
    box-shadow: none;
}
.tn-home .tn-button { background: var(--home-ink); }

.home-hero {
    min-height: calc(100svh - 88px);
    display: flex;
    flex-direction: column;
    background: var(--home-paper);
    color: var(--home-ink);
}

.home-hero-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 690px;
    padding-top: clamp(3rem, 7vw, 6.5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.home-eyebrow,
.home-section-label {
    margin: 0;
    color: inherit;
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .04em;
}

.home-section-label {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid currentColor;
}

.home-section-label span { opacity: .5; }

.home-hero h1 {
    display: flex;
    flex-direction: column;
    margin: clamp(4rem, 8vw, 8rem) 0;
    color: var(--home-ink);
    font-size: clamp(3.35rem, 7.25vw, 7.2rem);
    font-weight: 500;
    line-height: .94;
    letter-spacing: -.065em;
}

.home-hero h1 span:nth-child(2) { padding-left: 10vw; }
.home-hero h1 span:nth-child(3) { align-self: flex-end; color: var(--home-orange); }

.home-hero-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 3rem;
    margin-top: auto;
}

.home-hero-footer p {
    max-width: 670px;
    margin: 0;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.75;
}

.home-arrow-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: .25rem 0 .65rem;
    border-bottom: 1px solid currentColor;
    color: inherit;
    font-size: .95rem;
    font-weight: 650;
    text-decoration: none;
}

.home-arrow-link span { transition: transform .2s ease; }
.home-arrow-link:hover span { transform: translate(3px, -3px); }

.home-capability-strip {
    overflow: hidden;
    padding: 1rem 0;
    border-top: 1px solid var(--home-line);
    background: var(--home-orange);
    color: #fff;
    white-space: nowrap;
}

.home-capability-strip div {
    width: max-content;
    min-width: 100%;
    padding-inline: 2vw;
    font-size: clamp(.9rem, 1.4vw, 1.15rem);
    font-weight: 600;
    text-align: center;
}

.home-capability-strip i { margin: 0 clamp(1rem, 2.5vw, 2.5rem); font-style: normal; opacity: .6; }

.home-statement,
.tn-home .tn-section,
.home-final-cta {
    padding: clamp(5.5rem, 10vw, 10rem) 0;
}

.home-statement { background: #fff; }
.home-statement h2 {
    max-width: 1050px;
    margin: clamp(3rem, 7vw, 6rem) 0 0;
    color: var(--home-ink);
    font-size: clamp(2.7rem, 6vw, 6.25rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.055em;
}

.home-statement-detail {
    display: grid;
    grid-template-columns: minmax(0, 620px) auto;
    align-items: end;
    justify-content: space-between;
    gap: 3rem;
    margin-top: clamp(3rem, 6vw, 6rem);
    padding-left: min(18vw, 220px);
}

.home-statement-detail p,
.home-section-heading > p,
.home-wide-copy,
.home-split p {
    margin: 0;
    color: inherit;
    font-size: 1.03rem;
    line-height: 1.8;
}

.home-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2.5rem;
    margin-bottom: clamp(3rem, 7vw, 6rem);
}

.home-section-heading .home-section-label { grid-column: 1 / -1; }
.home-section-heading h2 {
    max-width: 900px;
    margin: 0;
    color: inherit;
    font-size: clamp(2.8rem, 5.8vw, 5.9rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.055em;
}
.home-section-heading > p:not(.home-section-label) { max-width: 520px; }

.home-services { background: var(--home-paper); }
.tn-home .home-editorial-list { display: block; }
.tn-home .home-editorial-list .tn-service-card {
    display: grid !important;
    grid-template-columns: 70px minmax(200px, .7fr) minmax(0, 1fr) 24px;
    align-items: start;
    gap: clamp(1rem, 3vw, 3rem);
    min-height: auto;
    padding: 2rem 0;
    border: 0;
    border-top: 1px solid var(--home-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.tn-home .home-editorial-list .tn-service-card:last-child { border-bottom: 1px solid var(--home-line); }
.tn-home .home-editorial-list .tn-service-card::after { content: '↗'; font-size: 1.1rem; }
.tn-home .home-editorial-list .tn-service-card:hover { transform: none; border-color: var(--home-ink); box-shadow: none; }
.tn-home .home-editorial-list .tn-service-card-meta { display: block; min-height: 0; margin: 0; }
.tn-home .home-editorial-list .tn-card-index { width: auto; height: auto; margin: 0; background: none; }
.tn-home .home-editorial-list .tn-service-group { display: none; }
.tn-home .home-editorial-list .tn-card h3 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 550; }
.tn-home .home-editorial-list .tn-card p { font-size: .95rem; }
.tn-home .home-editorial-list .tn-card-list { display: none; }

.home-solutions { background: var(--home-ink); color: #fff; }
.tn-home .home-solution-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.28); }
.tn-home .home-solution-list .tn-card {
    min-height: 300px;
    padding: clamp(1.5rem, 3vw, 3rem);
    border: 0;
    border-right: 1px solid rgba(255,255,255,.28);
    border-bottom: 1px solid rgba(255,255,255,.28);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
}
.tn-home .home-solution-list .tn-card:nth-child(even) { border-right: 0; }
.tn-home .home-solution-list .tn-card:hover { transform: none; background: var(--home-orange); border-color: rgba(255,255,255,.28); box-shadow: none; }
.tn-home .home-solution-list .tn-card h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-weight: 500; }
.tn-home .home-solution-list .tn-card p,
.tn-home .home-solution-list .tn-service-group { color: rgba(255,255,255,.72); }
.tn-home .home-solution-list .tn-card-index { color: #fff; background: rgba(255,255,255,.1); }
.tn-home .home-solution-list .tn-card-list { margin-top: auto; }
.tn-home .home-solution-list .tn-card-list li { border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; }

.home-audiences { background: #fff; }
.home-audiences > .tn-shell > h2 {
    max-width: 1100px;
    margin: clamp(3rem, 6vw, 6rem) 0 2rem;
    color: var(--home-ink);
    font-size: clamp(2.7rem, 5.6vw, 5.7rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -.055em;
}
.home-wide-copy { max-width: 680px; margin-left: auto; }
.tn-home .home-audience-list { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(3rem, 6vw, 6rem); border-top: 1px solid var(--home-line); }
.tn-home .home-audience-list .tn-card { padding: 1.5rem 1rem 2.5rem 0; border: 0; border-radius: 0; box-shadow: none; }
.tn-home .home-audience-list .tn-card-index { width: auto; height: auto; background: none; }
.tn-home .home-audience-list .tn-card h3 { font-size: 1.1rem; }

.home-work { background: #c7d8ff; color: var(--home-ink); }
.tn-home .home-work .tn-portfolio-grid { gap: 1.25rem; }
.tn-home .home-work .tn-project-card { border: 0; border-radius: 0; background: transparent; }
.tn-home .home-work .tn-project-card img { aspect-ratio: 4 / 3; }
.tn-home .home-work .tn-project-card-body { padding: 1.2rem 0 0; }
.tn-home .home-work .tn-project-card-body h2 { font-size: 1.45rem; font-weight: 550; }
.tn-home .home-work .tn-project-tools { display: none; }
.tn-home .home-work .tn-empty-state { border-color: rgba(32,33,36,.3); border-radius: 0; background: transparent; color: var(--home-ink); }

.home-process { background: var(--home-orange); color: #fff; }
.tn-home .home-process .tn-process-list { display: block; border: 0; border-radius: 0; background: transparent; }
.tn-home .home-process .tn-process-step {
    display: grid;
    grid-template-columns: 70px minmax(200px, .55fr) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 3rem);
    min-height: 0;
    padding: 1.75rem 0;
    border-top: 1px solid rgba(255,255,255,.45);
    background: transparent;
}
.tn-home .home-process .tn-process-step:last-child { border-bottom: 1px solid rgba(255,255,255,.45); }
.tn-home .home-process .tn-process-step::before { margin: 0; color: #fff; }
.tn-home .home-process .tn-process-step h3 { margin: 0; color: #fff; font-size: 1.35rem; font-weight: 550; }
.tn-home .home-process .tn-process-step p { color: rgba(255,255,255,.82); }

.home-technology { background: var(--home-paper); color: var(--home-ink); }
.tn-home .home-technology .tn-stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 3rem; border: 0; border-top: 1px solid var(--home-line); }
.tn-home .home-technology .tn-stack-group { min-height: 210px; padding: 2rem 2rem 2rem 0; border-color: var(--home-line); }
.tn-home .home-technology .tn-stack-group:nth-child(even) { padding-left: 2rem; }
.tn-home .home-technology .tn-stack-group h3 { color: var(--home-ink); font-size: 1.4rem; font-weight: 550; }
.tn-home .home-technology .tn-stack-group p { max-width: 420px; color: rgba(32,33,36,.66); }

.home-quality { background: #fff; }
.tn-home .home-quality .tn-quality-list { gap: 0; border-top: 1px solid var(--home-line); }
.tn-home .home-quality .tn-quality-item { min-height: 240px; padding: 2rem 2rem 2rem 0; border-top: 0; border-right: 1px solid var(--home-line); }
.tn-home .home-quality .tn-quality-item + .tn-quality-item { padding-left: 2rem; }
.tn-home .home-quality .tn-quality-item:last-child { border-right: 0; }

.home-growth { background: #f2b7a0; color: var(--home-ink); }
.home-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .65fr); gap: clamp(3rem, 8vw, 8rem); margin-top: clamp(3rem, 7vw, 7rem); }
.home-split h2 {
    margin: 0;
    color: var(--home-ink);
    font-size: clamp(2.7rem, 5.8vw, 5.9rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.055em;
}
.home-split ul { margin: 2.25rem 0; padding: 0; list-style: none; border-top: 1px solid rgba(32,33,36,.35); }
.home-split li { padding: .8rem 0; border-bottom: 1px solid rgba(32,33,36,.35); }

.home-coming-soon { background: #d9d9d6; }
.home-coming-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 3rem; margin-top: clamp(3rem, 7vw, 7rem); }
.home-coming-row h2 {
    margin: 0;
    color: var(--home-ink);
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 500;
    line-height: .96;
    letter-spacing: -.06em;
}
.home-coming-row p { max-width: 630px; margin: 2rem 0 0; line-height: 1.7; }
.tn-home .home-coming-row .tn-badge { align-self: start; border-radius: 0; background: var(--home-ink); }

.home-faq { background: var(--home-paper); }
.tn-home .home-faq .tn-faq-list { max-width: none; gap: 0; border-top: 1px solid var(--home-line); }
.tn-home .home-faq .tn-faq-list details { border: 0; border-bottom: 1px solid var(--home-line); border-radius: 0; background: transparent; }
.tn-home .home-faq .tn-faq-list summary { position: relative; padding: 1.5rem 3.5rem 1.5rem 0; font-size: 1.05rem; font-weight: 550; list-style: none; }
.tn-home .home-faq .tn-faq-list summary::-webkit-details-marker { display: none; }
.tn-home .home-faq .tn-faq-list summary::after { content: '+'; position: absolute; right: .25rem; font-size: 1.5rem; font-weight: 350; }
.tn-home .home-faq .tn-faq-list details[open] summary::after { content: '−'; }
.tn-home .home-faq .tn-faq-list p { max-width: 760px; padding: 0 0 1.6rem; }

.home-final-cta { background: var(--home-ink); color: #fff; }
.home-final-cta h2 {
    margin: clamp(3rem, 6vw, 6rem) 0;
    color: #fff;
    font-size: clamp(3.2rem, 7.8vw, 8rem);
    font-weight: 500;
    line-height: .95;
    letter-spacing: -.06em;
}
.home-final-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.35); }
.home-final-actions a { display: flex; justify-content: space-between; gap: 2rem; padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,.35); color: #fff; text-decoration: none; }
.home-final-actions a + a { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.35); }

.tn-home .tn-site-footer { background: #131416; }

@media (prefers-reduced-motion: no-preference) {
    .home-hero h1 span { animation: home-rise .75s both; }
    .home-hero h1 span:nth-child(2) { animation-delay: .08s; }
    .home-hero h1 span:nth-child(3) { animation-delay: .16s; }
    @keyframes home-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 1080px) {
    .tn-home .tn-nav { min-height: 76px; }
    .home-hero { min-height: calc(100svh - 76px); }
    .home-hero-inner { min-height: 620px; }
    .tn-home .home-audience-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .tn-home .tn-site-header { position: sticky; }
    .tn-home .tn-nav { min-height: 68px; }
    .home-hero { min-height: auto; }
    .home-hero-inner { min-height: calc(100svh - 118px); padding-top: 3rem; padding-bottom: 2.5rem; }
    .home-hero h1 { max-width: 100%; margin: 3.5rem 0; font-size: clamp(2.15rem, 9.4vw, 2.8rem); line-height: 1.04; letter-spacing: -.04em; }
    .home-hero h1 span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
    .home-hero h1 span:nth-child(2) { padding-left: 0; }
    .home-hero h1 span:nth-child(3) { align-self: flex-start; }
    .home-hero-footer,
    .home-section-heading,
    .home-statement-detail,
    .home-split,
    .home-coming-row { grid-template-columns: 1fr; }
    .home-hero-footer { align-items: start; gap: 2rem; }
    .home-hero-footer p { min-width: 0; overflow-wrap: anywhere; }
    .home-capability-strip div { text-align: left; }
    .home-statement-detail { padding-left: 0; }
    .home-section-heading .home-section-label { grid-column: auto; }
    .home-section-heading h2,
    .home-statement h2,
    .home-audiences > .tn-shell > h2,
    .home-split h2 { font-size: clamp(2.35rem, 11vw, 3.75rem); }
    .tn-home .home-editorial-list .tn-service-card { grid-template-columns: 42px minmax(0, 1fr) 22px; gap: 1rem; }
    .tn-home .home-editorial-list .tn-card p { grid-column: 2 / -1; }
    .tn-home .home-solution-list,
    .tn-home .home-audience-list,
    .tn-home .home-technology .tn-stack-grid,
    .home-final-actions { grid-template-columns: 1fr; }
    .tn-home .home-solution-list .tn-card { min-height: 250px; border-right: 0; }
    .tn-home .home-audience-list .tn-card { border-bottom: 1px solid var(--home-line); }
    .tn-home .home-process .tn-process-step { grid-template-columns: 42px minmax(0, 1fr); }
    .tn-home .home-process .tn-process-step p { grid-column: 2; }
    .tn-home .home-technology .tn-stack-group,
    .tn-home .home-technology .tn-stack-group:nth-child(even) { min-height: auto; padding: 1.5rem 0; border-right: 0; }
    .tn-home .home-quality .tn-quality-list { grid-template-columns: 1fr; }
    .tn-home .home-quality .tn-quality-item,
    .tn-home .home-quality .tn-quality-item + .tn-quality-item { min-height: auto; padding: 1.5rem 0; border-right: 0; border-bottom: 1px solid var(--home-line); }
    .home-coming-row { align-items: start; }
    .home-coming-row h2 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
    .home-final-cta h2 { font-size: clamp(3rem, 14vw, 5rem); }
    .home-final-actions a,
    .home-final-actions a + a { padding: 1.25rem 0; border-left: 0; }
}

@media (max-width: 460px) {
    .tn-nav-actions .lang-btn { display: none; }
    .tn-hero-actions, .tn-cta-actions { flex-direction: column; align-items: stretch; }
    .tn-hero-actions a, .tn-cta-actions a { width: 100%; }
    .tn-capability-list, .tn-footer-grid { grid-template-columns: 1fr; }
    .tn-capability-list li { border-right: 0; border-bottom: 1px solid var(--card-border); }
    .tn-capability-list li:last-child { border-bottom: 0; }
    .tn-hero-visual { min-height: 280px; }
    .tn-visual-title { left: 24px; top: 82px; }
    .tn-visual-note { left: 24px; right: 24px; width: auto; }
    .tn-deliverable-grid { grid-template-columns: 1fr; }
}

/* Hardware roadmap: interest only. No product, price, order, or checkout UI. */
.tn-hardware-roadmap {
    background: #eef3f5;
}

.tn-hardware-roadmap-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.tn-hardware-roadmap h2 {
    max-width: 760px;
    margin: 1.25rem 0;
    font-size: clamp(2.5rem, 5vw, 5.5rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.tn-hardware-roadmap .tn-badge {
    display: inline-flex;
    margin-top: 1rem;
}

.tn-hardware-guardrails {
    max-width: 660px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(24, 28, 33, .22);
}

.tn-hardware-guardrails strong {
    color: var(--accent);
}

.tn-hardware-guardrails p {
    margin-bottom: 0;
}

.tn-hardware-interest-form h3 {
    margin: .35rem 0 1.75rem;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.tn-hardware-interest-form .tn-consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .75rem;
    align-items: start;
    margin: 1.25rem 0;
    font-size: .9rem;
    line-height: 1.55;
}

.tn-hardware-interest-form [data-hardware-interest-status][data-type='success'] { color: #18734a; }
.tn-hardware-interest-form [data-hardware-interest-status][data-type='error'] { color: #a22b22; }

@media (max-width: 900px) {
    .tn-hardware-roadmap-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .tn-hardware-roadmap h2 { font-size: clamp(2.25rem, 12vw, 3.25rem); }
    .tn-hardware-interest-form { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .tn-site *, .tn-site *::before, .tn-site *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Project Discovery */
.tn-discovery-hero { padding-bottom: 3rem; }
.tn-discovery-hero .tn-shell { max-width: 900px; margin-left: max(20px, calc((100% - 1180px) / 2)); }
.tn-discovery-section { padding-top: 1rem; }
.tn-discovery-layout { display: grid; grid-template-columns: minmax(220px, .36fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.tn-discovery-aside { position: sticky; top: 110px; padding: 1.5rem; border: 1px solid var(--card-border); border-radius: 18px; background: var(--card-bg); }
.tn-discovery-aside h2 { margin: .35rem 0 1.2rem; font-size: 1.25rem; }
.tn-discovery-progress { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.tn-discovery-progress li { display: flex; align-items: center; gap: .7rem; color: var(--text-muted); font-size: .9rem; font-weight: 600; }
.tn-discovery-progress li span { display: grid; width: 30px; height: 30px; place-items: center; flex: 0 0 auto; border: 1px solid var(--card-border); border-radius: 50%; background: #fff; }
.tn-discovery-progress li[data-state='current'] { color: var(--text-primary); }
.tn-discovery-progress li[data-state='current'] span { border-color: var(--accent-primary); background: var(--accent-primary); color: #fff; }
.tn-discovery-progress li[data-state='complete'] span { border-color: rgba(242,101,34,.35); color: var(--accent-primary); }
.tn-discovery-aside-note { margin: 1.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--card-border); color: var(--text-muted); font-size: .82rem; line-height: 1.6; }
.tn-discovery-panel { min-width: 0; }
.tn-discovery-form, .tn-discovery-result { padding: clamp(1.3rem, 3vw, 2.5rem); border: 1px solid var(--card-border); border-radius: 22px; background: var(--card-bg); box-shadow: 0 18px 55px rgba(61,64,70,.07); }
.tn-discovery-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.tn-discovery-step legend { max-width: 100%; margin-bottom: .55rem; padding: 0; color: var(--text-primary); font-family: 'Kanit','Inter',sans-serif; font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 600; line-height: 1.2; }
.tn-discovery-step > p { margin: 0 0 1.6rem; color: var(--text-muted); line-height: 1.65; }
.tn-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.tn-choice-card { position: relative; display: flex; min-height: 58px; align-items: center; gap: .7rem; padding: .85rem 1rem; border: 1px solid var(--card-border); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.tn-choice-card:hover { border-color: rgba(242,101,34,.55); transform: translateY(-1px); }
.tn-choice-card:has(input:checked) { border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(242,101,34,.11); }
.tn-choice-card input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent-primary); }
.tn-choice-card span { font-weight: 600; color: var(--text-primary); }
.tn-discovery-textarea textarea { min-height: 210px; resize: vertical; }
.tn-character-count { align-self: flex-end; margin-top: .35rem; color: var(--text-muted); font-size: .78rem; }
.tn-consent { display: flex; align-items: flex-start; gap: .65rem; margin-top: 1.2rem; color: var(--text-muted); font-size: .88rem; line-height: 1.55; }
.tn-consent input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--accent-primary); }
.tn-consent a { color: var(--accent-primary); }
.tn-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.tn-discovery-actions { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; }
.tn-discovery-actions [data-step-next], .tn-discovery-actions [data-submit] { margin-left: auto; }
.tn-discovery-actions button:disabled { opacity: .55; cursor: wait; }
.tn-form-status { min-height: 1.5em; margin: 1rem 0 0; color: var(--text-muted); }
.tn-form-status[data-type='error'] { color: #b42318; }
.tn-discovery-mobile-progress { display: none; }
.tn-discovery-result:focus { outline: none; }
.tn-discovery-result > h2 { margin: .3rem 0 .55rem; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.tn-discovery-result > p { color: var(--text-muted); line-height: 1.65; }
.tn-discovery-services { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; margin: 1.5rem 0; }
.tn-discovery-service { display: flex; min-width: 0; flex-direction: column; gap: .4rem; padding: 1rem; border: 1px solid var(--card-border); border-radius: 12px; color: inherit; text-decoration: none; }
.tn-discovery-service:hover { border-color: var(--accent-primary); }
.tn-discovery-service strong { color: var(--text-primary); }
.tn-discovery-service span { display: -webkit-box; overflow: hidden; color: var(--text-muted); font-size: .84rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tn-discovery-disclaimer { margin: 1.4rem 0; padding: 1rem 1.1rem; border-left: 4px solid var(--accent-primary); border-radius: 8px; background: rgba(242,101,34,.07); }
.tn-discovery-disclaimer strong { color: var(--text-primary); }
.tn-discovery-disclaimer p { margin: .25rem 0 0; color: var(--text-muted); }

@media (max-width: 860px) {
    .tn-discovery-layout { grid-template-columns: 1fr; }
    .tn-discovery-aside { display: none; }
    .tn-discovery-mobile-progress { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.4rem; color: var(--text-muted); font-size: .82rem; font-weight: 600; }
    .tn-discovery-progress-bar { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(61,64,70,.1); }
    .tn-discovery-progress-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent-primary); transition: width .2s ease; }
}

@media (max-width: 560px) {
    .tn-discovery-hero .tn-shell { margin-inline: auto; }
    .tn-discovery-hero h1 { font-size: 2.25rem; word-break: break-all; }
    .tn-discovery-hero p { overflow-wrap: anywhere; word-break: break-all; }
    .tn-choice-grid, .tn-discovery-services { grid-template-columns: 1fr; }
    .tn-discovery-form, .tn-discovery-result { padding: 1.15rem; border-radius: 16px; }
    .tn-discovery-actions { align-items: stretch; flex-direction: column-reverse; }
    .tn-discovery-actions button { width: 100%; margin-left: 0 !important; }
}

/* SEO Service Platform */
.tn-seo-service-grid .tn-card { min-height: 120px; display: flex; align-items: flex-end; }
.tn-seo-service-grid h3 { margin: 0; }
.tn-seo-audit-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.55fr); gap: clamp(1.5rem,5vw,4rem); align-items: start; }
.tn-seo-audit-form { padding: clamp(1.4rem,4vw,2.6rem); }
.tn-seo-audit-form h2 { margin: 0 0 1rem; font-size: clamp(1.7rem,3vw,2.4rem); }
.tn-seo-audit-form small { color: var(--text-muted); line-height: 1.55; }
.tn-seo-score-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: clamp(1.5rem,5vw,4rem); align-items: center; }
.tn-seo-score { --score: 0; display: grid; width: 210px; aspect-ratio: 1; place-content: center; padding: 1.2rem; border-radius: 50%; text-align: center; background: radial-gradient(circle closest-side, #fff 78%, transparent 79% 99%), conic-gradient(var(--accent-primary) calc(var(--score) * 1%), rgba(61,64,70,.1) 0); }
.tn-seo-score strong { color: var(--text-primary); font-size: 4rem; line-height: 1; }
.tn-seo-score span { max-width: 130px; margin-top: .5rem; color: var(--text-muted); font-size: .78rem; font-weight: 700; line-height: 1.35; }
.tn-seo-status-summary { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.tn-seo-status-summary span, .tn-seo-issue header > strong { padding: .35rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.is-critical { color: #b42318; background: #fee4e2; }
.is-warning { color: #b54708; background: #fffaeb; }
.is-passed { color: #067647; background: #ecfdf3; }
.tn-seo-category-scores, .tn-seo-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .75rem; margin-top: 2rem; }
.tn-seo-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
.tn-seo-category-scores > div, .tn-seo-summary > div { display: grid; gap: .3rem; padding: 1rem; border: 1px solid var(--card-border); border-radius: 12px; background: #fff; }
.tn-seo-category-scores span, .tn-seo-summary span { color: var(--text-muted); font-size: .75rem; }
.tn-seo-report-tools { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.tn-seo-report-tools select { min-width: 190px; padding: .7rem .85rem; border: 1px solid var(--card-border); border-radius: 9px; background: #fff; font: inherit; }
.tn-seo-issues { display: grid; gap: 1rem; }
.tn-seo-issue { padding: 1.4rem; border: 1px solid var(--card-border); border-left-width: 5px; border-radius: 14px; background: #fff; }
.tn-seo-issue.is-critical { border-left-color: #d92d20; color: inherit; background: #fff; }
.tn-seo-issue.is-warning { border-left-color: #f79009; color: inherit; background: #fff; }
.tn-seo-issue.is-passed { border-left-color: #12b76a; color: inherit; background: #fff; }
.tn-seo-issue header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.tn-seo-issue header span { color: var(--accent-primary); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.tn-seo-issue h3 { margin: .25rem 0 0; }
.tn-seo-issue.is-critical header > strong { color: #b42318; background: #fee4e2; }
.tn-seo-issue.is-warning header > strong { color: #b54708; background: #fffaeb; }
.tn-seo-issue.is-passed header > strong { color: #067647; background: #ecfdf3; }
.tn-seo-issue dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 1.2rem 0 0; }
.tn-seo-issue dl div { padding-top: .8rem; border-top: 1px solid var(--card-border); }
.tn-seo-issue dt { color: var(--text-primary); font-size: .78rem; font-weight: 800; }
.tn-seo-issue dd { margin: .35rem 0 0; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 800px) {
    .tn-seo-audit-layout, .tn-seo-score-layout { grid-template-columns: 1fr; }
    .tn-seo-score { width: 180px; }
    .tn-seo-category-scores { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .tn-seo-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 520px) {
    .tn-seo-category-scores, .tn-seo-summary, .tn-seo-issue dl { grid-template-columns: 1fr; }
    .tn-seo-report-tools { display: grid; grid-template-columns: 1fr; }
    .tn-seo-report-tools select { width: 100%; }
}

/* Cost-efficient customer assistant */
.tn-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.tn-assistant { position: fixed; left: 20px; bottom: 20px; z-index: 1400; font-family: 'Kanit','Inter',sans-serif; }
.tn-assistant-launcher { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .65rem 1rem; border: 0; border-radius: 999px; color: #fff; background: var(--text-primary); box-shadow: 0 10px 30px rgba(0,0,0,.2); cursor: pointer; font: inherit; font-size: .86rem; font-weight: 750; }
.tn-assistant-launcher span:first-child { color: #ff9b6d; }
.tn-assistant-panel { position: absolute; left: 0; bottom: 60px; width: min(390px, calc(100vw - 28px)); overflow: hidden; border: 1px solid var(--card-border); border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.tn-assistant-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; color: #fff; background: var(--text-primary); }
.tn-assistant-panel > header div { display: grid; gap: .2rem; }
.tn-assistant-panel > header small { color: rgba(255,255,255,.65); font-size: .68rem; }
.tn-assistant-panel > header button { border: 0; color: #fff; background: transparent; cursor: pointer; font-size: 1.5rem; }
.tn-assistant-messages { display: grid; gap: .8rem; max-height: min(45vh,420px); overflow-y: auto; padding: 1rem; background: var(--surface-soft); }
.tn-assistant-message { max-width: 92%; padding: .75rem .85rem; border-radius: 12px; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.04); }
.tn-assistant-message.is-user { justify-self: end; color: #fff; background: var(--accent-primary); }
.tn-assistant-message small { display: block; margin-bottom: .35rem; color: var(--accent-primary); font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.tn-assistant-message.is-user small { color: rgba(255,255,255,.75); }
.tn-assistant-message p { margin: 0; white-space: pre-wrap; font-size: .82rem; line-height: 1.55; }
.tn-assistant-links { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; }
.tn-assistant-links a { padding: .25rem .45rem; border-radius: 999px; color: #2563eb; background: #eff6ff; font-size: .68rem; text-decoration: none; }
.tn-assistant-cta { display: inline-flex; margin-top: .7rem; color: var(--accent-primary); font-size: .78rem; font-weight: 800; }
.tn-assistant-quick { display: flex; gap: .4rem; overflow-x: auto; padding: .75rem 1rem 0; background: #fff; }
.tn-assistant-quick button { flex: 0 0 auto; padding: .4rem .6rem; border: 1px solid var(--card-border); border-radius: 999px; color: var(--text-primary); background: #fff; cursor: pointer; font-size: .68rem; }
.tn-assistant-panel form { display: grid; grid-template-columns: 1fr auto; gap: .5rem; padding: .75rem 1rem; }
.tn-assistant-panel textarea { min-width: 0; resize: none; padding: .6rem .7rem; border: 1px solid var(--card-border); border-radius: 9px; font: inherit; font-size: .78rem; }
.tn-assistant-panel form button { padding: .55rem .75rem; border: 0; border-radius: 9px; color: #fff; background: var(--accent-primary); cursor: pointer; font-weight: 700; }
.tn-assistant-note { margin: 0; padding: 0 1rem .8rem; color: var(--text-muted); font-size: .62rem; line-height: 1.45; }

@media (max-width: 480px) {
    .tn-assistant { left: 14px; bottom: 14px; }
    .tn-assistant-launcher span:last-child { display: none; }
    .tn-assistant-launcher { width: 48px; justify-content: center; padding: 0; }
}

/* Public language selector */
.tn-language-switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid rgba(61, 64, 70, .18);
    border-radius: 999px;
    background: #fff;
}

.tn-language-switch button {
    min-width: 32px;
    height: 32px;
    padding: 0 7px;
    border: 0;
    border-radius: 999px;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.tn-language-switch button:hover { color: var(--text-primary); }
.tn-language-switch button.is-active { color: #fff; background: var(--text-primary); }
.tn-home .tn-language-switch button.is-active { background: var(--home-orange); }
.home-arrow-link b,
.home-final-actions b { font: inherit; }

html[lang='zh-Hans'] .tn-site,
html[lang='zh-Hans'] .tn-site h1,
html[lang='zh-Hans'] .tn-site h2,
html[lang='zh-Hans'] .tn-site h3,
html[lang='zh-Hans'] .tn-site button,
html[lang='zh-Hans'] .tn-site input,
html[lang='zh-Hans'] .tn-site textarea,
html[lang='zh-Hans'] .tn-site select {
    font-family: 'Inter', 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
}

html[lang='zh-Hans'] .home-hero h1 {
    font-size: clamp(3.1rem, 5.8vw, 5.8rem);
    letter-spacing: -.035em;
}

@media (max-width: 760px) {
    html[lang='zh-Hans'] .home-hero h1 { font-size: clamp(2.05rem, 8.5vw, 2.65rem); }
}

@media (max-width: 460px) {
    .tn-nav-actions { gap: .4rem; }
    .tn-language-switch { padding: 2px; }
    .tn-language-switch button { min-width: 27px; height: 28px; padding: 0 4px; font-size: .6rem; }
    html[lang='zh-Hans'] .home-hero h1 { font-size: clamp(2.1rem, 9vw, 2.75rem); }
}
