/*
Theme Name: Triplemblem
Theme URI: https://triplemblem.nl
Author: Triplemblem
Description: A focused, accessible WordPress theme for Triplemblem's software, IT, and local AI services.
Version: 0.1.5
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: triplemblem
*/

:root {
  --tm-white: #ffffff;
  --tm-charcoal: #232326;
  --tm-paper: #fdfaf8;
  --tm-ink: #191416;
  --tm-muted: #6d6266;
  --tm-line: #e8dde0;
  --tm-bordeaux: #6b1731;
  --tm-bordeaux-dark: #3b0d1c;
  --tm-bordeaux-soft: #f4e8ec;
  --tm-blue: #245b78;
  --tm-blue-soft: #e7f0f4;
  --tm-success: #1f6b4d;
  --tm-error: #9d2536;
  --tm-shadow: 0 24px 70px rgba(59, 13, 28, 0.1);
  --tm-radius-sm: 0.75rem;
  --tm-radius: 1.25rem;
  --tm-radius-lg: 2rem;
  --tm-shell: min(1180px, calc(100% - 2.5rem));
  --tm-display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --tm-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--tm-white);
  color: var(--tm-ink);
  font-family: var(--tm-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .tm-site-header {
  top: 32px;
}

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

a {
  color: var(--tm-bordeaux);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--tm-blue);
}

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

:focus-visible {
  outline: 3px solid var(--tm-blue);
  outline-offset: 4px;
}

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

.screen-reader-text:focus {
  background: var(--tm-white);
  clip: auto !important;
  clip-path: none;
  color: var(--tm-ink);
  display: block;
  height: auto;
  left: 1rem;
  padding: 1rem 1.25rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

.tm-shell {
  margin-inline: auto;
  width: var(--tm-shell);
}

.tm-site-main {
  min-height: 60vh;
}

.tm-section {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
}

.tm-section--tight {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.tm-section--paper {
  background: var(--tm-paper);
}

.tm-section--bordeaux {
  background: var(--tm-bordeaux-dark);
  color: var(--tm-white);
}

.tm-eyebrow {
  align-items: center;
  color: var(--tm-bordeaux);
  display: flex;
  font-size: 0.75rem;
  font-weight: 750;
  gap: 0.6rem;
  letter-spacing: 0.16em;
  margin: 0 0 1.15rem;
  text-transform: uppercase;
}

.tm-eyebrow::before {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 0.45rem;
  width: 0.45rem;
}

.tm-section--bordeaux .tm-eyebrow {
  color: #edb9c8;
}

.tm-display,
.tm-page-title,
.tm-project-title,
h1,
h2,
h3 {
  font-family: var(--tm-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}

h1,
.tm-page-title {
  font-size: clamp(3rem, 7vw, 6.4rem);
  margin: 0;
}

h2 {
  font-size: clamp(2.3rem, 4.8vw, 4.5rem);
  margin: 0 0 1.5rem;
}

h3 {
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  margin: 0 0 0.8rem;
}

p {
  margin: 0 0 1.4rem;
}

.tm-lead {
  color: var(--tm-muted);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.65;
  max-width: 43rem;
}

.tm-section--bordeaux .tm-lead {
  color: #eadde1;
}

.tm-actions,
.wp-block-buttons {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.tm-button,
.wp-block-button__link,
button[type="submit"] {
  align-items: center;
  background: var(--tm-bordeaux);
  border: 1px solid var(--tm-bordeaux);
  border-radius: 999px;
  color: var(--tm-white);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 700;
  gap: 0.6rem;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.78rem 1.4rem;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.tm-button::after,
.wp-block-button__link::after {
  content: "↗";
  font-size: 1.05em;
}

.tm-button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover {
  background: var(--tm-bordeaux-dark);
  border-color: var(--tm-bordeaux-dark);
  color: var(--tm-white);
  transform: translateY(-2px);
}

.tm-button--secondary,
.is-style-outline .wp-block-button__link {
  background: transparent;
  border-color: var(--tm-line);
  color: var(--tm-ink);
}

.tm-button--secondary:hover,
.is-style-outline .wp-block-button__link:hover {
  background: var(--tm-bordeaux-soft);
  border-color: var(--tm-bordeaux);
  color: var(--tm-bordeaux-dark);
}

.tm-site-header {
  background: rgba(35, 35, 38, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
}

.tm-header-inner {
  align-items: center;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  min-height: 5.2rem;
}

.tm-brand {
  align-items: center;
  color: var(--tm-ink);
  display: inline-flex;
  font-family: var(--tm-display);
  font-size: 1.45rem;
  font-weight: 600;
  gap: 0.7rem;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.tm-brand:hover {
  color: var(--tm-bordeaux);
}

.tm-site-header .tm-brand {
  color: var(--tm-white);
}

.tm-site-header .tm-brand:hover {
  color: #edb9c8;
}

.tm-brand-mark {
  align-items: center;
  background: var(--tm-bordeaux);
  border-radius: 0.55rem 0.55rem 0.55rem 0.18rem;
  color: var(--tm-white);
  display: inline-flex;
  font-family: var(--tm-body);
  font-size: 0.76rem;
  font-weight: 800;
  height: 2.15rem;
  justify-content: center;
  letter-spacing: -0.08em;
  width: 2.15rem;
}

.custom-logo-link img {
  max-height: 3rem;
  width: auto;
}

.tm-nav-wrap {
  align-items: center;
  display: flex;
  gap: 1.25rem;
}

.tm-primary-nav ul {
  align-items: center;
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-primary-nav a {
  color: var(--tm-white);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.tm-primary-nav a:hover,
.tm-primary-nav .current-menu-item > a,
.tm-primary-nav .current_page_item > a {
  color: #edb9c8;
}

.tm-language-switcher ul {
  display: flex;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-language-switcher a,
.tm-language-switcher span {
  border-radius: 999px;
  color: #cfc5c8;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.42rem 0.5rem;
  text-decoration: none;
  text-transform: uppercase;
}

.tm-language-switcher .current-lang a,
.tm-language-switcher .tm-language-current {
  background: var(--tm-white);
  color: var(--tm-charcoal);
}

.tm-menu-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: var(--tm-white);
  cursor: pointer;
  display: none;
  height: 2.85rem;
  justify-content: center;
  width: 2.85rem;
}

.tm-menu-toggle-lines,
.tm-menu-toggle-lines::before,
.tm-menu-toggle-lines::after {
  background: currentColor;
  content: "";
  display: block;
  height: 2px;
  position: relative;
  width: 1rem;
}

.tm-menu-toggle-lines::before {
  position: absolute;
  top: -5px;
}

.tm-menu-toggle-lines::after {
  position: absolute;
  top: 5px;
}

.tm-hero {
  background:
    radial-gradient(circle at 88% 18%, rgba(36, 91, 120, 0.13), transparent 23rem),
    linear-gradient(180deg, var(--tm-paper), var(--tm-white));
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 8.5rem) 0 clamp(4rem, 7vw, 7rem);
  position: relative;
}

.tm-hero-grid {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.tm-hero-copy {
  max-width: 68rem;
}

.tm-hero h1 {
  max-width: 12ch;
}

.tm-hero h1 em {
  color: var(--tm-bordeaux);
  font-style: italic;
}

.tm-hero-copy .tm-lead {
  margin-top: 1.6rem;
  max-width: 47rem;
}

.tm-hero-proof {
  border-top: 1px solid var(--tm-line);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  margin-top: 2.7rem;
  padding-top: 1.25rem;
}

.tm-hero-proof span {
  align-items: center;
  color: var(--tm-muted);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 0.5rem;
  letter-spacing: 0.02em;
}

.tm-hero-proof span::before {
  background: var(--tm-blue);
  border-radius: 50%;
  content: "";
  height: 0.38rem;
  width: 0.38rem;
}

.tm-hero-visual {
  aspect-ratio: 0.9;
  display: none;
  place-items: center;
  position: relative;
}

.tm-orbit {
  aspect-ratio: 1;
  border: 1px solid rgba(107, 23, 49, 0.2);
  border-radius: 50%;
  position: absolute;
  width: 84%;
}

.tm-orbit::before,
.tm-orbit::after {
  border: 1px solid rgba(36, 91, 120, 0.18);
  border-radius: 50%;
  content: "";
  inset: 13%;
  position: absolute;
}

.tm-orbit::after {
  inset: 29%;
}

.tm-orbit-dot {
  background: var(--tm-blue);
  border: 0.4rem solid var(--tm-blue-soft);
  border-radius: 50%;
  height: 1.3rem;
  position: absolute;
  right: 10%;
  top: 20%;
  width: 1.3rem;
}

.tm-terminal {
  background: var(--tm-bordeaux-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--tm-radius);
  box-shadow: var(--tm-shadow);
  color: #f8eef1;
  max-width: 27rem;
  padding: 1.25rem;
  position: relative;
  transform: rotate(-2deg);
  width: 82%;
  z-index: 2;
}

.tm-terminal-bar {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.35rem;
}

.tm-terminal-bar span {
  background: #c67b8f;
  border-radius: 50%;
  height: 0.52rem;
  width: 0.52rem;
}

.tm-terminal-bar span:nth-child(2) {
  background: #d8b66b;
}

.tm-terminal-bar span:nth-child(3) {
  background: #6aa18e;
}

.tm-terminal pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.72rem, 1.2vw, 0.9rem);
  line-height: 1.9;
  margin: 0;
  overflow: hidden;
  white-space: pre-wrap;
}

.tm-terminal .tm-code-muted {
  color: #c99eaa;
}

.tm-terminal .tm-code-blue {
  color: #8bc0dc;
}

.tm-float-card {
  background: var(--tm-white);
  border: 1px solid var(--tm-line);
  border-radius: 1rem;
  bottom: 4%;
  box-shadow: 0 18px 45px rgba(25, 20, 22, 0.12);
  padding: 1rem 1.1rem;
  position: absolute;
  right: 0;
  width: min(13rem, 46%);
  z-index: 3;
}

.tm-float-card small {
  color: var(--tm-muted);
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tm-float-card strong {
  display: block;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.tm-intro-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.tm-section--services,
.tm-hero + .tm-section:not(.tm-section--paper) {
  background: var(--tm-charcoal);
  color: var(--tm-white);
}

.tm-section--services .tm-eyebrow,
.tm-hero + .tm-section:not(.tm-section--paper) .tm-eyebrow {
  color: #edb9c8;
}

.tm-section--services .tm-lead,
.tm-hero + .tm-section:not(.tm-section--paper) .tm-lead {
  color: #d9d1d4;
}

.tm-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
}

.tm-service-card,
.tm-value-card,
.tm-project-card {
  background: var(--tm-white);
  border: 1px solid var(--tm-line);
  border-radius: var(--tm-radius);
  min-height: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.tm-service-card {
  display: flex;
  flex-direction: column;
  min-height: 21rem;
}

.tm-section--services .tm-service-card,
.tm-hero + .tm-section:not(.tm-section--paper) .tm-service-card {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.16);
  border-top: 3px solid var(--tm-bordeaux);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
  color: var(--tm-white);
}

.tm-section--services .tm-service-card .tm-card-number,
.tm-hero + .tm-section:not(.tm-section--paper) .tm-service-card .tm-card-number,
.tm-section--services .tm-service-card .tm-card-link::after,
.tm-hero + .tm-section:not(.tm-section--paper) .tm-service-card .tm-card-link::after {
  color: #edb9c8;
}

.tm-section--services .tm-service-card p,
.tm-hero + .tm-section:not(.tm-section--paper) .tm-service-card p {
  color: #d9d1d4;
}

.tm-section--services .tm-service-card .tm-card-link,
.tm-hero + .tm-section:not(.tm-section--paper) .tm-service-card .tm-card-link {
  color: var(--tm-white);
}

.tm-section--services .tm-service-card .tm-card-link:hover,
.tm-hero + .tm-section:not(.tm-section--paper) .tm-service-card .tm-card-link:hover {
  color: #edb9c8;
}

.tm-card-number {
  color: var(--tm-bordeaux);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 3.5rem;
  text-transform: uppercase;
}

.tm-service-card p,
.tm-value-card p {
  color: var(--tm-muted);
}

.tm-card-link {
  color: var(--tm-ink);
  font-size: 0.9rem;
  font-weight: 750;
  margin-top: auto;
  text-decoration: none;
}

.tm-card-link::after {
  color: var(--tm-bordeaux);
  content: " ↗";
}

.tm-project-feature {
  align-items: stretch;
  background: var(--tm-bordeaux-dark);
  border-radius: var(--tm-radius-lg);
  color: var(--tm-white);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.85fr);
  margin-top: 3rem;
  overflow: hidden;
}

.tm-project-feature-copy {
  padding: clamp(2rem, 5vw, 4.5rem);
}

.tm-project-meta {
  color: #d8b9c2;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.74rem;
  font-weight: 800;
  gap: 0.6rem 1.25rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.tm-project-feature h3 {
  font-size: clamp(2.3rem, 4vw, 4rem);
  max-width: 12ch;
}

.tm-project-feature p {
  color: #e9dce0;
  max-width: 36rem;
}

.tm-project-feature .tm-button {
  background: var(--tm-white);
  border-color: var(--tm-white);
  color: var(--tm-bordeaux-dark);
}

.tm-project-visual {
  background:
    linear-gradient(135deg, rgba(36, 91, 120, 0.75), transparent 55%),
    var(--tm-bordeaux);
  display: grid;
  min-height: 28rem;
  overflow: hidden;
  padding: 3rem;
  place-items: center;
  position: relative;
}

.tm-stack-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.25rem;
  box-shadow: var(--tm-shadow);
  color: var(--tm-ink);
  padding: 1.5rem;
  transform: rotate(3deg);
  width: min(21rem, 90%);
}

.tm-stack-line {
  align-items: center;
  border-bottom: 1px solid var(--tm-line);
  display: flex;
  font-size: 0.85rem;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.tm-stack-line:last-child {
  border-bottom: 0;
}

.tm-stack-status {
  background: var(--tm-blue-soft);
  border-radius: 999px;
  color: var(--tm-blue);
  font-size: 0.66rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  text-transform: uppercase;
}

.tm-process-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
}

.tm-process-step {
  border-left: 1px solid var(--tm-line);
  padding: 0.8rem clamp(1.4rem, 3vw, 2.7rem) 1rem;
}

.tm-process-step:first-child {
  padding-left: 0;
  border-left: 0;
}

.tm-process-step p {
  color: var(--tm-muted);
}

.tm-cta-panel {
  align-items: end;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
}

.tm-cta-panel .tm-actions {
  justify-content: flex-end;
}

.tm-cta-panel .tm-button {
  background: var(--tm-white);
  border-color: var(--tm-white);
  color: var(--tm-bordeaux-dark);
}

.tm-page-hero {
  background: var(--tm-paper);
  border-bottom: 1px solid var(--tm-line);
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.tm-page-hero .tm-page-title {
  max-width: 13ch;
}

.tm-page-content {
  margin-inline: auto;
  max-width: 54rem;
  padding: clamp(3.5rem, 7vw, 7rem) 0;
}

.tm-page-content > * + * {
  margin-top: 1.4rem;
}

.tm-page-content h2,
.tm-page-content h3 {
  margin-top: 2.8rem;
}

.tm-project-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.tm-project-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.tm-project-card-image {
  aspect-ratio: 16 / 10;
  background: var(--tm-bordeaux-soft);
  overflow: hidden;
}

.tm-project-card-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tm-project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.7rem;
}

.tm-project-card-body p {
  color: var(--tm-muted);
}

.tm-project-empty {
  background: var(--tm-paper);
  border: 1px dashed #cbb8be;
  border-radius: var(--tm-radius);
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.tm-project-layout {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.6fr);
}

.tm-project-sidebar {
  align-self: start;
  background: var(--tm-paper);
  border: 1px solid var(--tm-line);
  border-radius: var(--tm-radius);
  padding: 1.6rem;
  position: sticky;
  top: 7rem;
}

.tm-project-fact {
  border-bottom: 1px solid var(--tm-line);
  padding: 1rem 0;
}

.tm-project-fact:last-child {
  border-bottom: 0;
}

.tm-project-fact dt {
  color: var(--tm-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tm-project-fact dd {
  margin: 0.25rem 0 0;
}

.tm-contact-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 0.7fr) minmax(20rem, 1fr);
}

.tm-contact-form {
  background: var(--tm-paper);
  border: 1px solid var(--tm-line);
  border-radius: var(--tm-radius);
  padding: clamp(1.5rem, 4vw, 2.7rem);
}

.tm-field-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tm-field {
  margin-bottom: 1.2rem;
}

.tm-field label,
.tm-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 750;
  margin-bottom: 0.45rem;
}

.tm-field input,
.tm-field select,
.tm-field textarea {
  background: var(--tm-white);
  border: 1px solid #cdbfc3;
  border-radius: 0.7rem;
  color: var(--tm-ink);
  min-height: 3.2rem;
  padding: 0.75rem 0.9rem;
  width: 100%;
}

.tm-field textarea {
  min-height: 10rem;
  resize: vertical;
}

.tm-field input:focus,
.tm-field select:focus,
.tm-field textarea:focus {
  border-color: var(--tm-blue);
  box-shadow: 0 0 0 3px rgba(36, 91, 120, 0.15);
  outline: 0;
}

.tm-checkbox {
  align-items: flex-start;
  display: flex;
  gap: 0.7rem;
}

.tm-checkbox input {
  flex: 0 0 auto;
  margin-top: 0.3rem;
  min-height: auto;
  width: auto;
}

.tm-form-notice {
  border-radius: 0.7rem;
  margin-bottom: 1.2rem;
  padding: 0.9rem 1rem;
}

.tm-form-notice--success {
  background: #e5f4ed;
  color: var(--tm-success);
}

.tm-form-notice--error {
  background: #f9e8eb;
  color: var(--tm-error);
}

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

.tm-site-footer {
  background: var(--tm-ink);
  color: var(--tm-white);
  padding: 4.5rem 0 2rem;
}

.tm-footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(9rem, 0.4fr));
}

.tm-site-footer .tm-brand {
  color: var(--tm-white);
}

.tm-footer-intro {
  color: #cfc5c8;
  margin-top: 1rem;
  max-width: 28rem;
}

.tm-footer-title {
  color: #a99da1;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.tm-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-footer-links li + li {
  margin-top: 0.6rem;
}

.tm-footer-links a {
  color: var(--tm-white);
  text-decoration: none;
}

.tm-footer-links a:hover {
  color: #edb9c8;
}

.tm-footer-bottom {
  align-items: center;
  border-top: 1px solid #3a3235;
  color: #a99da1;
  display: flex;
  font-size: 0.76rem;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 1.5rem;
}

.tm-footer-bottom p {
  margin: 0;
}

.alignwide {
  margin-left: 50%;
  max-width: var(--tm-shell);
  transform: translateX(-50%);
  width: var(--tm-shell);
}

.alignfull {
  margin-left: 50%;
  max-width: none;
  transform: translateX(-50%);
  width: 100vw;
}

@media (max-width: 980px) {
  .tm-menu-toggle {
    display: inline-flex;
  }

  .tm-nav-wrap {
    background: var(--tm-charcoal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 35px rgba(35, 35, 38, 0.24);
    display: none;
    left: 0;
    padding: 1.5rem 1.25rem 2rem;
    position: absolute;
    right: 0;
    top: 100%;
  }

  .tm-nav-wrap.is-open {
    display: block;
  }

  .tm-primary-nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .tm-primary-nav a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: block;
    font-size: 1.05rem;
    padding: 0.9rem 0;
  }

  .tm-language-switcher {
    margin-top: 1.25rem;
  }

  .tm-hero-grid,
  .tm-intro-grid,
  .tm-project-feature,
  .tm-project-layout,
  .tm-contact-grid {
    grid-template-columns: 1fr;
  }

  .tm-hero-copy {
    max-width: 47rem;
  }

  .tm-hero-visual {
    margin-inline: auto;
    max-width: 35rem;
    width: 100%;
  }

  .tm-card-grid {
    grid-template-columns: 1fr;
  }

  .tm-service-card {
    min-height: 0;
  }

  .tm-card-number {
    margin-bottom: 2rem;
  }

  .tm-project-visual {
    min-height: 21rem;
  }

  .tm-project-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  :root {
    --tm-shell: min(100% - 1.4rem, 1180px);
  }

  body.admin-bar .tm-site-header {
    top: 46px;
  }

  .tm-header-inner {
    min-height: 4.6rem;
  }

  .tm-hero {
    padding-top: 3.5rem;
  }

  .tm-hero-grid {
    gap: 2.5rem;
  }

  .tm-hero-proof {
    align-items: flex-start;
    flex-direction: column;
  }

  .tm-float-card {
    right: 2%;
  }

  .tm-process-grid,
  .tm-project-grid,
  .tm-field-row,
  .tm-footer-grid,
  .tm-cta-panel {
    grid-template-columns: 1fr;
  }

  .tm-process-step,
  .tm-process-step:first-child {
    border-left: 0;
    border-top: 1px solid var(--tm-line);
    padding: 1.6rem 0;
  }

  .tm-cta-panel .tm-actions {
    justify-content: flex-start;
  }

  .tm-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }
}

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

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