/* TwoStackTech public website: light, conventional business layout.
   White surfaces, a soft blue tint for alternating sections, and the brand blue and
   teal used for buttons, links and small accents. Loaded after bootstrap.min.css. */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/inter-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/inter-latin-700-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('fonts/inter-latin-800-normal.woff2') format('woff2');
}

:root {
    --tst-navy-900: #0a1a3f;
    --tst-navy-700: #13295e;
    --tst-blue-600: #0b5cff;
    --tst-blue-700: #0a4fd9;
    --tst-blue-50: #eef4ff;
    --tst-blue-100: #dbe8ff;
    --tst-teal-500: #0fb8aa;
    --tst-teal-400: #18d8c8;
    --tst-page: #f7f9fc;
    --tst-grad: linear-gradient(120deg, #0b5cff 0%, #18b8d8 100%);

    --bs-primary: #0b5cff;
    --bs-primary-rgb: 11, 92, 255;
    --bs-link-color: #0b5cff;
    --bs-link-color-rgb: 11, 92, 255;
    --bs-link-hover-color: #0a4fd9;
    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --bs-body-color: #1e293b;
    --bs-body-bg: #ffffff;
    --bs-secondary-color: #64748b;
    --bs-border-color: #e5eaf2;
    --bs-border-radius: 0.75rem;
    --bs-border-radius-lg: 1rem;
    --tst-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --tst-shadow: 0 10px 25px -12px rgba(15, 23, 42, 0.18);
    --tst-shadow-lg: 0 24px 48px -20px rgba(15, 23, 42, 0.22);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.frontend-body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--bs-body-color);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--tst-navy-900);
    letter-spacing: -0.02em;
    text-wrap: balance;
}

:focus-visible {
    outline: 3px solid rgba(11, 92, 255, 0.45);
    outline-offset: 3px;
}

.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: var(--tst-shadow);
}

.text-brand {
    color: var(--tst-blue-600) !important;
}

.text-gradient {
    background: var(--tst-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Section labels */
.eyebrow-row {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
}

.eyebrow {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tst-blue-600);
}

.section-index {
    display: none;
}

.lead {
    color: #52607a;
}

.section {
    padding-block: 5rem;
}

.section-tint {
    background: var(--tst-page);
}

/* Dotted texture for sections that should not look plain white */
.section-pattern {
    background-color: #fbfdff;
    background-image: url('../img/dots.svg');
    background-size: 28px 28px;
}

.section-title {
    font-size: clamp(1.9rem, 3.6vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.875rem;
}

.section-lead {
    max-width: 640px;
    font-size: 1.125rem;
    margin-bottom: 0;
}

.section-heading {
    max-width: 820px;
}

.section-heading.text-center .section-lead {
    margin-inline: auto;
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 600;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.0625rem;
}

.btn-brand {
    background: var(--tst-blue-600);
    border: 1px solid var(--tst-blue-600);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--tst-shadow-sm);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-brand:hover,
.btn-brand:focus-visible {
    background: var(--tst-blue-700);
    border-color: var(--tst-blue-700);
    color: #fff;
    box-shadow: var(--tst-shadow);
}

.btn-outline-dark {
    --bs-btn-color: var(--tst-navy-900);
    --bs-btn-border-color: #cfd8e6;
    --bs-btn-hover-bg: var(--tst-navy-900);
    --bs-btn-hover-border-color: var(--tst-navy-900);
}

.btn-light {
    background: #fff;
    color: var(--tst-blue-600);
    border-color: #fff;
}

/* Header: white and bordered, with a soft shadow. Sticks to the top. */
.site-header {
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid var(--bs-border-color);
    box-shadow: var(--tst-shadow-sm);
}

.site-header .navbar {
    padding-block: 0.7rem;
}

.brand-logo {
    height: 48px;
    width: auto;
}

.site-header .nav-link {
    color: #334155;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
}

.site-header .nav-link:hover {
    color: var(--tst-blue-600);
    background: var(--tst-blue-50);
}

.site-header .nav-link.active {
    color: var(--tst-blue-600);
    font-weight: 600;
    background: var(--tst-blue-50);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero: a light two-column hero on a soft blue wash. */
.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: 5rem 4.5rem;
    background-color: #f2f7ff;
    background-image: url('../img/hero-bg.svg');
    background-size: cover;
    background-position: center top;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--tst-navy-900);
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: 1.125rem;
    color: #52607a;
    max-width: 560px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.3rem 1rem 0.3rem 0.3rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--bs-border-color);
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    box-shadow: var(--tst-shadow-sm);
}

.badge-brand {
    background: var(--tst-blue-600);
    color: #fff;
    border-radius: 999px;
    padding: 0.3125rem 0.625rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Stack card: a light product-style card beside the hero copy. */
.stack-card {
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--tst-shadow-lg);
}

.stack-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.875rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--bs-border-color);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8125rem;
    color: var(--bs-secondary-color);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: #22c55e;
}

.stack-layer {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding-block: 0.9rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.stack-layer:last-of-type {
    border-bottom: 0;
}

.stack-layer-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

.stack-chip {
    background: var(--tst-blue-50);
    color: var(--tst-blue-700);
    border: 1px solid var(--tst-blue-100);
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.4rem;
}

.stack-chip-accent {
    background: #e6fbf8;
    border-color: #b6f0e7;
    color: #0b7f74;
}

.stack-card-foot {
    margin-top: 0.875rem;
    font-size: 0.8125rem;
    color: var(--bs-secondary-color);
}

/* Stats strip: a plain white bar with the figures in a row. */
.stats-band {
    position: relative;
    z-index: 2;
    margin-top: -2.5rem;
}

.stats-strip {
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    box-shadow: var(--tst-shadow);
    padding: 1.75rem 1rem;
}

.stat-value {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--tst-blue-600);
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
}

/* Services: an even three-column card grid. */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--tst-shadow);
    border-color: #cfe0ff;
}

.service-tile-index {
    display: none;
}

.service-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: var(--tst-blue-50);
    color: var(--tst-blue-600);
    font-size: 1.25rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-text {
    color: #52607a;
    margin-bottom: 1.25rem;
}

.tag-pill {
    background: #f1f5f9;
    color: #334155;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.375rem 0.7rem;
    border-radius: 0.375rem;
}

/* Process */
.nav-process .nav-link {
    color: #334155;
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.625rem;
    font-weight: 600;
    padding: 0.7rem 1.1rem;
}

.nav-process .nav-link.active {
    background: var(--tst-blue-600);
    border-color: var(--tst-blue-600);
    color: #fff;
}

.step-number {
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.35rem;
    opacity: 0.8;
}

.process-card {
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    box-shadow: var(--tst-shadow-sm);
}

.process-card .h3 {
    font-weight: 700;
}

/* Cards: case studies, team, metrics, side panels */
.case-card,
.metric-card,
.side-facts,
.team-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: #fff;
    box-shadow: var(--tst-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.case-card:hover,
.team-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--tst-shadow);
    border-color: #cfe0ff;
}

.case-card .card-body {
    padding: 2rem !important;
}

.case-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--tst-navy-900);
    letter-spacing: -0.02em;
}

.metric-label,
.case-metrics dd {
    font-size: 0.8125rem;
    color: var(--bs-secondary-color);
}

.case-metrics dt,
.case-metrics dd {
    margin-bottom: 0;
}

.case-metrics {
    border-top: 1px solid var(--bs-border-color);
    padding-top: 1.25rem;
}

.case-body {
    font-size: 1.0625rem;
    color: #334155;
    max-width: 68ch;
}

.metric-card .metric-value {
    font-size: 2.25rem;
    color: var(--tst-blue-600);
}

.metric-card .metric-label {
    font-size: 0.9375rem;
}

.side-facts dt {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem !important;
}

/* Testimonials */
.testimonial {
    max-width: 760px;
}

.testimonial-quote {
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    font-weight: 500;
    line-height: 1.45;
    color: var(--tst-navy-700);
    margin: 0;
}

.testimonial-carousel {
    padding-bottom: 2.5rem;
}

.testimonial-carousel .carousel-indicators [data-bs-target] {
    background-color: var(--tst-blue-600);
}

.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
    width: 3rem;
}

/* Team */
.team-avatar {
    flex: 0 0 72px;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--tst-blue-50);
    color: var(--tst-blue-600);
    font-size: 1.375rem;
    font-weight: 700;
}

.team-role {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tst-blue-600);
}

/* FAQ */
.faq-accordion .accordion-item {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    font-weight: 600;
    color: var(--tst-navy-900);
    padding: 1.1rem 1.25rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--tst-blue-600);
    background: var(--tst-blue-50);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
}

/* Brief form */
.brief-form {
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    box-shadow: var(--tst-shadow);
}

.brief-form .form-control,
.brief-form .form-select {
    border-color: #cfd8e6;
    border-radius: 0.5rem;
}

.brief-form .form-control:focus,
.brief-form .form-select:focus {
    border-color: var(--tst-blue-600);
    box-shadow: 0 0 0 0.25rem rgba(11, 92, 255, 0.15);
}

.budget-group .btn {
    border-radius: 0.5rem !important;
    margin: 0.25rem 0.375rem 0.25rem 0;
    font-size: 0.9375rem;
}

.budget-group .btn-check:checked + .btn {
    background: var(--tst-blue-600);
    border-color: var(--tst-blue-600);
    color: #fff;
}

.was-validated .form-control:invalid,
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc2626;
}

/* Next steps side panel: light tinted card with numbered steps */
.next-steps {
    background: var(--tst-blue-50);
    border-color: var(--tst-blue-100);
}

.next-steps h2 {
    color: var(--tst-navy-900);
}

.next-steps hr {
    border-color: var(--tst-blue-100);
    opacity: 1;
}

.next-steps-list {
    counter-reset: next-step;
}

.next-steps-list li {
    display: block;
    padding-left: 2.25rem;
    position: relative;
    counter-increment: next-step;
}

.next-steps-list li::before {
    content: counter(next-step);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--tst-blue-600);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
}

/* Page hero (inner pages) */
.page-hero {
    position: relative;
    overflow: hidden;
    padding-block: 4rem 3.5rem;
    background-color: #f2f7ff;
    background-image: url('../img/hero-bg.svg');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--bs-border-color);
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--tst-navy-900);
    margin-bottom: 1rem;
    max-width: 24ch;
    line-height: 1.15;
}

.page-lead {
    max-width: 640px;
    margin-bottom: 0;
    color: #52607a;
    font-size: 1.125rem;
}

.breadcrumb {
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--tst-blue-600);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #64748b;
}

/* CTA band: a solid brand-blue banner */
.cta-band {
    padding-block: 1rem 5rem;
    background: #fff;
}

.cta-inner {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 3rem;
    border-radius: 1rem;
    background-color: var(--tst-blue-600);
    background-image: linear-gradient(120deg, #0b5cff 0%, #2a7bff 60%, #0fb8aa 100%);
    color: #fff;
    box-shadow: var(--tst-shadow);
}

.cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('../img/cta-wave.svg') bottom / cover no-repeat;
    pointer-events: none;
}

.cta-inner::after {
    content: '';
    position: absolute;
    inset: -40% -10% auto auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
    z-index: -1;
    animation: drift 14s ease-in-out infinite alternate;
    pointer-events: none;
}

.cta-title {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
}

.cta-text {
    color: rgba(255, 255, 255, 0.9);
    max-width: 560px;
}

/* Contact section on the home page */
.contact-list li {
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
}

/* Footer: light grey with a clear top border, like most business sites */
.site-footer {
    background-color: #f1f5f9;
    background-image: url('../img/circuit.svg');
    background-size: 480px;
    color: #475569;
    font-size: 0.9375rem;
    border-top: 1px solid var(--bs-border-color);
}

.footer-logo {
    height: 56px;
    width: auto;
}

.text-footer {
    color: #475569;
}

.site-footer h2 {
    color: var(--tst-navy-900);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-links {
    display: grid;
    gap: 0.5rem;
}

.footer-links a {
    color: #475569;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--tst-blue-600);
}

.footer-bottom {
    border-top: 1px solid var(--bs-border-color);
    font-size: 0.875rem;
    color: #64748b;
}

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1020;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Toast: white card with a blue edge, inside the viewport */
.toast-container {
    max-width: calc(100vw - 2rem);
}

.toast {
    max-width: 100%;
    background: #fff;
    color: var(--tst-navy-900);
    border: 1px solid var(--bs-border-color) !important;
    border-left: 4px solid var(--tst-blue-600) !important;
    box-shadow: var(--tst-shadow);
}

/* ---- Backgrounds, marquee and motion ---- */

/* Floating decorative shapes in the hero */
.hero-section .float-shape {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.shape-square {
    top: 18%;
    left: 6%;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(11, 92, 255, 0.25), rgba(24, 216, 200, 0.25));
    animation: float 9s ease-in-out infinite;
}

.shape-ring {
    bottom: 12%;
    left: 46%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(11, 92, 255, 0.18);
    animation: float 12s ease-in-out infinite reverse;
}

.shape-dot {
    top: 26%;
    right: 8%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--tst-teal-500);
    opacity: 0.6;
    animation: float 7s ease-in-out infinite;
}

/* Hero entrance: copy and stack card rise in once on load */
.hero-section .hero-title,
.hero-section .hero-lead,
.hero-section .kicker,
.hero-section .btn-brand,
.hero-section .btn-outline-dark,
.hero-visual .stack-card {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-section .kicker { animation-delay: 0.05s; }
.hero-section .hero-title { animation-delay: 0.15s; }
.hero-section .hero-lead { animation-delay: 0.3s; }
.hero-section .btn-brand { animation-delay: 0.42s; }
.hero-section .btn-outline-dark { animation-delay: 0.5s; }
.hero-visual .stack-card { animation-delay: 0.3s; }

/* Gradient word in the hero headline shifts colour slowly */
.hero-title .text-gradient {
    background-size: 200% 100%;
    animation: shimmer 6s linear infinite;
}

/* Stack card layers slide in one after another */
.stack-layer {
    animation: rise 0.6s ease both;
}

.stack-layer:nth-of-type(1) { animation-delay: 0.5s; }
.stack-layer:nth-of-type(2) { animation-delay: 0.62s; }
.stack-layer:nth-of-type(3) { animation-delay: 0.74s; }

/* Marquee of technologies */
.marquee {
    overflow: hidden;
    border-block: 1px solid var(--bs-border-color);
    background: #fff;
    padding-block: 1.1rem;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    padding-inline: 1.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #7b8aa3;
    white-space: nowrap;
}

.marquee-item::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tst-blue-600), var(--tst-teal-400));
}

/* Scroll reveal: only applied when JavaScript is running (html.js) */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Hover details */
.service-tile .service-icon {
    transition: transform 0.35s ease, background-color 0.35s ease, color 0.35s ease;
}

.service-tile:hover .service-icon {
    transform: rotate(-8deg) scale(1.08);
    background: var(--tst-blue-600);
    color: #fff;
}

.case-card:hover .metric-value {
    color: var(--tst-blue-600);
}

.metric-value {
    transition: color 0.3s ease;
}

.stat-value {
    font-variant-numeric: tabular-nums;
}

/* Keyframes */
@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(0, -14px, 0) rotate(6deg); }
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-30px, 20px, 0) scale(1.08); }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes shimmer {
    from { background-position: 0% 50%; }
    to { background-position: 200% 50%; }
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section {
        padding-block: 3.5rem 3.5rem;
    }

    .section {
        padding-block: 3.75rem;
    }

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

    .cta-inner {
        padding: 2.25rem 1.75rem;
    }

    .navbar-collapse {
        padding-block: 1rem;
    }

    .navbar-collapse .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding-block: 2.5rem 2.5rem;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .stack-layer {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.5rem;
    }

    .stats-band {
        margin-top: -1.5rem;
    }

    .service-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .brand-logo {
        height: 40px;
    }

    .brief-form .card-body {
        padding: 1.5rem !important;
    }

    .row.g-5 {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* The stats strip follows the marquee, so give it room instead of overlapping the ticker. */
.marquee + .stats-band {
    margin-top: 2.5rem;
}

/* Team: co-founder tag, optional photo, meta line and profile links */
.founder-badge {
    background: var(--tst-navy-900);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.375rem 0.6rem;
    border-radius: 999px;
}

.team-photo {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    max-width: 100%;
}

.team-meta {
    font-size: 0.875rem;
    color: #475569;
    font-weight: 600;
}

.team-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tst-blue-600);
    text-decoration: none;
}

.team-link:hover {
    text-decoration: underline;
}

.min-w-0 {
    min-width: 0;
}
