@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/Inter-VariableFont_slnt,wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --tm-navy: #041f4a;
  --tm-navy-deep: #031937;
  --tm-navy-light: #082b61;
  --tm-red: #df1f2d;
  --tm-red-dark: #bd1522;
  --tm-white: #fff;
  --tm-light: #f6f8fb;
  --tm-text: #17243a;
  --tm-muted: #5e6878;
  --tm-border: #e3e7ed;
  --tm-container-width: 1500px;
  --tm-content-width: 780px;
  --tm-gutter: clamp(20px, 3vw, 32px);
  --tm-header-height: 108px;
  --tm-shadow: 0 10px 30px rgba(4, 31, 74, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--tm-text);
  background: var(--tm-white);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.tm-menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin-block: 0 1em; }
h1, h2, h3, h4, h5, h6 { margin-block: 0 0.55em; color: var(--tm-navy); font-weight: 800; line-height: 1.12; }
button, input, select, textarea { font: inherit; }

.tm-container {
  width: min(calc(100% - (var(--tm-gutter) * 2)), var(--tm-container-width));
  margin-inline: auto;
}
.tm-content-width {
  width: min(calc(100% - (var(--tm-gutter) * 2)), var(--tm-content-width));
  margin-inline: auto;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  z-index: 100000; top: 8px; left: 8px; width: auto; height: auto;
  padding: 12px 18px; clip: auto; background: #fff; color: var(--tm-navy); font-weight: 700;
}
:focus-visible { outline: 3px solid #5ca9ff; outline-offset: 3px; }

.tm-topbar { background: var(--tm-navy); color: #fff; font-size: 12px; }
.tm-topbar a { color: #fff; text-decoration: none; }
.tm-topbar p { margin: 0; }
.tm-topbar__inner { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tm-topbar__left p { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tm-topbar__right { text-align: right; }
.tm-topbar .tm-widget { margin: 0; }

.tm-navbar { position: relative; z-index: 30; background: #fff; border-bottom: 1px solid rgba(4,31,74,.08); box-shadow: 0 2px 12px rgba(4,31,74,.04); }
.tm-navbar__inner { min-height: var(--tm-header-height); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.tm-branding { flex: 0 0 auto; }
.custom-logo-link { display: block; }
.custom-logo { width: auto; max-width: 300px; max-height: 68px; }
.tm-branding__fallback { display: flex; align-items: center; gap: 12px; color: var(--tm-navy); text-decoration: none; }
.tm-branding__fallback > span:last-child { display: flex; flex-direction: column; }
.tm-branding__fallback strong { font-size: 23px; letter-spacing: -.04em; line-height: 1.1; }
.tm-branding__fallback small { color: var(--tm-muted); font-size: 9px; font-weight: 600; }
.tm-branding__mark {
  display: grid; place-items: center; width: 52px; height: 52px;
  color: #fff; background: linear-gradient(145deg, var(--tm-navy-light), var(--tm-navy));
  border-bottom: 7px solid var(--tm-red); clip-path: polygon(50% 0, 100% 16%, 88% 83%, 50% 100%, 12% 83%, 0 16%);
  font-size: 15px; font-weight: 900;
}
.tm-navigation-wrap { display: flex; align-items: center; justify-content: flex-end; gap: 28px; }
.tm-menu { display: flex; align-items: center; gap: clamp(15px, 1.7vw, 28px); margin: 0; padding: 0; list-style: none; }
.tm-menu li { position: relative; }
.tm-menu a { display: block; padding: 14px 0; color: var(--tm-navy); font-size: 15px; font-weight: 600; letter-spacing: .01em; text-decoration: none; text-transform: uppercase; }
.tm-menu a::after { content: ""; position: absolute; right: 0; bottom: 7px; left: 0; height: 2px; background: var(--tm-red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.tm-menu a:hover::after, .tm-menu .current-menu-item > a::after { transform: scaleX(1); }
.tm-menu .sub-menu { position: absolute; top: 100%; left: -18px; min-width: 210px; margin: 0; padding: 10px 18px; list-style: none; visibility: hidden; opacity: 0; background: #fff; box-shadow: var(--tm-shadow); transform: translateY(8px); transition: .2s; }
.tm-menu li:hover > .sub-menu, .tm-menu li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.tm-header-cta .tm-widget, .tm-footer-cta__button .tm-widget { margin: 0; }
.tm-button, .wp-block-button__link {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 12px;
  padding: 12px 20px; border: 1px solid transparent; border-radius: 4px;
  font-size: 13px; font-weight: 500; line-height: 1.2; text-decoration: none; text-transform: uppercase; transition: .2s ease;
}
.tm-button--red { color: #fff; background: var(--tm-red); }
.tm-button--red:hover { color: #fff; background: var(--tm-red-dark); transform: translateY(-1px); }
.tm-menu-toggle { display: none; width: 46px; height: 46px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.tm-menu-toggle span:not(.screen-reader-text) { display: block; width: 25px; height: 2px; margin: 5px auto; background: var(--tm-navy); transition: .2s; }

.tm-elementor-main { min-height: 1px; }
.tm-page-main { min-height: 40vh; padding-block: clamp(48px, 7vw, 88px); }
.tm-content-main { min-height: 50vh; padding-block: clamp(56px, 8vw, 100px); }
.teammatusa-elementor-full-width .tm-elementor-main--full-width { width: 100%; max-width: none; padding: 0; }
.elementor-page .tm-elementor-main > .elementor { width: 100%; }
.tm-entry__header h1, .tm-archive-header h1 { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -.04em; }
.tm-entry__meta { color: var(--tm-red); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.tm-entry__image { margin-block: 32px; overflow: hidden; border-radius: 8px; }
.tm-entry__content > * { max-width: 100%; }
.tm-entry__content a { color: var(--tm-red); }
.alignwide { width: min(1200px, calc(100vw - var(--tm-gutter) * 2)); max-width: none; margin-inline: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-inline: 50%; transform: translateX(-50%); }
.tm-archive-header { margin-bottom: 40px; }
.tm-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.tm-post-card { overflow: hidden; border: 1px solid var(--tm-border); border-radius: 7px; background: #fff; box-shadow: var(--tm-shadow); }
.tm-post-card > a img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.tm-post-card__body { padding: 24px; }
.tm-post-card h2 { font-size: 1.35rem; }
.tm-post-card h2 a { text-decoration: none; }
.navigation.pagination { margin-top: 48px; }
.tm-error-page { padding-block: 100px; text-align: center; }
.tm-error-page__code { margin: 0; color: var(--tm-red); font-size: clamp(5rem, 15vw, 10rem); font-weight: 900; line-height: .9; }

.tm-site-footer { color: rgba(255,255,255,.82); background: var(--tm-navy-deep); }
.tm-site-footer a { color: inherit; text-decoration: none; }
.tm-footer-cta { position: relative; overflow: hidden; background: linear-gradient(110deg, #062657, #031a3d); border-bottom: 1px solid rgba(255,255,255,.09); }
.tm-footer-cta__inner { position: relative; min-height: 178px; display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 64px; padding-block: 34px; }
.tm-footer-cta__title h2 { margin: 0; color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.04em; text-transform: uppercase; }
.tm-footer-cta__content { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(240px, 1fr) auto; align-items: center; gap: 28px; }
.tm-footer-cta__content p { margin: 0; max-width: 390px; font-size: 14px; }
.tm-footer-cta__watermark { position: absolute; right: 8%; color: rgba(255,255,255,.035); font-size: 110px; font-weight: 900; }
.tm-footer-main { padding-top: 38px; }
.tm-footer-grid { display: grid; grid-template-columns: 1.35fr .8fr .95fr 1.15fr; gap: 54px; padding-bottom: 36px; }
.tm-footer-column { min-width: 0; font-size: 11px; line-height: 1.75; }
.tm-footer-column h3, .tm-footer-column .tm-widget__title { margin-bottom: 14px; color: #fff; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.tm-footer-column ul { margin: 0; padding: 0; list-style: none; }
.tm-footer-column p { margin-block: 0 12px; }
.tm-footer-logo { display: flex; flex-direction: column; }
.tm-footer-logo strong { color: #fff; font-size: 22px; letter-spacing: -.04em; }
.tm-footer-logo small { font-size: 9px; }
.tm-socials { display: flex; gap: 9px; margin-top: 18px !important; }
.tm-socials a { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: var(--tm-navy); background: #fff; font-weight: 800; }
.tm-footer-bottom { padding-block: 14px 22px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.55); font-size: 10px; }
.tm-footer-bottom p { margin: 0; }
.tm-widget > :last-child { margin-bottom: 0; }

@media (max-width: 1100px) {
  :root { --tm-header-height: 90px; }
  .tm-navbar__inner { gap: 20px; }
  .tm-navigation-wrap { gap: 18px; }
  .tm-menu { gap: 13px; }
  .tm-menu a { font-size: 10px; }
  .custom-logo { max-width: 240px; }
  .tm-footer-cta__inner { grid-template-columns: .9fr 1.4fr; gap: 32px; }
}

@media (max-width: 960px) {
  :root { --tm-header-height: 78px; }
  .tm-topbar__right { display: none; }
  .tm-topbar__inner { justify-content: center; }
  .tm-menu-toggle { display: block; margin-left: auto; }
  .tm-navigation-wrap {
    position: absolute; top: 100%; right: 0; left: 0; max-height: 0; display: block; overflow: hidden;
    background: #fff; box-shadow: 0 18px 30px rgba(4,31,74,.14); visibility: hidden; opacity: 0; transition: .25s ease;
  }
  .tm-navigation-wrap.is-open { max-height: calc(100vh - 100px); overflow-y: auto; visibility: visible; opacity: 1; }
  .tm-menu { display: block; width: min(100% - 40px, 720px); margin-inline: auto; padding-block: 16px; }
  .tm-menu a { padding: 12px 0; font-size: 13px; }
  .tm-menu a::after { display: none; }
  .tm-menu .sub-menu { position: static; min-width: 0; padding: 0 0 0 18px; visibility: visible; opacity: 1; box-shadow: none; transform: none; }
  .tm-header-cta { width: min(100% - 40px, 720px); margin: 0 auto 24px; }
  .tm-header-cta .tm-button { width: 100%; }
  .tm-footer-cta__inner, .tm-footer-cta__content { grid-template-columns: 1fr; gap: 20px; }
  .tm-footer-cta__inner { padding-block: 46px; }
  .tm-footer-cta__content p { max-width: 560px; }
  .tm-footer-cta__button { justify-self: start; }
  .tm-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .tm-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .tm-topbar { font-size: 9px; }
  .tm-topbar__left p { justify-content: center; gap: 7px; }
  .custom-logo { max-width: 205px; max-height: 55px; }
  .tm-branding__fallback strong { font-size: 18px; }
  .tm-branding__mark { width: 43px; height: 43px; }
  .tm-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .tm-post-grid { grid-template-columns: 1fr; }
  .tm-footer-cta__watermark { right: -10px; }
}

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

/* Blog and shared page hero */
.tm-page-hero {
  position: relative;
  min-height: 270px;
  display: flex;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--tm-navy);
  background-image: var(--tm-hero-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.tm-page-hero__overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(1, 20, 95, .96) 0%, rgba(1, 20, 95, .88) 38%, rgba(1, 20, 95, 0) 72%);
}
.tm-page-hero__inner { display: flex; align-items: center; min-height: inherit; padding-block: 58px; }
.tm-page-hero__title {
  width: min(100%, 1120px);
  margin: 0;
  color: #fff;
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.tm-page-hero__title span { color: var(--tm-red); }
.tm-blog-main { min-height: 45vh; padding-block: clamp(60px, 7vw, 100px); }
.tm-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.tm-blog-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--tm-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(4, 31, 74, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tm-blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(4, 31, 74, .12); }
.tm-blog-card__image { display: block; overflow: hidden; background: var(--tm-navy); }
.tm-blog-card__image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
.tm-blog-card:hover .tm-blog-card__image img { transform: scale(1.025); }
.tm-blog-card__placeholder { display: grid; width: 100%; aspect-ratio: 16 / 10; place-items: center; background: linear-gradient(135deg, var(--tm-navy-light), var(--tm-navy-deep)); }
.tm-blog-card__placeholder span { display: grid; width: 68px; height: 68px; place-items: center; color: #fff; border: 2px solid rgba(255,255,255,.65); font-weight: 900; clip-path: polygon(50% 0,100% 16%,88% 83%,50% 100%,12% 83%,0 16%); }
.tm-blog-card__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 26px; }
.tm-blog-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; color: var(--tm-muted); font-size: 11px; font-weight: 600; letter-spacing: .035em; text-transform: uppercase; }
.tm-blog-meta__category { color: var(--tm-red); text-decoration: none; }
.tm-blog-card__title { margin-bottom: 12px; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.22; letter-spacing: -.025em; }
.tm-blog-card__title a { color: var(--tm-navy); text-decoration: none; }
.tm-blog-card__excerpt { margin-bottom: 22px; color: var(--tm-muted); font-size: 14px; line-height: 1.65; }
.tm-blog-card__more { margin-top: auto; color: var(--tm-navy); font-size: 11px; font-weight: 800; letter-spacing: .03em; text-decoration: none; text-transform: uppercase; }
.tm-blog-card__more span { margin-left: 5px; color: var(--tm-red); }
.tm-blog-pagination { margin-top: 54px; }
.tm-blog-pagination .page-numbers { display: inline-flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center; margin: 3px; padding: 8px 13px; border: 1px solid var(--tm-border); border-radius: 4px; color: var(--tm-navy); background: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.tm-blog-pagination .page-numbers.current, .tm-blog-pagination a.page-numbers:hover { color: #fff; border-color: var(--tm-navy); background: var(--tm-navy); }
.tm-blog-empty { padding-block: 40px; text-align: center; }
.tm-blog-empty h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.tm-archive-description, .tm-search-summary { margin-top: 0; margin-bottom: 40px; text-align: center; }
.tm-single-main { padding-block: clamp(60px, 7vw, 100px); }
.tm-single-post__inner > .tm-blog-meta { justify-content: center; margin-bottom: 30px; }
.tm-single-post__image { margin: 0 0 42px; overflow: hidden; border-radius: 8px; }
.tm-single-post__image img { width: 100%; height: auto; }
.tm-single-post .tm-entry__content { color: var(--tm-text); font-size: 17px; line-height: 1.85; }
.tm-single-post .tm-entry__content > *:first-child { margin-top: 0; }
.tm-single-post .tm-entry__content h2 { margin-top: 2em; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.tm-single-post .tm-entry__content h3 { margin-top: 1.8em; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.tm-single-post .tm-entry__content blockquote { margin: 2em 0; padding: 22px 28px; border-left: 4px solid var(--tm-red); background: var(--tm-light); color: var(--tm-navy); font-size: 1.08em; font-weight: 600; }
.tm-single-post .tm-entry__content figure { margin-block: 32px; }
.tm-single-navigation { margin-top: 68px; padding-top: 28px; border-top: 1px solid var(--tm-border); }
.tm-single-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tm-single-navigation .nav-next { text-align: right; }
.tm-single-navigation a { display: flex; flex-direction: column; color: var(--tm-navy); text-decoration: none; }
.tm-single-navigation span { color: var(--tm-red); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.tm-single-navigation strong { margin-top: 5px; font-size: 14px; }
.tm-comments { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--tm-border); }

@media (max-width: 960px) {
  .tm-page-hero { min-height: 220px; }
  .tm-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .tm-page-hero { min-height: 170px; }
  .tm-page-hero__inner { padding-block: 38px; }
  .tm-page-hero__overlay { background: linear-gradient(90deg, rgba(1,20,95,.95), rgba(1,20,95,.68)); }
  .tm-page-hero__title { font-size: clamp(2.25rem, 11vw, 3.25rem); }
  .tm-blog-grid { grid-template-columns: 1fr; gap: 22px; }
  .tm-blog-card__body { padding: 22px; }
  .tm-single-post .tm-entry__content { font-size: 16px; }
  .tm-single-navigation .nav-links { grid-template-columns: 1fr; }
  .tm-single-navigation .nav-next { text-align: left; }
}

/* Portfolio gallery */
.tm-portfolio-main { min-height:45vh; padding-block:clamp(60px,7vw,100px); }
.tm-portfolio-filter-label { margin:0 0 32px; color:var(--tm-red); font-size:12px; font-weight:800; letter-spacing:.04em; text-align:center; text-transform:uppercase; }
.tm-portfolio-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px; }
.tm-portfolio-card { min-width:0; overflow:hidden; border:1px solid var(--tm-border); border-radius:8px; background:#fff; box-shadow:0 9px 28px rgba(4,31,74,.07); transition:transform .2s ease,box-shadow .2s ease; }
.tm-portfolio-card:hover { transform:translateY(-4px); box-shadow:0 16px 38px rgba(4,31,74,.13); }
.tm-portfolio-card__image { position:relative; display:block; overflow:hidden; background:var(--tm-navy); }
.tm-portfolio-card__image img { width:100%; aspect-ratio:16/10; object-fit:cover; transition:transform .35s ease,opacity .25s ease; }
.tm-portfolio-card:hover .tm-portfolio-card__image img { transform:scale(1.035); opacity:.76; }
.tm-portfolio-card__view { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; background:rgba(4,31,74,.18); font-size:12px; font-weight:800; letter-spacing:.04em; opacity:0; text-transform:uppercase; transition:opacity .25s ease; }
.tm-portfolio-card:hover .tm-portfolio-card__view,.tm-portfolio-card__image:focus-visible .tm-portfolio-card__view { opacity:1; }
.tm-portfolio-card__body { padding:24px 26px 27px; }
.tm-portfolio-meta { margin-bottom:8px; color:var(--tm-red); font-size:11px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.tm-portfolio-meta a { color:inherit; text-decoration:none; }
.tm-portfolio-card__title { margin:0 0 10px; font-size:clamp(1.25rem,2vw,1.55rem); line-height:1.22; letter-spacing:-.025em; }
.tm-portfolio-card__title a { color:var(--tm-navy); text-decoration:none; }
.tm-portfolio-card__tags { color:var(--tm-muted); font-size:12px; line-height:1.55; }
.tm-project-main { padding-block:clamp(60px,7vw,100px); }
.tm-project__meta { display:flex; justify-content:center; flex-wrap:wrap; gap:10px 20px; margin-bottom:30px; color:var(--tm-red); font-size:11px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.tm-project__featured { margin:0 0 42px; overflow:hidden; border-radius:8px; }
.tm-project__featured img { width:100%; height:auto; }
.tm-project__content .tm-entry__content { font-size:17px; line-height:1.85; }
.tm-project-gallery { margin-top:clamp(60px,8vw,110px); }
.tm-project-gallery h2 { margin-bottom:28px; font-size:clamp(1.8rem,3vw,2.6rem); text-align:center; text-transform:uppercase; }
.tm-project-gallery__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.tm-project-gallery__grid a { display:block; overflow:hidden; border-radius:7px; background:var(--tm-navy); }
.tm-project-gallery__grid img { width:100%; aspect-ratio:4/3; object-fit:cover; transition:transform .3s ease,opacity .3s ease; }
.tm-project-gallery__grid a:hover img { transform:scale(1.025); opacity:.88; }
.tm-project__back { margin-top:48px; text-align:center; }
.tm-button--outline { color:var(--tm-navy); border-color:var(--tm-navy); background:transparent; }
.tm-button--outline:hover { color:#fff; background:var(--tm-navy); }
@media(max-width:960px){.tm-portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.tm-project-gallery__grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.tm-portfolio-grid,.tm-project-gallery__grid{grid-template-columns:1fr;}.tm-project__content .tm-entry__content{font-size:16px;}.tm-portfolio-card__view{display:none;}}