:root {
  --navy: #061146;
  --accent: #2830C6;
  --muted: rgba(6,17,70,0.68);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #FEFDFD; color: var(--navy); font-family: var(--font); min-height: 100vh; }

#twm-gear { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; display: block; z-index: 0; background: #FEFDFD; }
/* Size to the largest viewport so the mobile address bar showing/hiding doesn't resize the canvas */
@supports (height: 100lvh) { #twm-gear { height: 100lvh; } }

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

.page { position: relative; z-index: 1; padding: 0 max(24px, 6vw); }

.top {
  display: flex; align-items: center; gap: clamp(24px, 3vw, 56px);
  height: clamp(120px, 9.5vw, 176px);
}
.top .logo { margin-right: auto; }
.top img { height: clamp(64px, 4.8vw, 104px); width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: clamp(24px, 2.8vw, 52px); }
.main-nav a {
  color: var(--navy); text-decoration: none; font-weight: 600;
  font-size: clamp(18px, 1.45vw, 26px); letter-spacing: -0.01em;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: currentColor; }

/* Language toggle: a two-segment pill, current language filled */
.lang-toggle {
  display: inline-flex; padding: 4px; gap: 2px; border-radius: 100px;
  border: 2px solid var(--accent); background: rgba(254,253,253,0.9);
  box-shadow: 0 6px 18px rgba(40,48,198,0.14);
}
.lang-toggle > * {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: clamp(44px, 3.4vw, 60px); padding: clamp(7px, 0.6vw, 11px) clamp(12px, 1vw, 18px);
  border-radius: 100px; font-size: clamp(15px, 1.15vw, 20px); font-weight: 700; letter-spacing: 0.06em;
  color: var(--accent); text-decoration: none; line-height: 1;
}
.lang-toggle .on { background: var(--accent); color: #FEFDFD; }
.lang-toggle a:hover { background: rgba(40,48,198,0.1); }

/* Text column: stays in the left half so it never runs into the gear */
.col { width: min(500px, 44vw); }

.hero { padding: 6vh 0 clamp(56px, 8vh, 96px); }
.hero h1 {
  margin: 0; font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.06; font-weight: 700; letter-spacing: -0.02em;
}
.hero h1 span { color: var(--accent); }
.item h3, .cta-h {
  margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em;
}

.lead { margin: 26px 0 32px; font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--muted); max-width: 460px; }

.btn {
  display: inline-flex; align-items: center; padding: 14px 26px; border-radius: 100px;
  background: var(--accent); color: #FEFDFD; font-weight: 600; font-size: 15px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(40,48,198,0.3); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(40,48,198,0.4); }

.eyebrow {
  display: inline-block; margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
}

.services { padding: 0 0 clamp(48px, 7vh, 88px); }
.item { padding: 30px 0 34px; border-top: 1px solid rgba(40,48,198,0.16); }
.item .num { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); }
.item p { margin: 14px 0 0; font-size: 1.02rem; line-height: 1.6; color: var(--muted); max-width: 440px; }

.cta { padding: 0 0 clamp(64px, 10vh, 120px); }

footer.foot {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  padding: 24px 0 40px; border-top: 1px solid rgba(40,48,198,0.16); font-size: 13px; color: rgba(6,17,70,0.7);
}
.foot-links { display: flex; gap: 18px; align-items: center; }
.foot-links a, .foot-links button {
  font: inherit; font-size: 13px; color: rgba(6,17,70,0.72);
  background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline;
}
.foot-links a:hover, .foot-links button:hover { color: var(--accent); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Narrow screens: the gear sits centred behind the content as a faint, always-present backdrop */
@media (max-width: 899px) {
  .col { width: 100%; max-width: 560px; }
  #twm-gear { opacity: 0.16; }
}


.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: var(--accent); color: #FEFDFD;
  font-weight: 600; font-size: 14px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.btn span[aria-hidden] { margin-left: 6px; }

/* Phones: logo and language toggle on the first row, page links on the second */
@media (max-width: 640px) {
  .top { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo lang" "nav nav"; height: auto; padding: 18px 0 8px; row-gap: 14px; }
  .top .logo { grid-area: logo; margin: 0; }
  .lang-toggle { grid-area: lang; }
  .main-nav { grid-area: nav; gap: 28px; }
  .main-nav a { font-size: 18px; }
  .top img { height: 54px; }
}

/* Cookie consent banner (js/analytics.js) */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between;
  padding: 16px 18px; border-radius: 16px;
  background: rgba(255,255,255,0.96); border: 1px solid rgba(40,48,198,0.18);
  box-shadow: 0 12px 32px rgba(6,17,70,0.16);
}
.consent p { margin: 0; flex: 1 1 260px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.consent a { color: var(--accent); text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; }
.consent-btn {
  font: inherit; font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 100px; cursor: pointer;
  background: transparent; color: var(--navy); border: 1px solid rgba(40,48,198,0.3);
}
.consent-btn.consent-accept { background: var(--accent); color: #FEFDFD; border-color: var(--accent); }

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

/* Services heading block and CTA topics */
.section-h { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
.section-sub { margin: 12px 0 22px; font-size: 1.05rem; line-height: 1.6; color: var(--muted); }
.topics { margin: -14px 0 28px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; color: var(--accent); max-width: 460px; }

/* Text pages (about, privacy, 404) */
.prose { padding: 4vh 0 clamp(56px, 8vh, 96px); }
.prose h1 { margin: 0 0 28px; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
.prose h2 { margin: 36px 0 10px; font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 700; }
.prose p { margin: 0 0 20px; font-size: clamp(1.02rem, 1.3vw, 1.15rem); line-height: 1.7; color: var(--muted); }
.prose p.intro { margin-bottom: 26px; font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.45; font-weight: 600; color: var(--navy); }
.prose .btn { margin-top: 12px; }
