/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --tm-blue:        #21409a;
  --tm-navy:        #163150;
  --tm-royal:       #005baa;
  --tm-mid-blue:    #1a7abe;
  --tm-sky:         #52ace0;
  --tm-blue-tint:   #e7ecf6;
  --tm-navy-tint:   #e3e8ee;

  --neutral-0:      #ffffff;
  --neutral-50:     #f7f8fa;
  --neutral-100:    #f3f3f3;
  --neutral-200:    #ebebeb;
  --neutral-300:    #d9d9d9;
  --neutral-400:    #b6b9bd;
  --neutral-500:    #6f6f6f;
  --neutral-600:    #495057;
  --neutral-800:    #212121;
  --neutral-900:    #0d1828;

  --fg-1:           var(--tm-navy);
  --fg-2:           var(--neutral-600);
  --fg-3:           var(--neutral-500);
  --fg-inverse:     #ffffff;
  --fg-link:        var(--tm-blue);
  --fg-link-hover:  var(--tm-royal);

  --bg-page:        #ffffff;
  --bg-soft:        var(--neutral-50);
  --bg-card:        #ffffff;
  --bg-dark:        var(--tm-navy);
  --bg-darker:      #0e2540;

  --border-1:       var(--neutral-200);
  --border-2:       var(--neutral-300);
  --border-strong:  var(--tm-navy);

  --accent-bar:     var(--tm-blue);
  --accent-bar-2:   var(--tm-sky);

  --ff-serif:       'Newsreader', 'Source Serif Pro', Georgia, serif;
  --ff-display:     'Staatliches', 'Oswald', 'Bebas Neue', impact, sans-serif;
  --ff-sans:        'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-micro:       'Arimo', 'Arial', sans-serif;

  --fs-display-1:   64px;
  --fs-display-2:   48px;
  --fs-display-3:   40px;
  --fs-h1:          32px;
  --fs-h2:          28px;
  --fs-h3:          24px;
  --fs-h4:          20px;
  --fs-body-lg:     18px;
  --fs-body:        16px;
  --fs-body-sm:     14px;
  --fs-caption:     12px;

  --lh-tight:       1.05;
  --lh-snug:        1.2;
  --lh-normal:      1.45;
  --lh-relaxed:     1.7;

  --tracking-display: 0.02em;
  --tracking-eyebrow: 0.18em;
  --tracking-button:  0.04em;

  --space-1:  4px;  --space-2:  8px;  --space-3:  12px;
  --space-4:  16px; --space-5:  20px; --space-6:  24px;
  --space-8:  32px; --space-10: 40px; --space-12: 48px;
  --space-16: 64px; --space-20: 80px; --space-24: 96px;

  --container:        1280px;
  --container-narrow: 960px;
  --nav-h:            96px;
  --section-y:        96px;

  --r-none:  0;     --r-sm:  8px;   --r-md:  16px;
  --r-lg:    24px;  --r-xl:  32px;  --r-2xl: 48px;
  --r-pill:  999px;

  --shadow-1: 0 1px 2px rgba(22,49,80,0.05);
  --shadow-2: 0 6px 18px rgba(22,49,80,0.08);
  --shadow-3: 0 18px 40px rgba(22,49,80,0.10);
  --shadow-card: 0 4px 14px rgba(22,49,80,0.06);

  --ease:        cubic-bezier(.4,0,.2,1);
  --ease-out:    cubic-bezier(.2,.7,.2,1);
  --dur-fast:    150ms;
  --dur-base:    220ms;
  --dur-slow:    400ms;

  --warm-bg:    #fbfaf7;
  --warm-card:  #ffffff;
  --warm-soft:  #f3efe7;
  --warm-line:  #ebe6dc;
}

/* ============================================================
   BASE
   ============================================================ */
html, body { margin: 0; padding: 0; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; overflow-x: hidden; }

body {
  font-family: var(--ff-sans);
  background: var(--warm-bg);
  color: var(--fg-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ============================================================
   ADA
   ============================================================ */
.tm-skip-link {
  position: absolute; top: -64px; left: 16px;
  background: var(--tm-navy); color: #fff;
  padding: 14px 24px; border-radius: 999px;
  font-family: var(--ff-sans); font-weight: 600; font-size: 14px;
  text-decoration: none; z-index: 6000;
  transition: top var(--dur-base) var(--ease);
}
.tm-skip-link:focus { top: 16px; outline: 3px solid var(--tm-sky); outline-offset: 2px; }
.tm-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;
}
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--tm-blue); outline-offset: 3px; border-radius: 4px;
}
.tm-btn:focus-visible, .tm-arrow-btn:focus-visible, .tm-nav-cta:focus-visible {
  outline-offset: 4px;
}

/* ============================================================
   Background photo overlays
   ============================================================ */
.tm-bg-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; overflow: hidden; pointer-events: none;
}
.tm-bg-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.22; filter: saturate(0.85);
}

/* ============================================================
   Scroll reveals
   ============================================================ */
[data-r] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
[data-r].in { opacity: 1; transform: none; }
[data-d="1"] { transition-delay: 80ms; }
[data-d="2"] { transition-delay: 160ms; }
[data-d="3"] { transition-delay: 240ms; }
[data-d="4"] { transition-delay: 320ms; }
[data-d="5"] { transition-delay: 400ms; }
[data-d="6"] { transition-delay: 480ms; }

/* Hero title word stagger */
.tm-hero-title-word {
  display: inline-block; opacity: 0; transform: translateY(32px);
  animation: titleWordIn 900ms var(--ease-out) forwards;
}
.tm-hero-title-word.italic { font-style: italic; color: var(--tm-blue); }
@keyframes titleWordIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  [data-r] { opacity: 1 !important; transform: none !important; }
  .tm-hero-title-word { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ============================================================
   Layout
   ============================================================ */
.tm-container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
section { padding: 120px 0; position: relative; }

/* ============================================================
   Typography
   ============================================================ */
.tm-display {
  font-family: var(--ff-serif); font-weight: 500;
  letter-spacing: -0.015em; line-height: 1.08;
  color: var(--fg-1); margin: 0;
}
.tm-display-xl { font-size: clamp(46px, 5.4vw, 72px); }
.tm-display-lg { font-size: clamp(36px, 4vw, 56px); }
.tm-display-md { font-size: clamp(28px, 3vw, 42px); }
.tm-display-sm { font-size: clamp(24px, 2.4vw, 32px); }
.tm-display em { font-style: italic; color: var(--tm-blue); font-weight: 500; }
.tm-display.tm-on-dark { color: #fff; }
.tm-display.tm-on-dark em { color: #fff; }

.tm-display-staat {
  font-family: var(--ff-display); text-transform: uppercase;
  letter-spacing: 0.02em; line-height: 1.05; font-weight: 400; color: var(--tm-navy);
}

.tm-eyebrow {
  font-family: var(--ff-sans); font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--tm-blue); margin: 0 0 18px; display: inline-block;
}
.tm-eyebrow.tm-on-dark { color: var(--tm-sky); }

p { margin: 0 0 16px; font-family: var(--ff-sans); font-size: 16px; line-height: 1.8; color: var(--fg-2); }
p.tm-lead { font-size: 19px; line-height: 1.7; color: var(--neutral-600); }
p:last-child { margin-bottom: 0; }
p.tm-on-dark { color: rgba(255,255,255,0.82); }

/* ============================================================
   Tri-bar accent
   ============================================================ */
.tm-tri-bar { display: inline-flex; gap: 4px; align-items: center; margin: 22px 0 0; }
.tm-tri-bar > span { width: 40px; height: 4px; background: var(--tm-navy); display: block; border-radius: 999px; }
.tm-tri-bar > span:nth-child(2) { background: var(--tm-blue); }
.tm-tri-bar > span:nth-child(3) { background: var(--tm-sky); }
.tm-tri-bar.tm-on-dark > span:nth-child(1) { background: #fff; }
.tm-tri-bar.tm-center { margin: 22px auto 0; }

[data-r].in .tm-tri-bar > span { animation: tribar-grow 800ms var(--ease-out) backwards; }
[data-r].in .tm-tri-bar > span:nth-child(1) { animation-delay: 200ms; }
[data-r].in .tm-tri-bar > span:nth-child(2) { animation-delay: 320ms; }
[data-r].in .tm-tri-bar > span:nth-child(3) { animation-delay: 440ms; }
@keyframes tribar-grow { from { transform: scaleX(0); transform-origin: left center; } to { transform: scaleX(1); } }

/* ============================================================
   Lucide icons
   ============================================================ */
[data-lucide] { display: inline-flex; vertical-align: middle; }
.tm-icon-circle {
  width: 56px; height: 56px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--warm-soft); border: 1px solid var(--warm-line);
  color: var(--tm-blue); transition: all var(--dur-base) var(--ease);
}
.tm-icon-circle svg { width: 24px; height: 24px; }
.tm-icon-circle.sm { width: 44px; height: 44px; }
.tm-icon-circle.sm svg { width: 20px; height: 20px; }
.tm-icon-circle.lg { width: 72px; height: 72px; }
.tm-icon-circle.lg svg { width: 30px; height: 30px; }
.tm-icon-circle.tm-on-dark { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); color: var(--tm-sky); }
.tm-icon-circle.tm-invert { background: var(--tm-navy); border-color: var(--tm-navy); color: #fff; }

/* ============================================================
   Buttons
   ============================================================ */
.tm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff-sans); font-weight: 600; font-size: 15px;
  padding: 16px 32px; text-decoration: none; border-radius: var(--r-pill);
  border: 1.5px solid transparent; transition: all var(--dur-base) var(--ease);
  cursor: pointer; line-height: 1; white-space: nowrap;
}
.tm-btn.tm-primary, .tm-btn.tm-navy { background: var(--tm-navy); color: #fff; }
.tm-btn.tm-primary:hover, .tm-btn.tm-navy:hover { background: var(--tm-blue); transform: translateY(-2px); }
.tm-btn.tm-outline-dark { background: transparent; color: var(--tm-navy); border-color: var(--tm-navy); }
.tm-btn.tm-outline-dark:hover { background: var(--tm-navy); color: #fff; transform: translateY(-2px); }
.tm-btn svg { transition: transform var(--dur-base) var(--ease); }
.tm-btn:hover svg { transform: translateX(4px); }

/* ============================================================
   Header / Nav
   ============================================================ */
.tm-site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent; backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0);
  padding: 0 48px; height: 112px;
  display: flex; align-items: center; gap: 32px;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease), backdrop-filter var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease), height var(--dur-base) var(--ease);
}
.tm-site-header.tm-scrolled {
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--warm-line); height: 88px;
}
.tm-site-header .tm-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.tm-site-header .tm-logo img { height: 72px; width: auto; transition: height var(--dur-base); }
.tm-site-header.tm-scrolled .tm-logo img { height: 56px; }
.tm-site-header nav { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.tm-nav-link {
  display: inline-flex; align-items: center; padding: 10px 18px;
  font-family: var(--ff-sans); font-weight: 500; font-size: 14px;
  color: var(--tm-navy); text-decoration: none; border-radius: 999px;
  transition: all var(--dur-base) var(--ease); white-space: nowrap; position: relative;
}
.tm-nav-link:hover { background: var(--warm-soft); }
.tm-nav-link.tm-active, .tm-nav-link[aria-current="true"] { color: var(--tm-blue); background: var(--warm-soft); }
.tm-nav-cta {
  background: var(--tm-navy); color: #fff; padding: 12px 22px;
  font-family: var(--ff-sans); font-weight: 600; font-size: 14px;
  text-decoration: none; border-radius: 999px;
  transition: all var(--dur-base) var(--ease); margin-left: 12px;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
}
.tm-nav-cta:hover { background: var(--tm-blue); transform: translateY(-1px); }
.tm-nav-cta svg { width: 14px; height: 14px; transition: transform var(--dur-base); }
.tm-nav-cta:hover svg { transform: translateX(3px); }

/* ============================================================
   Hero — split variant
   ============================================================ */
.tm-hero { position: relative; }
.tm-hero[data-variant="split"] { padding: 96px 0 0; position: relative; }
.tm-hero[data-variant="split"]::before {
  content: ""; position: absolute; top: -100px; left: 30%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(82,172,224,0.10) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
.tm-hero[data-variant="split"] .tm-hero-inner {
  display: grid; grid-template-columns: minmax(520px, 1.05fr) 1.15fr;
  align-items: stretch; gap: 56px; min-height: 720px;
  padding-left: 48px; position: relative; z-index: 1;
}
.tm-hero[data-variant="split"] .tm-hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 24px 64px 0; position: relative;
}
.tm-hero[data-variant="split"] .tm-hero-eyebrow {
  margin-bottom: 28px; display: inline-flex; align-items: center; gap: 12px;
}
.tm-hero[data-variant="split"] .tm-hero-eyebrow::before {
  content: ""; width: 36px; height: 1px; background: var(--tm-blue);
}
.tm-hero[data-variant="split"] .tm-hero-title {
  font-family: var(--ff-serif); font-weight: 500;
  font-size: clamp(44px, 4.8vw, 72px); line-height: 1.02;
  letter-spacing: -0.022em; color: var(--tm-navy); margin: 0 0 32px; max-width: 620px;
}
.tm-hero[data-variant="split"] .tm-hero-title em { font-style: italic; color: var(--tm-blue); font-weight: 500; }
.tm-hero[data-variant="split"] .tm-hero-body {
  display: block; font-family: var(--ff-sans); font-size: 18px; line-height: 1.75;
  color: var(--neutral-600); max-width: 520px; margin: 0 0 40px;
}
.tm-hero[data-variant="split"] .tm-hero-actions { margin-bottom: 56px; }
.tm-hero[data-variant="split"] .tm-hero-mini-stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 36px;
  padding-top: 32px; border-top: 1px solid var(--warm-line); max-width: 580px;
}
.tm-hero-mini-stat .tm-num {
  font-family: var(--ff-serif); font-weight: 500; font-size: 32px;
  line-height: 1; letter-spacing: -0.02em; color: var(--tm-navy); margin-bottom: 8px;
}
.tm-hero-mini-stat .tm-num em { font-style: italic; color: var(--tm-blue); font-weight: 500; }
.tm-hero-mini-stat .tm-lbl {
  font-family: var(--ff-sans); font-weight: 600; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--neutral-500); line-height: 1.4;
}
.tm-hero[data-variant="split"] .tm-hero-right {
  display: block; position: relative; border-radius: 32px 0 0 32px;
  overflow: hidden; background: var(--tm-navy); min-height: 720px;
}
.tm-hero[data-variant="split"] .tm-hero-right img.tm-hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.tm-hero[data-variant="split"] .tm-hero-right::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(13,24,40,0.78) 100%); z-index: 2;
}
.tm-hero-quote {
  position: absolute; left: 48px; right: 48px; bottom: 56px; z-index: 3;
  color: #fff; max-width: 460px; pointer-events: none;
}
.tm-hero-quote .tm-mark {
  font-family: var(--ff-serif); font-style: italic; font-size: 56px;
  line-height: 0.6; color: var(--tm-sky); margin-bottom: 8px; display: block;
}
.tm-hero-quote-text {
  font-family: var(--ff-serif); font-style: italic; font-size: 22px;
  font-weight: 400; line-height: 1.45; margin-bottom: 16px; color: #ffffff;
}
.tm-hero-quote-attr {
  font-family: var(--ff-sans); font-weight: 600; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.tm-hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ============================================================
   Tagline band
   ============================================================ */
.tm-tagline-band { padding: 0 48px; }
.tm-tagline-band-inner {
  background: var(--tm-navy); color: #fff; padding: 88px 72px; border-radius: 32px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center;
  position: relative; overflow: hidden;
}
.tm-tagline-band-inner > .tm-bg-photo img { opacity: 0.35; }
.tm-tagline-band-inner > .tm-bg-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(22,49,80,0.95) 0%, rgba(22,49,80,0.72) 55%, rgba(22,49,80,0.55) 100%);
}
.tm-tagline-band-inner::before, .tm-tagline-band-inner::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(82,172,224,0.18) 0%, transparent 70%);
  pointer-events: none; z-index: 1;
}
.tm-tagline-band-inner::before { left: -120px; bottom: -120px; }
.tm-tagline-band-inner::after { right: -120px; top: -120px; }
.tm-tagline-band-inner > *:not(.tm-bg-photo) { position: relative; z-index: 2; }
.tm-tagline-band-inner .tm-display { color: #fff; }
.tm-tagline-band-inner .tm-display em { color: #fff; }
.tm-tagline-band-inner .tm-right-text p { color: rgba(255,255,255,0.82); font-size: 17px; line-height: 1.7; }

/* Staatliches ribbon */
.tm-staat-ribbon { padding: 0 48px; margin-top: 64px; margin-bottom: 72px; }
.tm-staat-ribbon-inner {
  border-radius: 32px; background: var(--warm-soft); padding: 56px 72px;
  text-align: center; position: relative; overflow: hidden;
}
.tm-staat-ribbon-inner .tm-display-staat {
  font-size: clamp(32px, 4vw, 56px); color: var(--tm-navy); line-height: 1.05;
}
.tm-staat-ribbon-inner .tm-display-staat em { font-style: normal; color: var(--tm-blue); font-weight: 400; }
.tm-staat-ribbon-inner .tm-tri-bar { margin-top: 28px; }

/* ============================================================
   SERVICES — Capabilities Atlas
   ============================================================ */
#services { background: var(--bg-page); }
.tm-svc-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.tm-svc-head .tm-svc-lead { font-size: 17px; line-height: 1.75; color: var(--neutral-600); margin: 20px auto 0; max-width: 640px; }
.tm-svc-head .tm-tri-bar { margin: 28px auto 0; display: inline-flex; }

.tm-svc-atlas {
  display: grid; grid-template-columns: minmax(280px, 380px) 1fr;
  background: #fff; border: 1px solid var(--warm-line); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: 0 24px 60px -32px rgba(22,49,80,0.16);
}
.tm-svc-index {
  background: var(--warm-bg); padding: 32px 0 24px;
  display: flex; flex-direction: column; border-right: 1px solid var(--warm-line);
}
.tm-svc-index-group { padding: 18px 28px 10px; }
.tm-svc-index-group:first-child { padding-top: 4px; }
.tm-svc-index-divlabel {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-micro); font-weight: 500; font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--neutral-500);
}
.tm-svc-index-divlabel .tm-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tm-navy); }
.tm-svc-index-divlabel .tm-dot[data-div="dev"] { background: var(--tm-blue); }

.tm-svc-row {
  display: grid; grid-template-columns: 38px 1fr 22px; align-items: center; gap: 14px;
  padding: 18px 28px; border: 0; background: transparent; font: inherit; text-align: left;
  cursor: pointer; color: var(--tm-navy); position: relative;
  transition: background var(--dur-base) var(--ease);
}
.tm-svc-row + .tm-svc-row { border-top: 1px dashed rgba(22,49,80,0.08); }
.tm-svc-row::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 0; background: var(--tm-navy);
  transition: height var(--dur-base) var(--ease);
}
.tm-svc-row[data-svc="4"]::before, .tm-svc-row[data-svc="5"]::before, .tm-svc-row[data-svc="6"]::before { background: var(--tm-blue); }
.tm-svc-row:hover { background: rgba(255,255,255,0.55); }
.tm-svc-row:hover::before { height: 28px; }
.tm-svc-row.tm-active { background: #fff; }
.tm-svc-row.tm-active::before { height: 100%; }
.tm-svc-row-num {
  font-family: var(--ff-serif); font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1; color: var(--neutral-500); transition: color var(--dur-base);
}
.tm-svc-row.tm-active .tm-svc-row-num { color: var(--tm-navy); }
.tm-svc-row[data-svc="4"].tm-active .tm-svc-row-num, .tm-svc-row[data-svc="5"].tm-active .tm-svc-row-num,
.tm-svc-row[data-svc="6"].tm-active .tm-svc-row-num { color: var(--tm-blue); }
.tm-svc-row-name { font-family: var(--ff-sans); font-weight: 500; font-size: 15px; line-height: 1.3; color: var(--tm-navy); }
.tm-svc-row-arrow {
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--neutral-500); opacity: 0; transform: translateX(-4px);
  transition: opacity var(--dur-base), transform var(--dur-base);
}
.tm-svc-row-arrow svg { width: 14px; height: 14px; }
.tm-svc-row:hover .tm-svc-row-arrow, .tm-svc-row.tm-active .tm-svc-row-arrow { opacity: 1; transform: translateX(0); color: var(--tm-navy); }
.tm-svc-row[data-svc="4"]:hover .tm-svc-row-arrow, .tm-svc-row[data-svc="4"].tm-active .tm-svc-row-arrow,
.tm-svc-row[data-svc="5"]:hover .tm-svc-row-arrow, .tm-svc-row[data-svc="5"].tm-active .tm-svc-row-arrow,
.tm-svc-row[data-svc="6"]:hover .tm-svc-row-arrow, .tm-svc-row[data-svc="6"].tm-active .tm-svc-row-arrow { color: var(--tm-blue); }

.tm-svc-index-foot {
  margin-top: auto; padding: 24px 28px 8px; border-top: 1px solid var(--warm-line);
  display: flex; flex-direction: column; gap: 4px;
}
.tm-svc-index-foot-label { font-family: var(--ff-serif); font-style: italic; font-size: 17px; line-height: 1.2; color: var(--tm-navy); }
.tm-svc-index-foot-sub { font-family: var(--ff-sans); font-size: 13px; color: var(--neutral-600); }

.tm-svc-detail { position: relative; background: #fff; height: 100%; }
.tm-svc-panel { display: grid; grid-template-columns: 1fr 1.35fr; height: 100%; min-height: 520px; animation: svcFadeIn 380ms var(--ease-out) both; }
.tm-svc-panel[hidden] { display: none; }
@keyframes svcFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.tm-svc-panel-image { position: relative; overflow: hidden; height: 100%; }
.tm-svc-panel-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,49,80,0) 55%, rgba(22,49,80,0.35) 100%); pointer-events: none;
}
.tm-svc-panel-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-svc-panel-body { padding: 52px 56px; display: flex; flex-direction: column; position: relative; height: 100%; }
.tm-svc-panel-body .tm-division-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-micro); font-weight: 500; font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--tm-navy); margin: 0;
}
.tm-svc-panel-body .tm-division-tag[data-div="dev"] { color: var(--tm-blue); }
.tm-svc-panel-body .tm-division-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tm-svc-bignum {
  position: absolute; top: 36px; right: 48px;
  font-family: var(--ff-serif); font-style: italic; font-weight: 400;
  font-size: 88px; line-height: 0.9; letter-spacing: -0.03em;
  color: var(--tm-navy); opacity: 0.10; pointer-events: none;
}
.tm-svc-panel[data-div="dev"] .tm-svc-bignum { color: var(--tm-blue); }
.tm-svc-panel-title {
  font-family: var(--ff-serif); font-weight: 500;
  font-size: clamp(34px, 3.4vw, 46px); line-height: 1.05;
  letter-spacing: -0.018em; color: var(--tm-navy); margin: 24px 0 22px;
}
.tm-svc-panel-title em { font-style: italic; color: var(--tm-blue); font-weight: 500; }
.tm-svc-panel[data-div="dev"] .tm-svc-panel-title em { color: var(--tm-navy); }
.tm-svc-panel-body-copy { font-family: var(--ff-sans); font-size: 15.5px; line-height: 1.75; color: var(--neutral-600); margin: 0; max-width: 52ch; }

/* ============================================================
   About
   ============================================================ */
#about { background: var(--warm-soft); }
#about .tm-about-intro { max-width: 720px; margin: 0 auto 72px; text-align: center; }
.tm-about-stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-bottom: 120px;
  background: #fff; border-radius: 32px; overflow: hidden;
  box-shadow: var(--shadow-card); border: 1px solid var(--warm-line);
}
.tm-about-stat { padding: 56px 28px; border-right: 1px solid var(--warm-line); text-align: center; }
.tm-about-stat:last-child { border-right: none; }
.tm-about-stat .tm-icon-circle { margin-bottom: 20px; }
.tm-about-stat .tm-num {
  font-family: var(--ff-serif); font-weight: 500;
  font-size: clamp(36px, 3vw, 48px); line-height: 1; letter-spacing: -0.02em; color: var(--tm-navy);
}
.tm-about-stat .tm-num em { font-style: italic; color: var(--tm-blue); font-weight: 500; }
.tm-about-stat .tm-lbl {
  font-family: var(--ff-sans); font-weight: 600; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--tm-blue); margin-top: 14px;
}
.tm-about-stat .sub { font-family: var(--ff-sans); font-size: 12px; color: var(--neutral-500); margin-top: 10px; line-height: 1.55; }

/* Three clients */
.tm-three-clients-wrap { padding: 0; }
.tm-three-clients {
  background: var(--tm-navy); color: #fff; border-radius: 32px;
  padding: 96px 0; position: relative; overflow: hidden; margin-bottom: 120px;
}
.tm-three-clients > .tm-bg-photo img { opacity: 0.30; }
.tm-three-clients > .tm-bg-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,49,80,0.85) 0%, rgba(22,49,80,0.96) 100%);
}
.tm-three-clients::before {
  content: ""; position: absolute; top: -160px; right: -160px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(82,172,224,0.16) 0%, transparent 70%);
  pointer-events: none; z-index: 1;
}
.tm-three-clients > *:not(.tm-bg-photo) { position: relative; z-index: 2; }
.tm-three-clients .tm-clients-head { text-align: center; max-width: 760px; margin: 0 auto 56px; padding: 0 48px; position: relative; z-index: 2; }
.tm-three-clients-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1280px; margin: 0 auto; padding: 0 48px; position: relative; z-index: 2;
}
.tm-client-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px; padding: 40px 36px 36px;
  transition: transform var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
  position: relative; overflow: hidden;
}
.tm-client-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.08); }
.tm-client-card .tm-icon-circle { margin-bottom: 24px; }
.tm-client-card h3 {
  font-family: var(--ff-serif); font-weight: 500; font-size: 26px;
  color: #fff; margin: 0 0 18px; letter-spacing: -0.01em; line-height: 1.2;
}
.tm-client-card h3 em { font-style: italic; color: var(--tm-sky); font-weight: 500; }
.tm-client-card p { color: rgba(255,255,255,0.8); font-size: 14.5px; line-height: 1.75; margin: 0; }

/* Six pillars */
.tm-pillars-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.tm-pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.tm-pillars-grid::before {
  content: ""; position: absolute; top: 70px; left: 8%; right: 8%; height: 2px;
  background-image: linear-gradient(90deg, var(--tm-sky) 35%, transparent 35%);
  background-size: 14px 2px; background-repeat: repeat-x; opacity: 0.35; z-index: 0; pointer-events: none;
}
.tm-pillar {
  background: #fff; padding: 40px 36px; border-radius: 24px;
  border: 1px solid var(--warm-line); transition: all var(--dur-slow) var(--ease);
  position: relative; z-index: 1; overflow: hidden;
}
.tm-pillar::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(82,172,224,0.12) 50%, transparent 100%);
  transform: skewX(-20deg); transition: left 800ms var(--ease-out); pointer-events: none;
}
.tm-pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); }
.tm-pillar:hover::after { left: 130%; }
.tm-pillar:hover .tm-icon-circle { background: var(--tm-blue); color: #fff; border-color: var(--tm-blue); }
.tm-pillar .tm-icon-circle { margin-bottom: 22px; position: relative; z-index: 2; transition: all var(--dur-base) var(--ease); }
.tm-pillar .tm-num {
  font-family: var(--ff-micro); font-weight: 500; font-size: 10.5px;
  letter-spacing: 0.22em; color: var(--tm-blue); text-transform: uppercase; margin-bottom: 8px;
}
.tm-pillar h3 {
  font-family: var(--ff-serif); font-weight: 500; font-size: 22px;
  color: var(--tm-navy); margin: 0 0 12px; line-height: 1.2; position: relative; z-index: 2;
}
.tm-pillar p { font-size: 14.5px; line-height: 1.75; color: var(--neutral-600); margin: 0; position: relative; z-index: 2; }

/* ============================================================
   Team
   ============================================================ */
#team { background: var(--warm-bg); }
#team .tm-section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: end; margin-bottom: 64px; }
.tm-team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.tm-team-card { display: flex; flex-direction: column; }
.tm-team-card .tm-photo {
  aspect-ratio: 4/5; border-radius: 24px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, var(--tm-navy) 0%, var(--tm-blue) 100%);
  transition: transform var(--dur-slow) var(--ease);
}
.tm-team-card:hover .tm-photo { transform: translateY(-6px); }
.tm-team-card .tm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-team-card .role {
  font-family: var(--ff-sans); font-weight: 600; font-size: 11.5px;
  color: var(--tm-blue); text-transform: uppercase; letter-spacing: 0.18em; margin: 22px 0 6px;
}
.tm-team-card h4 { font-family: var(--ff-serif); font-weight: 500; font-size: 22px; color: var(--tm-navy); margin: 0 0 12px; line-height: 1.2; }
.tm-team-card p { font-family: var(--ff-sans); font-size: 13.5px; line-height: 1.7; color: var(--neutral-600); margin: 0 0 14px; }
.tm-team-creds { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-team-creds span {
  font-family: var(--ff-micro); font-size: 10.5px; letter-spacing: 0.12em;
  color: var(--tm-navy); background: var(--warm-soft); padding: 5px 10px; border-radius: 999px;
}

/* ============================================================
   Portfolio
   ============================================================ */
#portfolio { background: var(--warm-soft); }
#portfolio .tm-portfolio-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
#portfolio .tm-head-text { max-width: 640px; }
#portfolio .tm-head-text p { font-size: 18px; line-height: 1.7; margin-top: 18px; }
.tm-portfolio-arrows { display: flex; gap: 12px; align-items: center; }
.tm-arrow-btn {
  width: 56px; height: 56px; background: #fff;
  border: 1px solid var(--warm-line); border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--dur-base) var(--ease); color: var(--tm-navy);
}
.tm-arrow-btn:hover { background: var(--tm-navy); border-color: var(--tm-navy); color: #fff; transform: translateY(-2px); }
.tm-arrow-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.tm-arrow-btn:disabled:hover { background: #fff; color: var(--tm-navy); border-color: var(--warm-line); }
.tm-portfolio-track-wrap { position: relative; overflow: hidden; margin: 0 -48px; }
.tm-portfolio-track { display: flex; gap: 28px; padding: 0 48px; transition: transform 600ms var(--ease-out); will-change: transform; }
.tm-property-card {
  flex: 0 0 calc((1280px - 96px - 56px) / 3);
  cursor: pointer; transition: transform var(--dur-slow) var(--ease);
  background: transparent; display: flex; flex-direction: column;
}
.tm-property-card:hover { transform: translateY(-6px); }
.tm-property-card .img {
  position: relative; height: 380px; border-radius: 24px;
  background: var(--tm-navy); overflow: hidden;
}
.tm-property-card .img > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.tm-property-card:hover .img > img { transform: scale(1.04); }
.tm-property-card .img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13,24,40,0.5) 100%);
  z-index: 2; pointer-events: none;
}
.tm-property-card .tm-badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,0.94); color: var(--tm-navy);
  font-family: var(--ff-sans); font-weight: 600; font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; z-index: 3;
}
.tm-property-card .tm-badge.tm-opening { background: var(--tm-blue); color: #fff; }
.tm-property-card .body { padding: 24px 6px 0; }
.tm-property-card .sub {
  font-family: var(--ff-sans); font-weight: 600; font-size: 11.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--tm-blue); margin-bottom: 10px;
}
.tm-property-card .name {
  font-family: var(--ff-serif); font-weight: 500; font-size: 26px;
  color: var(--tm-navy); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 6px;
}
.tm-property-card .name em { font-style: italic; color: var(--tm-blue); font-weight: 500; }
.tm-property-card .meta {
  display: flex; gap: 18px; align-items: center;
  font-family: var(--ff-sans); font-size: 13.5px; color: var(--neutral-500); margin-top: 8px;
}
.tm-property-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.tm-property-card .meta svg { width: 14px; height: 14px; stroke: var(--neutral-500); }
.tm-carousel-progress {
  display: flex; align-items: center; gap: 16px; margin-top: 48px;
  font-family: var(--ff-micro); font-size: 13px; color: var(--neutral-500); letter-spacing: 0.08em;
}
.tm-carousel-progress-bar { flex: 1; max-width: 360px; height: 2px; background: var(--warm-line); position: relative; border-radius: 999px; overflow: hidden; }
.tm-carousel-progress-bar::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--cp, 0%); background: var(--tm-blue); transition: width var(--dur-base) var(--ease);
}

/* ============================================================
   Modal
   ============================================================ */
.tm-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(13,24,40,0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 24px;
}
.tm-modal-overlay.tm-open { display: flex; }
.tm-modal-box {
  background: #fff; max-width: 860px; width: 100%; max-height: 90vh; overflow-y: auto;
  border-radius: 32px; position: relative; animation: modalIn 280ms var(--ease-out);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: none; } }
.tm-modal-close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px;
  border-radius: 999px; background: rgba(255,255,255,0.94); color: var(--tm-navy);
  border: none; cursor: pointer; z-index: 10; transition: background var(--dur-base);
  display: flex; align-items: center; justify-content: center;
}
.tm-modal-close:hover { background: #fff; }
.tm-modal-img { height: 360px; background: linear-gradient(135deg, var(--tm-navy) 0%, var(--tm-blue) 100%); background-size: cover; background-position: center; border-radius: 32px 32px 0 0; }
.tm-modal-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.tm-modal-body { padding: 48px 56px 56px; }
.tm-modal-sub { font-family: var(--ff-sans); font-weight: 600; font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tm-blue); margin-bottom: 12px; }
.tm-modal-name { font-family: var(--ff-serif); font-weight: 500; font-size: 38px; color: var(--tm-navy); margin-bottom: 12px; letter-spacing: -0.015em; line-height: 1.1; }
.tm-modal-loc { display: flex; align-items: center; gap: 8px; font-family: var(--ff-sans); font-size: 14.5px; color: var(--neutral-500); margin-bottom: 32px; }
.tm-modal-loc svg { width: 14px; height: 14px; }
.tm-modal-meta-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid var(--warm-line); border-bottom: 1px solid var(--warm-line); margin-bottom: 32px; }
.tm-modal-meta-row .v { display: block; font-family: var(--ff-serif); font-size: 24px; font-weight: 500; color: var(--tm-navy); line-height: 1; margin-bottom: 8px; }
.tm-modal-meta-row .l { font-family: var(--ff-sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--neutral-500); }
.tm-modal-desc { font-family: var(--ff-sans); font-size: 15.5px; line-height: 1.8; color: var(--neutral-600); margin-bottom: 32px; }

/* ============================================================
   Partner / Contact
   ============================================================ */
#partner { padding: 0; background: #fff; }
.tm-partner-hero {
  background: var(--tm-navy); padding: 150px 0 130px;
  position: relative; overflow: hidden; color: #fff;
}
.tm-partner-hero > .tm-bg-photo img { opacity: 0.24; }
.tm-partner-hero > .tm-bg-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(22,49,80,0.92) 0%, rgba(22,49,80,0.7) 60%, rgba(22,49,80,0.45) 100%);
}
.tm-partner-hero::before, .tm-partner-hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: 1;
}
.tm-partner-hero::before { top: -100px; right: -100px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(82,172,224,0.18) 0%, transparent 70%); }
.tm-partner-hero::after { bottom: -160px; left: -160px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(26,122,190,0.16) 0%, transparent 70%); }
.tm-partner-hero > .tm-container { position: relative; z-index: 2; }
.tm-partner-hero-inner { position: relative; z-index: 2; max-width: 760px; }
.tm-partner-hero-inner .tm-display { color: #fff; margin: 0 0 22px; }
.tm-partner-hero-inner .tm-display em { font-style: italic; color: var(--tm-sky); }
.tm-partner-hero-inner p { font-size: 19px; line-height: 1.7; color: rgba(255,255,255,0.72); margin: 0 0 32px; max-width: 600px; }

.tm-partner-body { display: grid; grid-template-columns: 1fr 1.1fr; background: #fff; }
.tm-partner-left { padding: 100px 72px; background: var(--warm-soft); border-right: 1px solid var(--warm-line); }
.tm-partner-left h3 { font-family: var(--ff-serif); font-weight: 500; font-size: 32px; color: var(--tm-navy); margin: 0 0 24px; line-height: 1.15; }
.tm-partner-left h3 em { font-style: italic; color: var(--tm-blue); font-weight: 500; }
.tm-partner-left > p { font-size: 16px; line-height: 1.8; color: var(--neutral-600); margin-bottom: 48px; max-width: 460px; }
.tm-contact-refs { display: flex; flex-direction: column; }
.tm-contact-ref { padding: 22px 0; border-top: 1px solid var(--warm-line); display: grid; grid-template-columns: 44px 1fr auto; gap: 18px; align-items: center; }
.tm-contact-ref:last-child { border-bottom: 1px solid var(--warm-line); }
.tm-contact-ref .tm-icon-circle.sm { background: #fff; border-color: var(--warm-line); color: var(--tm-blue); }
.tm-cr-name { font-family: var(--ff-serif); font-size: 17px; font-weight: 500; color: var(--tm-navy); display: block; margin-bottom: 3px; }
.tm-cr-title { font-family: var(--ff-sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--neutral-500); }
.tm-cr-link { font-family: var(--ff-sans); font-size: 13.5px; color: var(--tm-blue); font-weight: 500; transition: color var(--dur-base); text-decoration: none; white-space: nowrap; }
.tm-cr-link:hover { color: var(--tm-navy); }

.tm-partner-form { padding: 100px 72px; background: #fff; }
.tm-partner-form h3 { font-family: var(--ff-serif); font-weight: 500; font-size: 32px; color: var(--tm-navy); margin: 0 0 12px; line-height: 1.15; }
.tm-partner-form h3 em { font-style: italic; color: var(--tm-blue); font-weight: 500; }
.tm-partner-form .tm-form-intro { font-family: var(--ff-sans); font-size: 14.5px; color: var(--neutral-600); margin-bottom: 32px; line-height: 1.7; max-width: 440px; }
.tm-fg { margin-bottom: 16px; position: relative; }
.tm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tm-form-row .tm-fg { margin-bottom: 0; }
.tm-fg label { display: block; font-family: var(--ff-sans); font-weight: 600; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tm-navy); margin-bottom: 8px; }
.tm-fg label .tm-opt { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--neutral-500); margin-left: 6px; }
.tm-fg label .tm-required { color: var(--tm-blue); margin-left: 4px; }
.tm-fg input, .tm-fg select, .tm-fg textarea {
  display: block; width: 100%; border: 1px solid var(--warm-line); background: #fafaf7;
  padding: 14px 16px; font-family: var(--ff-sans); font-size: 14.5px; color: var(--tm-navy);
  outline: none; border-radius: 14px; transition: all var(--dur-base) var(--ease);
}
.tm-fg input::placeholder, .tm-fg textarea::placeholder { color: var(--neutral-400); }
.tm-fg input:focus, .tm-fg select:focus, .tm-fg textarea:focus { border-color: var(--tm-blue); background: #fff; box-shadow: 0 0 0 4px rgba(33,64,154,0.10); }
.tm-fg input[aria-invalid="true"], .tm-fg select[aria-invalid="true"], .tm-fg textarea[aria-invalid="true"] { border-color: #B14545; box-shadow: 0 0 0 4px rgba(177,69,69,0.10); }
.tm-fg .tm-error-msg { display: none; font-size: 12px; color: #B14545; margin-top: 6px; font-weight: 500; }
.tm-fg input[aria-invalid="true"] ~ .tm-error-msg, .tm-fg select[aria-invalid="true"] ~ .tm-error-msg, .tm-fg textarea[aria-invalid="true"] ~ .tm-error-msg { display: block; }
.tm-fg textarea { resize: vertical; min-height: 100px; }
.tm-fg select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23163150' stroke-width='1.5' fill='none'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; padding-right: 38px;
}
.tm-btn-submit {
  width: 100%; padding: 18px; background: var(--tm-navy); color: #fff; border: none;
  border-radius: 999px; font-family: var(--ff-sans); font-size: 14.5px; font-weight: 600;
  cursor: pointer; margin-top: 18px; display: flex; align-items: center; justify-content: center;
  gap: 10px; transition: all var(--dur-base) var(--ease);
}
.tm-btn-submit:hover { background: var(--tm-blue); transform: translateY(-2px); }
.tm-btn-submit svg { transition: transform var(--dur-base); }
.tm-btn-submit:hover svg { transform: translateX(4px); }
.tm-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.tm-form-success { display: none; padding: 24px; background: var(--warm-soft); border-radius: 18px; margin-top: 20px; align-items: flex-start; gap: 16px; border-left: 3px solid var(--tm-blue); }
.tm-form-success.tm-show { display: flex; }
.tm-form-success .tm-icon-circle.sm { flex-shrink: 0; background: var(--tm-blue); border-color: var(--tm-blue); color: #fff; }
.tm-form-success h4 { font-family: var(--ff-serif); font-weight: 500; font-size: 18px; color: var(--tm-navy); margin: 0 0 6px; }
.tm-form-success p { font-size: 13.5px; color: var(--neutral-600); margin: 0; line-height: 1.6; }

/* ============================================================
   Footer
   ============================================================ */
.tm-site-footer {
  background: var(--tm-navy); color: rgba(255,255,255,0.75);
  padding: 88px 0 36px; border-radius: 32px 32px 0 0;
  position: relative; overflow: hidden;
}
.tm-site-footer::before {
  content: ""; position: absolute; top: -200px; left: 30%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(82,172,224,0.10) 0%, transparent 70%); pointer-events: none;
}
.tm-site-footer .tm-container { position: relative; z-index: 2; }
.tm-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.tm-footer-grid .tm-f-logo img { height: 64px; display: block; margin-bottom: 24px; }
.tm-footer-grid .tm-tagline-foot { font-family: var(--ff-display); text-transform: uppercase; letter-spacing: 0.02em; color: #fff; font-size: 19px; line-height: 1.35; margin: 0 0 24px; max-width: 360px; }
.tm-footer-grid .tm-contact-line { font-family: var(--ff-sans); font-size: 13.5px; line-height: 1.85; color: rgba(255,255,255,0.65); font-style: normal; }
.tm-footer-grid .tm-contact-line a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color var(--dur-base); }
.tm-footer-grid .tm-contact-line a:hover { color: #fff; }
.tm-footer-col h5 { font-family: var(--ff-sans); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--tm-sky); margin: 0 0 20px; }
.tm-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tm-footer-col a { font-family: var(--ff-sans); font-size: 14px; color: rgba(255,255,255,0.75); text-decoration: none; transition: color var(--dur-base) var(--ease); }
.tm-footer-col a:hover { color: #fff; }
.tm-footer-bottom, .tm-footer-bottom p { padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font-family: var(--ff-sans); font-size: 12px; color: #ffffff; }
.tm-footer-bottom p { padding-top: 0; display: block; }
.tm-footer-bottom a { color: #ffffff; text-decoration: none; transition: color var(--dur-base); }
.tm-footer-bottom a:hover { color: #fff; }
.tm-footer-bottom .tm-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.tm-footer-bottom .tm-equal { display: inline-flex; align-items: center; gap: 8px; }
.tm-footer-bottom .tm-equal svg { width: 20px; height: 20px; fill: #ffffff; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .tm-svc-atlas { grid-template-columns: 1fr; }
  .tm-svc-index { flex-direction: row; flex-wrap: wrap; padding: 16px; border-right: 0; border-bottom: 1px solid var(--warm-line); gap: 0; }
  .tm-svc-index-group { padding: 8px 12px; width: 100%; }
  .tm-svc-row { padding: 12px 14px; grid-template-columns: 28px 1fr 18px; gap: 10px; flex: 1 1 280px; }
  .tm-svc-row + .tm-svc-row { border-top: 0; }
  .tm-svc-row::before { top: auto; bottom: 0; transform: none; width: 0; height: 3px; left: 14px; right: 14px; }
  .tm-svc-row:hover::before, .tm-svc-row.tm-active::before { width: calc(100% - 28px); height: 3px; }
  .tm-svc-index-foot { display: none; }
  .tm-svc-detail, .tm-svc-panel { height: auto; min-height: 0; }
  .tm-svc-panel { grid-template-columns: 1fr; }
  .tm-svc-panel-image { min-height: 220px; max-height: 280px; height: 240px; }
  .tm-svc-panel-body { padding: 36px 32px; }
  .tm-svc-bignum { top: 24px; right: 28px; font-size: 64px; }
  .tm-about-stats { grid-template-columns: repeat(3, 1fr); }
  .tm-about-stat:nth-child(n+4) { border-top: 1px solid var(--warm-line); }
  .tm-pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .tm-pillars-grid::before { display: none; }
  .tm-team-grid { grid-template-columns: repeat(2, 1fr); }
  .tm-hero[data-variant="split"] .tm-hero-mini-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .tm-container { padding: 0 24px; }
  .tm-site-header { padding: 0 24px; height: 76px; }
  .tm-site-header.tm-scrolled { height: 64px; }
  .tm-site-header nav .tm-nav-link { display: none; }
  .tm-site-header .tm-nav-cta { margin-left: auto; }
  section { padding: 72px 0; }
  .tm-hero[data-variant="split"] { padding: 96px 0 0; }
  .tm-hero[data-variant="split"] .tm-hero-inner { grid-template-columns: 1fr; min-height: auto; padding-left: 0; gap: 32px; }
  .tm-hero[data-variant="split"] .tm-hero-left { padding: 16px 24px 24px; }
  .tm-hero[data-variant="split"] .tm-hero-right { min-height: 380px; border-radius: 32px 0 0 32px; }
  .tm-hero[data-variant="split"] .tm-hero-mini-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  #team .tm-section-head { grid-template-columns: 1fr; gap: 28px; }
  .tm-tagline-band, .tm-staat-ribbon, .tm-three-clients-wrap { padding-left: 16px; padding-right: 16px; }
  .tm-tagline-band-inner { padding: 56px 32px; grid-template-columns: 1fr; gap: 24px; }
  .tm-svc-row { flex: 1 1 100%; }
  .tm-about-stats { grid-template-columns: 1fr 1fr; }
  .tm-three-clients { padding: 64px 0; border-radius: 24px; }
  .tm-three-clients-grid { grid-template-columns: 1fr; padding: 0 24px; }
  .tm-pillars-grid, .tm-team-grid { grid-template-columns: 1fr; }
  #portfolio .tm-portfolio-head { flex-direction: column; align-items: flex-start; }
  .tm-property-card { flex: 0 0 80%; }
  .tm-property-card .img { height: 280px; }
  .tm-partner-hero { padding: 88px 0; }
  .tm-partner-body { grid-template-columns: 1fr; }
  .tm-partner-left, .tm-partner-form { padding: 64px 24px; border-right: none; }
  .tm-partner-left { border-bottom: 1px solid var(--warm-line); }
  .tm-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .tm-modal-body { padding: 32px 28px; }
  .tm-modal-name { font-size: 28px; }
  .tm-modal-meta-row { grid-template-columns: 1fr 1fr; }
  .tm-form-row { grid-template-columns: 1fr; gap: 0; }
  .tm-form-row .tm-fg { margin-bottom: 16px; }
  .tm-footer-bottom { flex-direction: column; gap: 18px; align-items: flex-start; }
}