﻿/* =====================================================================
   Syntivo – website styles (variant D)
   Everything is local: no external resources. Theme via html[data-theme].
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root, html[data-theme="light"] {
  --brand: #3765E3; --brand-rgb: 55,101,227; --brand-2: #53A9DC; --brand-ink: #1E3FA8;
  --bg: #ffffff; --bg-alt: #F5F7FB; --surface: #ffffff; --surface-glass: rgba(255,255,255,.80);
  --text: #0E1525; --muted: #5A6478; --line: #E3E8F0;
  --radius: 16px; --shadow: 0 1px 2px rgba(14,21,37,.04), 0 10px 30px rgba(14,21,37,.08);
  --header-h: 76px;
  --container-max: 1200px;
  --gutter: clamp(16px, 5vw, 48px);
}
html[data-theme="dark"] {
  --brand: #6B8FF0; --brand-rgb: 107,143,240; --brand-2: #6CC0EE; --brand-ink: #A9BEFA;
  --bg: #07090E; --bg-alt: #0E121A; --surface: #121722; --surface-glass: rgba(18,23,34,.74);
  --text: #E8ECF4; --muted: #9AA4B8; --line: #232C3D;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.4);
  --bg-img: url(/Images/opt/bg-dark-1080.jpg);
  --bg-img-2: url(/Images/opt/bg-dark-2-1080.jpg);
}
@media (min-width: 1100px) {
  html[data-theme="dark"] { --bg-img: url(/Images/opt/bg-dark-1920.jpg); --bg-img-2: url(/Images/opt/bg-dark-2-1920.jpg); }
}
/* Very wide or high-resolution screens: full-resolution backgrounds */
@media (min-width: 1921px), (min-width: 1100px) and (min-resolution: 1.5dppx) {
  html[data-theme="dark"] { --bg-img: url(/Images/opt/bg-dark-2160.jpg); --bg-img-2: url(/Images/opt/bg-dark-2-2160.jpg); }
}
/* Large monitors: wider content area (running text keeps a readable line length via max-width in ch) */
@media (min-width: 1600px) { :root { --container-max: 1440px; } }

/* Bind MudBlazor colors to the theme (works before the server connection is established) */
html[data-theme] {
  --mud-palette-primary: var(--brand); --mud-palette-primary-rgb: var(--brand-rgb); --mud-palette-primary-text: #fff;
  --mud-palette-background: var(--bg); --mud-palette-background-gray: var(--bg-alt);
  --mud-palette-surface: var(--surface); --mud-palette-drawer-background: var(--surface); --mud-palette-drawer-text: var(--text);
  --mud-palette-text-primary: var(--text); --mud-palette-text-secondary: var(--muted);
  --mud-palette-lines-default: var(--line); --mud-palette-divider: var(--line); --mud-palette-action-default: var(--muted);
  --mud-typography-default-family: 'Roboto', system-ui, sans-serif;
}
html[data-theme="dark"] { --mud-palette-primary-text: #07090E; --mud-palette-overlay-dark: rgba(0,0,0,.6); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
html[data-theme] body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Roboto', system-ui, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .3s, color .3s; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.site h1, .site h2, .site h3, .site p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
/* Blazor (FocusOnNavigate) focuses the h1 via script after every navigation (tabindex="-1"):
   good for screen readers, but no visible focus ring should appear there */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
.logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 1200; color: #fff; transition: background .3s, box-shadow .3s, color .3s; }
.header.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); color: var(--text); }
.header .bar { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.header .logo img { height: 58px; width: auto; }
.header:not(.scrolled) .logo-light { display: none; }
.header:not(.scrolled) .logo-dark { display: block; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 14px; border-radius: 999px; opacity: .85; white-space: nowrap; }
.nav a:hover { background: color-mix(in srgb, currentColor 10%, transparent); opacity: 1; }
.nav a.active { opacity: 1; background: color-mix(in srgb, currentColor 14%, transparent); }
.icon-btn { width: 42px; height: 42px; border-radius: 999px; border: 0; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn .ico-sun { display: none; }
html[data-theme="dark"] .icon-btn .ico-sun { display: block; }
html[data-theme="dark"] .icon-btn .ico-moon { display: none; }
.menu-btn { display: none; }
@media (max-width: 880px) { .nav { display: none; } .menu-btn { display: grid; } .theme-btn { margin-left: auto; } .header .logo img { height: 48px; } }

/* Mobile menu */
.drawer { position: fixed; inset: 0; z-index: 1300; visibility: hidden; transition: visibility 0s .3s; }
.drawer.open { visibility: visible; transition: none; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; }
.drawer.open .scrim { opacity: 1; }
.drawer .panel { position: absolute; top: 0; right: 0; height: 100%; width: min(320px, 85vw); padding: 24px; padding-top: calc(var(--header-h) + 8px); background: var(--surface); color: var(--text); transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; gap: 6px; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.drawer.open .panel { transform: none; }
.drawer .panel a { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 14px 12px; border-radius: 12px; font-weight: 500; font-size: 1.08rem; }
.drawer .panel a svg { opacity: .7; flex: none; }
.drawer .panel a:hover, .drawer .panel a.active { background: var(--bg-alt); }
.drawer .panel a.active { color: var(--brand); }
.drawer .close { position: absolute; top: 17px; right: 16px; color: var(--text); }

/* ---------- Hero with carousel ---------- */
.hero, .page-hero { position: relative; display: grid; color: #fff; overflow: hidden; isolation: isolate; background: #0B0F17; }
.hero { min-height: 100svh; align-items: center; }
.slides { position: absolute; inset: 0; z-index: -2; }
/* Crossfade: the new image (active) fades in ON TOP of the fully visible old image (prev).
   Both keep the same zoom animation – it continues without restarting when switching active → prev,
   so the old image does not snap back. Linear zoom = steady motion without slowing down. */
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 0; transform: scale(1); transition: opacity 1.6s cubic-bezier(.4,0,.2,1); will-change: opacity, transform; backface-visibility: hidden; }
.slides img.prev { opacity: 1; z-index: 1; transition: none; }
.slides img.active { opacity: 1; z-index: 2; }
.slides img.active, .slides img.prev { animation: kenburns 8s linear both; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 50% at 20% 10%, rgba(55,101,227,.45), transparent 70%),
              radial-gradient(ellipse 50% 40% at 90% 30%, rgba(83,169,220,.30), transparent 70%),
              linear-gradient(180deg, rgba(7,9,14,.55) 0%, rgba(7,9,14,.45) 45%, rgba(7,9,14,.85) 100%); }
.hero .container { padding-block: calc(var(--header-h) + 40px) 150px; text-align: center; }
.hero .mud-chip.badge { display: inline-flex; align-items: center; gap: 10px; height: auto; margin: 0; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .85rem; white-space: normal; }
.hero .mud-chip.badge b { background: #3765E3; color: #fff; padding: 3px 10px; border-radius: 999px; font-weight: 500; font-size: .75rem; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 4.8rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; max-width: 17ch; margin: 24px auto 0; text-wrap: balance; }
.grad { background: linear-gradient(90deg, #8FB0FF 0%, #7FD3FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); font-weight: 300; max-width: 56ch; margin: 22px auto 0; opacity: .92; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .actions { justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font: 500 1rem/1.2 'Roboto', system-ui, sans-serif; text-decoration: none; border: 1px solid transparent; background: none; color: inherit; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #3765E3; color: #fff; box-shadow: 0 8px 28px rgba(55,101,227,.4); }
.btn-primary:hover { background: #2C55C9; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-outline { border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.hero-stats { position: absolute; left: 50%; bottom: 32px; translate: -50% 0; display: flex; padding: 6px; border-radius: 20px; border: 1px solid rgba(255,255,255,.18); background: rgba(10,14,24,.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hero-stats div { padding: 10px 22px; text-align: center; }
.hero-stats div + div { border-left: 1px solid rgba(255,255,255,.12); }
.hero-stats strong { display: block; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-stats div > span { font-size: .78rem; opacity: .75; }
.dots { position: absolute; right: clamp(16px, 5vw, 48px); bottom: 48px; display: flex; gap: 8px; }
.dots span { width: 28px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.dots span.active::after { content: ""; display: block; height: 100%; background: #fff; animation: fill 6s linear both; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
@media (max-width: 720px) {
  .hero { align-items: end; }
  .hero .container { padding-bottom: 32px; }
  .hero-stats { position: relative; left: auto; bottom: auto; translate: none; margin: 0 16px 24px; justify-content: space-around; }
  .hero-stats div { padding: 8px 6px; }
  .hero-stats strong { font-size: 1.3rem; }
  .dots { display: none; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero .container { padding-bottom: 32px; }
  .hero-stats { position: relative; left: auto; bottom: auto; translate: none; margin: 0 auto 24px; width: max-content; }
}

/* Subpage hero */
.page-hero { min-height: 88svh; align-items: end; }
.page-hero.compact { min-height: 60svh; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,9,14,.45) 0%, rgba(7,9,14,.25) 40%, rgba(7,9,14,.85) 100%); }
.page-hero .container { padding-block: calc(var(--header-h) + 64px) clamp(48px, 8vw, 96px); display: flex; flex-wrap: wrap; gap: 24px; align-items: end; justify-content: space-between; }
.page-hero h1 { font-size: clamp(3rem, 12vw, 9.5rem); line-height: .92; letter-spacing: -.055em; font-weight: 700; }
.page-hero.compact h1 { font-size: clamp(2.6rem, 9vw, 6rem); }
.page-hero p { font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 300; max-width: 26ch; text-align: right; }
.page-hero p strong { font-weight: 500; }
@media (max-width: 700px) { .page-hero p { text-align: left; } }
@media (max-height: 560px) and (orientation: landscape) { .page-hero, .page-hero.compact { min-height: 100svh; } }

/* ---------- Marquee ---------- */
.marquee { border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding-block: 18px; background: var(--bg); }
.marquee div { display: inline-flex; gap: 48px; animation: scroll 32s linear infinite; font-size: clamp(1rem, 1.8vw, 1.35rem); font-weight: 300; color: var(--muted); }
.marquee b { color: var(--text); font-weight: 500; }
.marquee i { font-style: normal; color: var(--brand); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.site section { padding-block: clamp(72px, 10vw, 136px); position: relative; }
.alt { background: var(--bg-alt); }
.kicker { color: var(--brand); font-weight: 500; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; }
.site h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; margin-top: 10px; text-wrap: balance; }
.sub { color: var(--muted); font-size: 1.08rem; max-width: 60ch; margin-top: 14px; }
.center { text-align: center; } .center .sub, .center h2 { margin-inline: auto; }

.sec-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: end; }
.sec-num { font-size: clamp(4rem, 10vw, 8rem); font-weight: 700; line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--brand) 45%, var(--line)); user-select: none; }
/* MudGrid Spacing=12 pulls itself up by 48px: 8px + 48px item padding = 56px gap below the heading */
.mud-grid.intro { margin-top: 8px; }
.intro .big { font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.55; font-weight: 300; }
.intro .big b { font-weight: 500; color: var(--brand); }
.intro .col { color: var(--muted); } .intro .col b { color: var(--text); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips .mud-chip.chip { height: auto; margin: 0; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand-ink); font-size: .88rem; font-weight: 500; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* Value cards (MudGrid Spacing=5 = 20px gutter, cards stretch to equal height) */
.mud-grid.grid-values { margin-top: 28px; }
.grid-values > .mud-grid-item { display: flex; }
.grid-values .card { flex: 1; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); overflow: hidden; transition: border-color .25s, transform .25s, box-shadow .25s; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.card:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); transform: translateY(-4px); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); transition: transform .3s; }
.card:hover .ico { transform: rotate(-6deg) scale(1.06); }
.card h3 { font-size: 1.18rem; font-weight: 500; margin-top: 20px; line-height: 1.35; }
.card p { color: var(--muted); font-size: .96rem; margin-top: 10px; }

/* ---------- Section backgrounds: fixed layer + wave edges ----------
   The background is a position:fixed layer, so the content scrolls over a standing background
   (works on mobile too, unlike background-attachment: fixed). The section is masked with wave
   shapes at the top and bottom and overlaps its neighbours by the wave height, so the wave
   flows directly into whatever is above/below (hero image, white or grey section).
   The mask also clips the fixed layer to the section. */
.bg-section, .bg-section-2 {
  --wave-h: clamp(36px, 6vw, 90px);
  --wave-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 64C180 22 360 44 720 72C1080 100 1260 80 1440 42V100H0Z'/%3E%3C/svg%3E");
  --wave-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 34C240 78 480 68 720 34C960 0 1200 4 1440 44V0H0Z'/%3E%3C/svg%3E");
  position: relative; z-index: 1; isolation: isolate;
  margin-block: calc(-1 * var(--wave-h));
  -webkit-mask: var(--wave-top) top / 100% var(--wave-h) no-repeat, linear-gradient(#000 0 0) center / 100% calc(100% - 2 * var(--wave-h) + 2px) no-repeat, var(--wave-bottom) bottom / 100% var(--wave-h) no-repeat;
          mask: var(--wave-top) top / 100% var(--wave-h) no-repeat, linear-gradient(#000 0 0) center / 100% calc(100% - 2 * var(--wave-h) + 2px) no-repeat, var(--wave-bottom) bottom / 100% var(--wave-h) no-repeat;
}
.site section.bg-section, .site section.bg-section-2 { padding-block: calc(clamp(72px, 10vw, 136px) + var(--wave-h)); }
.bg-section::after, .bg-section-2::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--layer-1); }
.bg-section-2::after { background: var(--layer-2); }
.bg-section > *, .bg-section-2 > * { position: relative; }
/* A background section at the very top of a page (privacy) has nothing to overlap above it */
.site section.legal-top { margin-top: 0; }
/* ...and one at the very bottom must not overlap the footer: the masked wave is invisible
   there, but the section would still sit on top of the footer and swallow its link clicks */
main > .bg-section:last-child, main > .bg-section-2:last-child { margin-bottom: 0; }

/* Dark theme: the two dark images */
html[data-theme="dark"] { --layer-1: #07090E var(--bg-img) center / cover no-repeat; --layer-2: #07090E var(--bg-img-2) center / cover no-repeat; }
/* Dark theme: let the image fade into near-black towards the wave edges, so the wave meets almost
   the same tone as the neighbour section and the transition looks smooth instead of cut */
html[data-theme="dark"] .bg-section::before, html[data-theme="dark"] .bg-section-2::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #07090E 0%, rgba(7,9,14,.85) calc(var(--wave-h) * 1.2), rgba(7,9,14,0) calc(var(--wave-h) * 3.5),
                                      rgba(7,9,14,0) calc(100% - var(--wave-h) * 3.5), rgba(7,9,14,.85) calc(100% - var(--wave-h) * 1.2), #07090E 100%);
}

/* Light theme: softly moving aurora (blue, light blue, a touch of violet) */
:root, html[data-theme="light"] {
  --layer-1: radial-gradient(circle at 18% 28%, rgba(55,101,227,.42), transparent 38%),
             radial-gradient(circle at 82% 32%, rgba(83,169,220,.45), transparent 36%),
             radial-gradient(circle at 55% 88%, rgba(122,90,240,.26), transparent 38%), #F4F7FE;
  --layer-2: radial-gradient(circle at 80% 24%, rgba(55,101,227,.40), transparent 38%),
             radial-gradient(circle at 16% 70%, rgba(83,169,220,.42), transparent 36%),
             radial-gradient(circle at 60% 50%, rgba(122,90,240,.20), transparent 40%), #F4F7FE;
}
html[data-theme="light"] .bg-section::after, html[data-theme="light"] .bg-section-2::after {
  inset: -15%; filter: blur(50px); animation: aurora-drift 24s ease-in-out infinite alternate; will-change: transform;
}
@keyframes aurora-drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4%, -3%) scale(1.06); } 100% { transform: translate(-4%, 3%) scale(1); } }
html[data-theme="light"] .bg-section .tl-card, html[data-theme="light"] .bg-section-2 .slide,
html[data-theme="light"] .bg-section-2 .logo-card { --surface-glass: rgba(255,255,255,.72); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 64px; }
.timeline .rail { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; translate: -50% 0; background: color-mix(in srgb, var(--muted) 30%, transparent); border-radius: 2px; }
.timeline .rail i { position: absolute; inset: 0 0 auto; height: var(--progress, 0%); background: linear-gradient(180deg, var(--brand-2), var(--brand)); border-radius: 2px; box-shadow: 0 0 12px var(--brand); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: start; }
.tl-item + .tl-item { margin-top: clamp(16px, 3vw, 32px); }
.tl-dot { grid-column: 2; grid-row: 1; justify-self: center; margin-top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid color-mix(in srgb, var(--muted) 50%, transparent); transition: all .4s cubic-bezier(.2,.8,.2,1); z-index: 1; }
.tl-card { grid-column: 1; grid-row: 1; background: var(--surface-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; text-align: right; transition: opacity .45s, transform .45s cubic-bezier(.2,.8,.2,1), border-color .45s, box-shadow .45s; opacity: .62; transform: scale(.97); transform-origin: right center; cursor: pointer; color: var(--text); font: inherit; width: 100%; }
.tl-item:nth-of-type(even) .tl-card { grid-column: 3; text-align: left; transform-origin: left center; }
.tl-card .n { font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .08em; transition: color .3s; }
.tl-card h3 { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 500; line-height: 1.3; margin-top: 4px; transition: color .3s, font-size .3s; }
.tl-card .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2,.8,.2,1); }
.tl-card .body > div { overflow: hidden; }
.tl-card .content { margin-top: 16px; text-align: left; color: var(--muted); font-size: .95rem; }
.tl-card .content b, .tl-card .content strong { color: var(--text); font-weight: 500; }
.tl-card .content br + br { display: none; }
/* Lists coming from the resources: <b>Title:</b> text <br/> */
.tl-card .content.list b, .tl-card .content.list strong { display: block; position: relative; padding-left: 26px; margin-top: 12px; }
.tl-card .content.list b:first-child, .tl-card .content.list strong:first-child { margin-top: 0; }
.tl-card .content.list b::before, .tl-card .content.list strong::before { content: ""; position: absolute; left: 0; top: .3em; width: 14px; height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--brand) 18%, transparent); box-shadow: inset 0 0 0 2px var(--brand); }
.tl-card .content.list { padding-left: 0; }
.tl-card .content.list br { display: none; }
.tl-item.active .tl-dot { width: 26px; height: 26px; margin-top: 21px; background: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, transparent); box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand) 18%, transparent), 0 0 24px var(--brand); }
.tl-item.active .tl-card { opacity: 1; transform: none; border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: var(--shadow); }
.tl-item.active .tl-card .n, .tl-item.active .tl-card h3 { color: var(--brand); }
.tl-item.active .tl-card h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.tl-item.active .tl-card .body { grid-template-rows: 1fr; }
@media (max-width: 760px) {
  .timeline .rail { left: 13px; translate: none; }
  .tl-item { grid-template-columns: 28px 1fr; gap: 14px; }
  .tl-dot { grid-column: 1; }
  .tl-card, .tl-item:nth-of-type(even) .tl-card { grid-column: 2; text-align: left; transform-origin: left center; }
  .tl-card { padding: 18px 20px; }
}

/* ---------- Contact ---------- */
.cta { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 6vw, 72px); background: linear-gradient(135deg, #3765E3 0%, #2A4DB8 55%, #172A6B 100%); color: #fff; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(127,211,255,.45), transparent 70%); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.site .cta h2 { color: #fff; margin: 0; }
.cta p { opacity: .85; margin-top: 10px; max-width: 50ch; }

/* ---------- About us ---------- */
.mud-grid.split { align-items: center; }
.split .text { color: var(--muted); margin-top: 16px; max-width: 70ch; }
.mud-link.mail { color: var(--brand); font-weight: 500; font-size: 1.1rem; text-decoration: none; border-bottom: 2px solid currentColor; }
.logo-card { background: var(--surface-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow); }

.people { display: grid; gap: clamp(56px, 8vw, 96px); margin-top: 64px; }
.mud-grid.person { align-items: center; }
@media (min-width: 960px) { .person.flip .photo-item { order: 2; } }
.person .photo { position: relative; isolation: isolate; max-width: 380px; width: 100%; margin-inline: auto; }
/* Show the whole 3:4 portrait: a square crop cut off the top of the head */
.person .photo img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; object-position: center top; border-radius: 20px; }
.person .photo::after { content: ""; position: absolute; inset: auto -14px -14px auto; width: 45%; height: 45%; border-radius: 20px; border: 2px solid var(--brand); z-index: -1; }
.person.flip .photo::after { inset: auto auto -14px -14px; }
.person .role { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); font-weight: 500; }
.site .person h3 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -.03em; line-height: 1.05; margin-top: 12px; }
.person p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
/* Stacked layout: keep the portrait small so name and text stay close to it (14px room for the frame) */
@media (max-width: 959px) { .person .photo { max-width: min(260px, calc(100% - 14px)); margin-left: 0; } }

/* Employee cards below the founders (MudGrid Spacing=5 = 20px gutter, equal height) */
.team-sub { margin-top: clamp(72px, 10vw, 120px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); max-width: 640px; }
.team-sub .kicker { color: var(--brand); }
.site .team-sub h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; line-height: 1.1; margin-top: 8px; }
.team-sub .lead { color: var(--muted); margin-top: 12px; }
.mud-grid.grid-team { margin-top: 28px; }
.grid-team > .mud-grid-item { display: flex; }
.card.member { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.member .photo { position: relative; isolation: isolate; width: calc(100% - 10px); max-width: 200px; }
.member .photo img, .member .mono { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; border-radius: 16px; display: block; }
.member .photo::after { content: ""; position: absolute; inset: auto -10px -10px auto; width: 45%; height: 45%; border-radius: 16px; border: 2px solid var(--brand); z-index: -1; transition: transform .3s; }
.member:hover .photo::after { transform: translate(3px, 3px); }
.member .mono { display: grid; place-items: center; font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.04em; color: var(--brand); user-select: none;
  background: radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 60%), color-mix(in srgb, var(--brand) 12%, var(--surface)); }
.member .body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.member .role { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); font-weight: 500; }
.site .member h4 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -.02em; line-height: 1.15; margin-top: 8px; }
.member .bio { color: var(--muted); margin-top: 10px; }
.member .chips { margin-top: 16px; }
.member .mud-button-root.more, .member .mud-button-root.more:hover { align-self: flex-start; margin-top: auto; padding: 16px 0 0; min-width: 0; border: 0; background: none; color: var(--brand); font: 500 .95rem 'Roboto', sans-serif; }
/* Side-by-side layout when the card is wide enough (container = grid item) */
.grid-team > .mud-grid-item { container-type: inline-size; }
@container (min-width: 500px) {
  .card.member { flex-direction: row; align-items: flex-start; }
  .member .photo { flex: 0 0 38%; max-width: 220px; }
}

/* Project carousel */
.slider { margin-top: 48px; position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 86%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container-max)) / 2 + 48px)); padding: 4px max(var(--gutter), calc((100vw - var(--container-max)) / 2 + 48px)) 24px; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; background: var(--surface-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; transition: border-color .3s, transform .3s; }
.slide:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-3px); }
.slide .mud-chip.tag { align-self: flex-start; height: auto; margin: 0; font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); padding: 4px 10px; border-radius: 999px; }
.site .slide h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.3; letter-spacing: -.01em; margin-top: 16px; }
.slide .excerpt { color: var(--muted); margin-top: 12px; flex: 1; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.slide .mud-button-root.more, .slide .mud-button-root.more:hover { align-self: flex-start; margin-top: 12px; padding: 0; min-width: 0; border: 0; background: none; color: var(--brand); font: 500 .95rem 'Roboto', sans-serif; }
.slide .result { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 12px; }
.slide .result strong { font-size: 1.8rem; color: var(--brand); letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.slide .result span { color: var(--muted); font-size: .9rem; }
.slider-nav { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.slider-nav .sdots { display: flex; gap: 8px; margin-right: auto; }
.slider-nav .sdots button { width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--muted) 40%, transparent); transition: width .3s, background .3s; cursor: pointer; }
.slider-nav .sdots button.on { width: 28px; background: var(--brand); }
.slider-nav .sdots button[hidden] { display: none; }
/* The last card snaps to the end so the final scroll position is a real snap point */
.slide:last-child { scroll-snap-align: end; }
.mud-button-root.round { width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.mud-button-root.round:hover { border-color: var(--brand); color: var(--brand); background: var(--surface); }
.mud-button-root.round:disabled { opacity: .35; cursor: default; border-color: var(--line); color: var(--text); }

/* ---------- Legal pages (imprint/privacy) ---------- */
.legal { max-width: 860px; }
.legal-top { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)) !important; }
.prose { color: var(--muted); font-size: 1.02rem; }
.prose h2 { color: var(--text); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 48px !important; }
.prose h2:first-child { margin-top: 0 !important; }
.prose h3 { color: var(--text); font-size: 1.15rem; font-weight: 500; margin-top: 32px !important; margin-bottom: 8px !important; }
.prose p { margin-top: 8px !important; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--brand); }
.prose .address { background: var(--surface-glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-top: 16px !important; }
/* Sections: consistent spacing, heading sits right above its content */
.legal-block + .legal-block { margin-top: clamp(40px, 6vw, 64px); }
.legal-block > h2 { margin: 0 0 16px !important; }
.legal-block > p { margin-top: 0 !important; line-height: 1.75; }
.legal-block .note { font-size: .9rem; padding-top: 24px; border-top: 1px solid var(--line); }
/* Imprint details as a card with clearly separated blocks */
.imprint-card { margin-top: 8px; padding: clamp(22px, 4vw, 36px); background: var(--surface-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius); }
.imprint-item { display: flex; flex-direction: column; gap: 2px; line-height: 1.55; min-width: 0; overflow-wrap: anywhere; }
.imprint-item .label { font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; color: var(--brand); margin-bottom: 4px; }
.imprint-item .mud-typography-body1 { line-height: 1.55; }
.imprint-item .label ~ .label { margin-top: 14px; }
.imprint-item strong { font-size: 1.1rem; margin-bottom: 4px; }
.imprint-company { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.page-title { font-size: clamp(2.2rem, 6vw, 4rem) !important; letter-spacing: -.04em; line-height: 1.05; font-weight: 700; color: var(--text); margin-bottom: 40px !important; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: .9rem; background: var(--bg); }
.footer .row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; gap: 24px; }
.footer a { text-decoration: none; font-size: inherit; } .footer a:hover { color: var(--text); }
.footer .tm { font-size: .78rem; margin-top: 16px; opacity: .8; }

/* Error/reload notice */
.reload { padding: calc(var(--header-h) + 48px) 24px 48px; text-align: center; }

/* MudBlazor fine-tuning */
.mud-dialog { border-radius: 20px !important; border: 1px solid var(--line); }
.mud-dialog .mud-dialog-content { color: var(--muted); }
.mud-scroll-to-top { z-index: 1100; }
.mud-scroll-to-top .mud-fab { background: var(--brand) !important; color: #fff !important; }

/* MudAppBar as the site header: transparent over the hero, solid once scrolled (class set by site.js) */
.mud-appbar.header { position: fixed; inset: 0 0 auto; margin-left: 0; width: 100%; z-index: 1200; background: transparent; color: #fff; box-shadow: none; transition: background .3s, box-shadow .3s, color .3s; }
.mud-appbar.header.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); box-shadow: 0 1px 0 var(--line); color: var(--text); }
.mud-appbar.header .mud-toolbar { height: auto; min-height: 0; padding: 0; }
.mud-icon-button.icon-btn { padding: 0; }

/* MudButton with the pill design (higher specificity than MudBlazor's variant/hover rules) */
.mud-button-root.btn { padding: 14px 24px; border: 1px solid transparent; border-radius: 999px; font: 500 1rem/1.2 'Roboto', system-ui, sans-serif; letter-spacing: normal; text-transform: none; min-width: 0; }
.mud-button-root.btn.btn-primary { background: #3765E3; color: #fff; box-shadow: 0 8px 28px rgba(55,101,227,.4); }
.mud-button-root.btn.btn-primary:hover { background: #2C55C9; }
.mud-button-root.btn.btn-ghost, .mud-button-root.btn.btn-ghost:hover { border: 1px solid rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.06); }
.mud-button-root.btn.btn-outline { border: 1px solid var(--line); color: var(--text); background: transparent; }
.mud-button-root.btn.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: transparent; }
.mud-button-root.btn.btn-light, .mud-button-root.btn.btn-light:hover { background: #fff; color: #172A6B; }

/* ---------- Scroll-in animations ---------- */
/* A keyframe animation instead of a transition: site.js can resume it at the right point via a
   negative animation-delay when Blazor swaps the prerendered HTML (a transition would restart or
   jump to the end). Only the start state is defined, the end is the element's own style. */
html.js .fx { opacity: 0; }
.fx-up { --fx-from: translateY(32px); } .fx-down { --fx-from: translateY(-24px); }
.fx-left { --fx-from: translateX(-40px); } .fx-right { --fx-from: translateX(40px); }
.fx-zoom { --fx-from: scale(.94); }
html.js .fx.in { opacity: 1; animation: fx-in .9s cubic-bezier(.2,.8,.2,1) var(--d, 0s) backwards; }
@keyframes fx-in { from { opacity: 0; transform: var(--fx-from, none); } }
/* Only show numbers once the script has taken over (no brief flash of the final value) */
html.js [data-count]:not([data-live]) { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .fx { opacity: 1; animation: none !important; }
  .slides img { transition: none; }
  .slides img.active, .slides img.prev, .dots span.active::after, .marquee div,
  html[data-theme="light"] .bg-section::after, html[data-theme="light"] .bg-section-2::after { animation: none; }
  .tl-card, .tl-card .body, .tl-dot, .card, .card .ico, .btn { transition: none; }
}
