/* Local web fonts: stored in assets/fonts/ */
/* libre-baskerville-regular - latin */
@font-face {
    font-display: swap;
    font-family: "Libre Baskerville";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/libre-baskerville-v24-latin-regular.woff2") format("woff2");
}

/* libre-baskerville-italic - latin */
@font-face {
    font-display: swap;
    font-family: "Libre Baskerville";
    font-style: italic;
    font-weight: 400;
    src: url("../fonts/libre-baskerville-v24-latin-italic.woff2") format("woff2");
}

/* libre-baskerville-700 - latin */
@font-face {
    font-display: swap;
    font-family: "Libre Baskerville";
    font-style: normal;
    font-weight: 700;
    src: url("../fonts/libre-baskerville-v24-latin-700.woff2") format("woff2");
}

/* manrope-regular - latin */
@font-face {
    font-display: swap;
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/manrope-v20-latin-regular.woff2") format("woff2");
}

/* manrope-500 - latin */
@font-face {
    font-display: swap;
    font-family: "Manrope";
    font-style: normal;
    font-weight: 500;
    src: url("../fonts/manrope-v20-latin-500.woff2") format("woff2");
}

/* manrope-600 - latin */
@font-face {
    font-display: swap;
    font-family: "Manrope";
    font-style: normal;
    font-weight: 600;
    src: url("../fonts/manrope-v20-latin-600.woff2") format("woff2");
}

/* manrope-700 - latin */
@font-face {
    font-display: swap;
    font-family: "Manrope";
    font-style: normal;
    font-weight: 700;
    src: url("../fonts/manrope-v20-latin-700.woff2") format("woff2");
}

/* manrope-800 - latin */
@font-face {
    font-display: swap;
    font-family: "Manrope";
    font-style: normal;
    font-weight: 800;
    src: url("../fonts/manrope-v20-latin-800.woff2") format("woff2");
}

:root {
    --ink: #27478f;
    --ink-soft: #5d70a1;
    --paper: #f5f8ff;
    --paper-deep: #e8effc;
    --white: #ffffff;
    --accent: #8bc2f6;
    --accent-deep: #5f8fda;
    --mint: #dce9ff;
    --line: rgba(39, 71, 143, 0.14);
    --line-light: rgba(255, 255, 255, 0.18);
    --shadow: 0 24px 80px rgba(39, 71, 143, 0.14);
    --radius-sm: 14px;
    --radius-md: 24px;
    --radius-lg: 38px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--paper);
    font-family: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    transform: translateY(-150%);
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--white);
    background: var(--ink);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    padding: 18px 0;
    transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header.is-scrolled {
    padding: 10px 0;
    background: rgba(245, 248, 255, 0.92);
    box-shadow: 0 10px 32px rgba(39, 71, 143, 0.12);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand-logo {
    display: inline-flex;
    flex: 0 0 auto;
    line-height: 0;
}

.brand-logo img {
    display: block;
    width: 198px;
    height: auto;
}

.footer-logo {
    display: block;
    width: 190px;
    height: auto;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 0.94rem;
    font-weight: 600;
}

.main-nav a {
    position: relative;
}

.main-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -5px;
    height: 1px;
    background: var(--ink);
    transition: right 0.2s ease;
}

.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta):focus-visible::after {
    right: 0;
}

.nav-cta {
    padding: 11px 18px;
    color: var(--white);
    background: var(--ink);
    border-radius: 999px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    transform: translateY(-2px);
    background: #3a65be;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
}

.menu-toggle > span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
    position: relative;
    min-height: 780px;
    overflow: hidden;
    padding: 168px 0 110px;
    background:
        radial-gradient(circle at 12% 20%, rgba(139, 194, 246, 0.22), transparent 30%),
        radial-gradient(circle at 86% 16%, rgba(95, 143, 218, 0.18), transparent 24%),
        linear-gradient(145deg, #fbfdff 0%, #eef4ff 54%, #f5f8ff 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: var(--line);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(6px);
    pointer-events: none;
}

.hero-glow-one {
    width: 450px;
    height: 450px;
    top: 110px;
    right: -160px;
    background: rgba(95, 143, 218, 0.18);
}

.hero-glow-two {
    width: 260px;
    height: 260px;
    left: 38%;
    bottom: -120px;
    background: rgba(139, 194, 246, 0.32);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    align-items: center;
    gap: 78px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--accent-deep);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.philosophy-copy h2,
.contact-copy h2,
.legal-page h1 {
    margin: 0;
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.hero h1 {
    font-size: clamp(3.2rem, 6.2vw, 5.8rem);
    line-height: 1.02;
}

.hero h1 span {
    color: var(--accent-deep);
    font-style: italic;
}

.hero-lead {
    max-width: 690px;
    margin: 32px 0 0;
    color: var(--ink-soft);
    font-size: clamp(1.08rem, 1.5vw, 1.28rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 13px 23px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--white);
    background: var(--ink);
    box-shadow: 0 12px 32px rgba(39, 71, 143, 0.20);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: #3a65be;
    box-shadow: 0 16px 38px rgba(39, 71, 143, 0.26);
}

.button-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.62);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: var(--white);
}

.button-light {
    color: var(--ink);
    background: var(--white);
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 670px;
    margin-top: 58px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.hero-facts div {
    display: flex;
    flex-direction: column;
}

.hero-facts strong {
    font-size: 0.92rem;
}

.hero-facts span {
    color: #7184b3;
    font-size: 0.82rem;
}

.hero-visual {
    position: relative;
    min-height: 510px;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(39, 71, 143, 0.14);
    border-radius: 50%;
}

.orbit-large {
    width: 460px;
    height: 460px;
    top: 22px;
    right: -15px;
}

.orbit-small {
    width: 320px;
    height: 320px;
    top: 92px;
    right: 55px;
    border-style: dashed;
    animation: rotate 30s linear infinite;
}

.visual-card {
    position: absolute;
    box-shadow: var(--shadow);
}

.visual-card-main {
    top: 96px;
    right: 42px;
    width: min(88%, 370px);
    min-height: 300px;
    padding: 40px;
    color: var(--white);
    background: linear-gradient(145deg, #335fb6, #27478f);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    transform: rotate(3deg);
}

.visual-kicker {
    color: #b9d8fb;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.visual-card-main strong {
    display: block;
    margin-top: 34px;
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-size: 2.4rem;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.visual-line {
    width: 100%;
    height: 1px;
    margin: 42px 0 18px;
    background: rgba(255, 255, 255, 0.18);
}

.visual-card-main > span:last-child {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    letter-spacing: 0.05em;
}

.visual-card-floating {
    right: 0;
    bottom: 72px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(39, 71, 143, 0.1);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 9px;
    height: 9px;
    background: #73bbef;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(115, 187, 239, 0.18);
}

.visual-monogram {
    position: absolute;
    left: 0;
    bottom: 26px;
    display: grid;
    place-items: center;
    width: 122px;
    height: 122px;
    color: var(--ink);
    background: var(--accent);
    border-radius: 50%;
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-size: 2.6rem;
    font-style: italic;
    box-shadow: 0 18px 48px rgba(95, 143, 218, 0.24);
}

.section {
    padding: 118px 0;
}

.section-heading {
    max-width: 830px;
    margin-bottom: 56px;
}

.section-heading h2,
.philosophy-copy h2,
.contact-copy h2 {
    font-size: clamp(2.7rem, 5vw, 4.8rem);
}

.split-heading {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: end;
    gap: 80px;
    max-width: none;
}

.split-heading > p {
    margin: 0 0 4px;
    color: var(--ink-soft);
    font-size: 1.08rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.service-card {
    position: relative;
    min-height: 330px;
    padding: 36px 28px 30px;
    border-right: 1px solid var(--line);
    transition: background 0.25s ease, transform 0.25s ease;
}

.service-card:last-child {
    border-right: 0;
}

.service-card:hover {
    z-index: 1;
    background: var(--white);
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(39, 71, 143, 0.10);
}

.service-number {
    color: var(--accent-deep);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.service-card h3 {
    margin: 110px 0 14px;
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.service-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.94rem;
}

.philosophy {
    color: var(--white);
    background: var(--ink);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 100px;
}

.philosophy-visual {
    position: relative;
    min-height: 520px;
}

.stack-card {
    position: absolute;
    width: min(86%, 400px);
    height: 430px;
    border-radius: 32px;
}

.stack-card-back {
    top: 10px;
    left: 8%;
    background: #395ca8;
    transform: rotate(-10deg);
}

.stack-card-middle {
    top: 35px;
    left: 14%;
    background: var(--accent);
    transform: rotate(7deg);
}

.stack-card-front {
    top: 55px;
    left: 10%;
    display: grid;
    grid-template-columns: 44px 1fr;
    align-content: center;
    gap: 24px 12px;
    padding: 50px;
    color: var(--ink);
    background: #f7fbff;
    border: 1px solid rgba(39, 71, 143, 0.1);
    box-shadow: 0 30px 80px rgba(39, 71, 143, 0.26);
}

.stack-card-front span {
    color: var(--accent-deep);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.stack-card-front strong {
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-size: 1.6rem;
    font-weight: 500;
}

.philosophy-copy .eyebrow {
    color: #b9d8fb;
}

.philosophy-copy p:not(.eyebrow) {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.03rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.44);
    font-weight: 700;
}

.brands {
    background: #edf3ff;
}

.brand-feature {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    min-height: 500px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.brand-feature-identity {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
    padding: 48px;
    color: var(--white);
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.16), transparent 24%),
        linear-gradient(145deg, #3760b5, #28458a);
}

.brand-eyebrow {
    align-self: flex-start;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tj-wordmark {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: auto 0;
    letter-spacing: -0.06em;
}

.tj-wordmark span {
    color: var(--accent);
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-size: clamp(4.4rem, 8vw, 7.4rem);
    font-style: italic;
    line-height: 1;
}

.tj-wordmark strong {
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1;
}

.brand-pulse {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 54px;
}

.brand-pulse i {
    display: block;
    width: 7px;
    height: 20px;
    background: var(--accent);
    border-radius: 999px;
}

.brand-pulse i:nth-child(2) { height: 34px; }
.brand-pulse i:nth-child(3) { height: 52px; }
.brand-pulse i:nth-child(4) { height: 30px; }
.brand-pulse i:nth-child(5) { height: 16px; }

.brand-feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px;
    background: var(--white);
}

.brand-feature-copy h3 {
    margin: 0 0 20px;
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 5vw, 5.2rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1;
}

.brand-feature-copy p {
    margin: 0 0 18px;
    color: var(--ink-soft);
}

.brand-note {
    padding-left: 16px;
    border-left: 2px solid var(--accent);
    font-size: 0.9rem;
}

.brand-feature-copy .button {
    align-self: flex-start;
    margin-top: 20px;
    border-color: var(--line);
    background: var(--paper);
}

.portfolio-note {
    display: flex;
    align-items: center;
    gap: 22px;
    max-width: 800px;
    margin: 36px auto 0;
    padding: 26px 30px;
    border: 1px solid rgba(39, 71, 143, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
}

.plus-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--white);
    background: var(--ink);
    font-size: 1.5rem;
}

.portfolio-note strong {
    display: block;
    margin-bottom: 3px;
}

.portfolio-note p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.centered {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.advantages {
    background: var(--paper);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.advantages-grid article {
    min-height: 250px;
    padding: 42px;
    background: var(--paper);
    transition: background 0.2s ease;
}

.advantages-grid article:hover {
    background: var(--white);
}

.advantages-grid span {
    color: var(--accent-deep);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.advantages-grid h3 {
    margin: 70px 0 12px;
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    font-weight: 500;
}

.advantages-grid p {
    max-width: 470px;
    margin: 0;
    color: var(--ink-soft);
}

.contact {
    color: var(--white);
    background: linear-gradient(180deg, #28458a 0%, #20396f 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 90px;
    align-items: start;
}

.contact-copy {
    position: sticky;
    top: 120px;
}

.contact-copy .eyebrow {
    color: #b9d8fb;
}

.contact-copy > p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.04rem;
}

.contact-details {
    display: grid;
    gap: 20px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--line-light);
}

.contact-details a,
.contact-details div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
}

.contact-details span {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-details strong {
    font-size: 0.94rem;
    font-weight: 600;
}

.contact-panel {
    padding: 42px;
    color: var(--ink);
    background: var(--paper);
    border-radius: 30px;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid rgba(39, 71, 143, 0.18);
    border-radius: 12px;
    outline: 0;
    color: var(--ink);
    background: var(--white);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field input,
.field select {
    min-height: 52px;
    padding: 0 15px;
}

.field textarea {
    min-height: 160px;
    padding: 14px 15px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent-deep);
    box-shadow: 0 0 0 4px rgba(95, 143, 218, 0.18);
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 4px;
}

.form-footer p {
    max-width: 420px;
    margin: 0;
    color: #6f84b6;
    font-size: 0.75rem;
    line-height: 1.5;
}

.form-footer p a {
    text-decoration: underline;
}

.form-footer .button {
    flex: 0 0 auto;
    border: 0;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.form-message {
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: 14px;
    outline: 0;
}

.form-message p,
.form-message ul {
    margin: 6px 0 0;
}

.form-success {
    color: #234d86;
    background: #eaf3ff;
    border: 1px solid #bfd4fb;
}

.form-error {
    color: #7a271f;
    background: #fbe9e7;
    border: 1px solid #efc4bf;
}

.site-footer {
    padding: 70px 0 28px;
    color: var(--white);
    background: #182e5c;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding-bottom: 58px;
}

.footer-main > div:first-child p {
    max-width: 360px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-links > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-links span {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.78rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.legal-shell {
    min-height: 100vh;
    padding-top: 120px;
    background: var(--paper);
}

.legal-page {
    max-width: 850px;
    padding: 70px 0 110px;
}

.legal-page h1 {
    margin-bottom: 36px;
    font-size: clamp(2.8rem, 6vw, 5rem);
}

.legal-page h2 {
    margin: 42px 0 12px;
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 500;
}

.legal-page h3 {
    margin: 28px 0 8px;
    font-size: 1rem;
}

.legal-page p,
.legal-page li {
    color: var(--ink-soft);
}

.legal-page a {
    text-decoration: underline;
    text-decoration-color: rgba(39, 71, 143, 0.3);
    text-underline-offset: 3px;
}

.legal-back {
    display: inline-flex;
    gap: 7px;
    margin-bottom: 30px;
    font-weight: 700;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
    .hero-grid,
    .philosophy-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 35px;
    }

    .hero-visual {
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }

    .split-heading {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .service-card:nth-child(2) {
        border-right: 0;
    }

    .service-card:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .philosophy-grid {
        gap: 30px;
    }

    .philosophy-visual {
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }

    .brand-feature {
        grid-template-columns: 1fr;
    }

    .brand-feature-identity {
        min-height: 390px;
    }

    .contact-copy {
        position: static;
    }
}

@media (max-width: 760px) {
    .site-header {
        padding: 12px 0;
    }

    .brand-logo img {
        width: 168px;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 3;
    }

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

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

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

    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 10px;
        padding: 90px 28px 40px;
        background: rgba(245, 248, 255, 0.98);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    .main-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav a {
        padding: 14px 0;
        font-size: 1.4rem;
    }

    .nav-cta {
        margin-top: 10px;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding: 132px 0 80px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 12vw, 4.4rem);
    }

    .hero-facts {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .hero-visual {
        min-height: 410px;
    }

    .orbit-large {
        width: 360px;
        height: 360px;
    }

    .orbit-small {
        width: 250px;
        height: 250px;
    }

    .visual-card-main {
        top: 70px;
        right: 18px;
        min-height: 260px;
        padding: 30px;
    }

    .visual-card-main strong {
        font-size: 2rem;
    }

    .visual-monogram {
        width: 94px;
        height: 94px;
        font-size: 2rem;
    }

    .visual-card-floating {
        right: 4px;
        bottom: 38px;
    }

    .section {
        padding: 82px 0;
    }

    .section-heading {
        margin-bottom: 38px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .service-card:nth-child(2) {
        min-height: 250px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .service-card:last-child {
        border-bottom: 0;
    }

    .service-card h3 {
        margin-top: 60px;
    }

    .philosophy-visual {
        min-height: 430px;
    }

    .stack-card {
        height: 350px;
    }

    .stack-card-front {
        padding: 35px;
    }

    .brand-feature-identity,
    .brand-feature-copy {
        padding: 34px;
    }

    .brand-feature-identity {
        min-height: 330px;
    }

    .tj-wordmark {
        flex-wrap: wrap;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid article {
        min-height: 220px;
        padding: 32px;
    }

    .advantages-grid h3 {
        margin-top: 48px;
    }

    .contact-panel {
        padding: 28px 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-details a,
    .contact-details div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 460px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .visual-card-floating {
        display: none;
    }

    .portfolio-note {
        align-items: flex-start;
        padding: 22px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

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

@media (max-width: 760px) {
    .philosophy-visual {
        overflow: hidden;
    }
}

/* Premium redesign */
body {
    font-family: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero {
    background:
        radial-gradient(circle at 14% 18%, rgba(139, 194, 246, 0.18), transparent 28%),
        radial-gradient(circle at 86% 15%, rgba(95, 143, 218, 0.18), transparent 24%),
        linear-gradient(180deg, #fbfdff 0%, #f1f5ff 58%, #eef3ff 100%);
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero h1 {
    max-width: 820px;
    letter-spacing: -0.055em;
}

.hero h1 span {
    display: inline-block;
    background: linear-gradient(90deg, #2f57a8 0%, #76b3ea 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: normal;
}

.hero-lead {
    max-width: 640px;
}

.hero-sectors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-sectors span,
.brand-eyebrow,
.hero-visual-label {
    padding: 10px 14px;
    border: 1px solid rgba(39, 71, 143, 0.12);
    border-radius: 999px;
    color: #355cae;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 26px rgba(39, 71, 143, 0.08);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-facts {
    margin-top: 42px;
    padding-top: 26px;
}

.hero-facts strong {
    font-size: 0.98rem;
}

.hero-facts span {
    color: #6d82b2;
}

.hero-visual {
    position: relative;
    min-height: 590px;
    padding-right: 22px;
}

.premium-frame {
    position: absolute;
    top: 18px;
    right: 0;
    width: min(100%, 520px);
    height: 560px;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid rgba(39, 71, 143, 0.12);
    background: #ffffff;
    box-shadow: 0 28px 90px rgba(39, 71, 143, 0.20);
}

.premium-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 30, 63, 0.02) 0%, rgba(11, 30, 63, 0.18) 100%);
}

.premium-frame-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.premium-frame-overlay {
    position: absolute;
    inset: auto 28px 28px 28px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.hero-badge-logo {
    width: 112px;
    height: 112px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 40px rgba(15, 31, 64, 0.20);
}

.hero-visual-copy {
    flex: 1;
    max-width: 280px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    color: #ffffff;
    background: rgba(27, 54, 109, 0.78);
    backdrop-filter: blur(16px);
}

.hero-visual-copy strong {
    display: block;
    margin-top: 12px;
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.hero-visual-copy p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.5;
}

.hero-visual-label {
    display: inline-flex;
    padding: 8px 12px;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: none;
}

.hero-mini-card {
    position: absolute;
    left: 15px;
    max-width: 280px;
    padding: 18px 20px;
    border: 1px solid rgba(39, 71, 143, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 50px rgba(39, 71, 143, 0.14);
    backdrop-filter: blur(10px);
}

.hero-mini-card span {
    display: block;
    margin-bottom: 8px;
    color: #6f90d0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-mini-card strong {
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.35;
}

.hero-mini-card-top {
    top: 72px;
}

.hero-mini-card-bottom {
    bottom: 16px;
}

.section-heading h2,
.philosophy-copy h2,
.contact-copy h2 {
    letter-spacing: -0.05em;
}

.services-grid {
    gap: 18px;
    border: 0;
    background: transparent;
}

.service-card,
.service-card:last-child {
    min-height: 300px;
    border: 1px solid rgba(39, 71, 143, 0.10);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 50px rgba(39, 71, 143, 0.08);
}

.service-card h3 {
    margin-top: 86px;
}

.philosophy {
    background: linear-gradient(180deg, #27478f 0%, #203a72 100%);
}

.philosophy-visual {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.philosophy-card {
    position: relative;
    z-index: 2;
    width: min(100%, 430px);
    padding: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 30px 80px rgba(12, 24, 48, 0.24);
    backdrop-filter: blur(14px);
}

.philosophy-card-label {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.philosophy-card h3 {
    margin: 0;
    color: #ffffff;
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-size: 2.4rem;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.06;
}

.philosophy-list {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.philosophy-list li {
    position: relative;
    margin-top: 14px;
    padding-left: 22px;
    color: rgba(255, 255, 255, 0.82);
}

.philosophy-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8bc2f6;
}

.philosophy-logo {
    position: absolute;
    right: 28px;
    bottom: 24px;
    width: 138px;
    height: 138px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(12, 24, 48, 0.24);
}

.brands {
    background: linear-gradient(180deg, #edf3ff 0%, #f6f9ff 100%);
}

.brand-feature {
    align-items: stretch;
    border: 1px solid rgba(39, 71, 143, 0.10);
    background: #ffffff;
}

.brand-feature-identity {
    min-height: 540px;
    padding: 34px;
    color: var(--white);
    background: linear-gradient(145deg, #e8f0ff, #eef4ff);
}

.brand-image-stage {
    position: relative;
    flex: 1;
    min-height: 420px;
    margin-top: 28px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(39, 71, 143, 0.16);
}

.brand-stage-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-stage-product {
    position: absolute;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 20px 44px rgba(39, 71, 143, 0.18);
}

.brand-stage-product-one {
    left: 24px;
    bottom: 20px;
}

.brand-stage-product-two {
    right: 24px;
    bottom: 20px;
}

.brand-feature-copy {
    padding: 52px 54px;
}

.tj-brand-logo {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    margin-bottom: 24px;
}

.brand-feature-copy h3 {
    margin-bottom: 16px;
    font-size: clamp(2.4rem, 4vw, 4rem);
}

.brand-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0 28px;
}

.product-tile {
    overflow: hidden;
    border: 1px solid rgba(39, 71, 143, 0.10);
    border-radius: 22px;
    background: #f8fbff;
    box-shadow: 0 14px 36px rgba(39, 71, 143, 0.08);
}

.product-tile img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-tile span {
    display: block;
    padding: 12px 14px 14px;
    color: #35539a;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.portfolio-note {
    border-color: rgba(39, 71, 143, 0.12);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 40px rgba(39, 71, 143, 0.08);
}

.advantages-grid {
    gap: 18px;
    border: 0;
    background: transparent;
}

.advantages-grid article {
    min-height: 250px;
    border: 1px solid rgba(39, 71, 143, 0.10);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 40px rgba(39, 71, 143, 0.08);
}

.contact {
    background: linear-gradient(180deg, #1d3668 0%, #14284f 100%);
}

.contact-panel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 26px 70px rgba(7, 16, 36, 0.24);
}

.site-footer {
    background: #102044;
}

.footer-logo {
    width: 220px;
    padding: 12px 16px;
}

@media (max-width: 980px) {
    .hero-visual {
        width: 100%;
        min-height: 620px;
        padding-right: 0;
    }

    .premium-frame {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        max-width: 620px;
        height: 520px;
        margin: 0 auto;
    }

    .hero-mini-card {
        left: 18px;
    }

    .brand-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .hero-sectors {
        gap: 8px;
    }

    .hero-visual {
        min-height: auto;
        padding-bottom: 0;
    }

    .premium-frame {
        height: 460px;
        border-radius: 28px;
    }

    .premium-frame-overlay {
        inset: auto 18px 18px 18px;
        align-items: stretch;
        flex-direction: column;
    }

    .hero-badge-logo {
        width: 92px;
        height: 92px;
    }

    .hero-visual-copy {
        max-width: none;
    }

    .hero-mini-card {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        max-width: none;
        margin-top: 14px;
    }

    .service-card,
    .service-card:nth-child(2) {
        min-height: 230px;
    }

    .brand-feature-identity,
    .brand-feature-copy {
        padding: 28px;
    }

    .brand-feature-identity {
        min-height: 360px;
    }

    .brand-image-stage {
        min-height: 310px;
    }

    .brand-stage-product {
        width: 114px;
        height: 114px;
        border-radius: 18px;
    }

    .brand-product-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-card {
        padding: 32px;
    }

    .philosophy-card h3 {
        font-size: 2rem;
    }

    .philosophy-logo {
        width: 100px;
        height: 100px;
        right: 12px;
        bottom: 12px;
    }
}


/* Fix: philosophy logo should be fully visible */
.philosophy-visual {
    justify-content: flex-start;
    align-items: flex-end;
    padding-right: 150px;
}

.philosophy-card {
    max-width: 430px;
}

.philosophy-logo {
    right: 14px;
    bottom: 18px;
    width: 124px;
    height: 124px;
    z-index: 1;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

@media (max-width: 760px) {
    .philosophy-visual {
        justify-content: center;
        align-items: center;
        padding-right: 0;
        padding-bottom: 104px;
    }

    .philosophy-logo {
        left: 50%;
        right: auto;
        bottom: 8px;
        width: 92px;
        height: 92px;
        transform: translateX(-50%);
    }
}

/* Final hero layout: separate logo, partnership card and focus card */
.premium-frame-overlay {
    justify-content: flex-end;
}

/* Transparent Teresa KS logo inside the image */
.hero-badge-logo {
    position: absolute;
    left: 24px;
    right: auto;
    bottom: 28px;
    width: 104px;
    height: 104px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0.98;
    filter: drop-shadow(0 8px 18px rgba(15, 31, 64, 0.12));
    z-index: 3;
}

/* Blue TJ-Motion card stays on the right and no longer touches the logo */
.hero-visual-copy {
    position: relative;
    z-index: 4;
    flex: 0 1 300px;
    width: min(300px, calc(100% - 150px));
    max-width: 300px;
    margin-left: auto;
}

/* Reserve space below the photograph for the white focus card */
.hero-visual {
    min-height: 735px;
    padding-bottom: 155px;
}

/* White focus card is placed below the photograph */
.hero-mini-card-bottom {
    top: 602px;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    max-width: 520px;
    min-height: 112px;
    z-index: 5;
}

@media (max-width: 980px) {
    .hero-visual {
        min-height: 690px;
        padding-bottom: 150px;
    }

    .hero-mini-card-bottom {
        top: 540px;
        right: 18px;
        left: 18px;
        width: auto;
        max-width: none;
    }

    .hero-visual-copy {
        flex-basis: 320px;
        width: min(320px, calc(100% - 150px));
        max-width: 320px;
    }
}

@media (max-width: 760px) {
    .hero-visual {
        min-height: auto;
        padding-bottom: 0;
    }

    /* On mobile the logo moves to the upper-right corner of the image. */
    .hero-badge-logo {
        top: 18px;
        right: 18px;
        bottom: auto;
        left: auto;
        width: 82px;
        height: 82px;
    }

    .hero-visual-copy {
        width: 100%;
        max-width: none;
        margin-left: 0;
    }

    /* Both white information cards follow the image in normal document flow. */
    .hero-mini-card-bottom {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        max-width: none;
        min-height: 0;
        margin-top: 14px;
    }
}

/* Final logo backgrounds: white, circular and with only a very slim white edge */
.philosophy-logo,
.hero-badge-logo {
    display: block;
    box-sizing: border-box;
    padding: 2px !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: 0 14px 35px rgba(15, 31, 64, 0.10) !important;
    opacity: 1 !important;
    filter: none !important;
    object-fit: contain;
}