/* =========================================================
   Think Deeply — visual theme
   Loaded after main.css. Content/markup is untouched; this
   file only re-skins colour, type, shape and spacing.
   ========================================================= */

html:root {
  --font-family: "Instrument Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Instrument Sans", "Inter", system-ui, sans-serif;

  --color-bg: #f3f4fa;
  --color-surface: #ffffff;
  --color-text: #0b1033;
  --color-text-dark: #0b1033;
  --color-text-description: rgba(11, 16, 51, 0.74);
  --color-text-light: #ffffff;
  --color-primary: #3340f2;
  --color-secondary: #0b1033;
  --color-accent: #ffc247;
  --color-line: rgba(11, 16, 51, 0.09);

  --b-radius: 16px;
  --shadow: 0 1px 0 rgba(11, 16, 51, 0.04), 0 14px 34px -16px rgba(11, 16, 51, 0.22);
  --shadow-1: 0 40px 70px -36px rgba(11, 16, 51, 0.38);

  --td-gutter: clamp(10px, 2vw, 28px);
  --td-radius: clamp(24px, 3.2vw, 44px);
  --td-ink-grad: linear-gradient(135deg, #1a2370 0%, #0b1033 62%);
}

/* ---------- base ---------- */
html body {
  font-family: var(--font-family);
  font-size: 17px;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html body p,
html body li,
html body label,
html body address {
  line-height: 1.62;
}
html body .g-a92096b4,
html body .g-bbc916f1 { font-size: clamp(1rem, 0.25vw + 0.94rem, 1.1rem); font-weight: 400; line-height: 1.65; }
html body .g-856a3f93 { font-size: 0.95rem; line-height: 1.6; }
html body .g-8a05dcf9 { font-size: clamp(1.05rem, 0.3vw + 0.98rem, 1.22rem); line-height: 1.5; font-weight: 500; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.028em;
  font-stretch: 92%;
  text-wrap: balance;
}
html body .g-aed4f5de { font-size: clamp(2.5rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.02; font-weight: 700; letter-spacing: -0.04em; }
html body .g-81a7c411 { font-size: clamp(2rem, 2.6vw + 0.9rem, 3.1rem); line-height: 1.06; font-weight: 650; letter-spacing: -0.035em; }
html body .g-ffe89e68 { font-size: clamp(1.45rem, 1vw + 1.1rem, 1.9rem); line-height: 1.15; font-weight: 650; letter-spacing: -0.03em; }
html body .g-c97bb80a { font-size: clamp(1.25rem, 0.6vw + 1.1rem, 1.55rem); line-height: 1.2; font-weight: 650; }
html body h3.title,
html body .g-8a05dcf9[class*="title"] { font-family: var(--font-display); font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; }
p { text-wrap: pretty; }

::selection { background: var(--color-accent); color: #0b1033; }
a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
html body .td-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 244, 250, 0.8);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: none;
  border-bottom: 1px solid var(--color-line);
}
.td-brand { gap: 12px; }
.td-brand > span { display: inline-flex; margin: 0; font-size: 0; line-height: 0; }
.td-logo {
  width: 40px; height: 40px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 18px -8px rgba(51, 64, 242, 0.8);
}
.td-brand em, .td-brand span + span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: -0.045em;
  font-style: normal;
}
.td-header ul a,
.td-header ul div {
  font-size: 0.97rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.td-header a { transition: background-color 0.2s, color 0.2s; }
.td-header li > a:hover { background: rgba(51, 64, 242, 0.09); color: var(--color-text); }
.td-header a > span:empty { transition: background-color .2s; }
.td-header .td-active > span:empty { background-color: var(--color-accent) !important; box-shadow: 0 0 0 3px rgba(255, 194, 71, 0.28); }
html body .td-header ul ul {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 20px !important;
  box-shadow: 0 30px 60px -24px rgba(11, 16, 51, 0.4);
  padding: 10px;
}
.td-header ul ul a { border-radius: 12px; padding: 10px 12px; }
.td-header ul ul a:hover { background: rgba(51, 64, 242, 0.08); text-shadow: none; }

/* ---------- buttons ---------- */
html body .g-4146b804 {
  padding: 14px 30px;
  min-height: 54px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 0.2s ease;
}
html body .g-4146b804::before {
  border-radius: 999px;
  background: linear-gradient(135deg, #4452ff 0%, #2431d8 100%);
  box-shadow: 0 14px 28px -14px rgba(51, 64, 242, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: background 0.25s, box-shadow 0.25s;
}
html body .g-4146b804:hover { transform: translateY(-2px); }
html body .g-4146b804:hover::before { filter: none; background: linear-gradient(135deg, #1a2370, #0b1033); }
html body .g-38eb0111 { padding: 10px 26px; min-height: 46px; font-size: 0.95rem; }
html body .g-3627dfed { color: var(--color-text); }
html body .g-3627dfed::before { background: transparent; border: 1.5px solid rgba(11, 16, 51, 0.28); box-shadow: none; }
html body .g-3627dfed:hover { color: #fff; }
html body .g-3627dfed:hover::before { background: var(--color-text); border-color: var(--color-text); }
/* on dark surfaces the primary button turns saffron */
.g-cfab162b .g-4146b804, .td-hero--img .g-4146b804 { color: #0b1033; }
.g-cfab162b .g-4146b804::before, .td-hero--img .g-4146b804::before {
  background: var(--color-accent);
  box-shadow: 0 14px 30px -14px rgba(255, 194, 71, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.g-cfab162b .g-4146b804:hover::before, .td-hero--img .g-4146b804:hover::before { background: #fff; }

/* ---------- section rhythm ---------- */
html body section { padding: clamp(3.5rem, 6vw, 6.5rem) 0; }
html body .td-hero { padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(3rem, 6vw, 6rem); position: relative; }
html body .td-hero:not(.td-hero--img):not(.td-dark)::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(48% 70% at 92% 0%, rgba(51, 64, 242, 0.16), transparent 70%),
    radial-gradient(34% 50% at 0% 70%, rgba(255, 194, 71, 0.16), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
html body .td-hero:not(.td-hero--img):not(.td-dark) > * { position: relative; z-index: 1; }
html body .td-hero h1 { font-size: clamp(2.4rem, 4vw + 0.8rem, 4.3rem); line-height: 1.03; font-weight: 700; letter-spacing: -0.042em; }

/* dark panels: inset, rounded, with a quiet glow */
html body .g-cfab162b:not(address) {
  border-radius: var(--td-radius);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(68, 82, 255, 0.5), transparent 62%),
    radial-gradient(45% 60% at 0% 100%, rgba(110, 80, 255, 0.22), transparent 70%),
    #0b1033;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
html body .td-dark { margin: 0 var(--td-gutter); }
html body .g-cfab162b:not(address)::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(120deg, #000 0%, transparent 55%);
}
html body .g-cfab162b h2, html body .g-cfab162b h3 { color: #fff; }
html body .g-cfab162b p, html body .g-cfab162b li, html body .g-cfab162b div[class*="g-48096424"] { color: rgba(255, 255, 255, 0.82); }

/* hero variants */
html body .td-hero.td-dark { padding: clamp(3.5rem, 7vw, 7rem) 0; margin-top: var(--td-gutter); }
html body .td-hero.td-dark h1 { color: #fff; }
html body .td-hero--img {
  margin: var(--td-gutter) var(--td-gutter) 0;
  border-radius: var(--td-radius);
  overflow: hidden;
  isolation: isolate;
  padding: 0;
}
html body .td-hero--img::after {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 11, 40, 0.88) 0%, rgba(8, 11, 40, 0.55) 45%, rgba(8, 11, 40, 0.1) 100%);
}
html body .td-hero--img .g-412bd224,
html body .td-hero--img .g-2870c5c3 { position: relative; z-index: 2; }
html body .td-hero--img h1, html body .td-hero--img p { color: #fff; }
html body .td-hero--img img { filter: saturate(1.05); }

/* ---------- imagery ---------- */
html body figure { border-radius: 26px; }
html body .g-5d2ec388 { border-radius: 26px; }
html body figure img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
html body .td-hero:not(.td-hero--img) figure {
  box-shadow: 0 50px 80px -44px rgba(11, 16, 51, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ---------- cards ---------- */
html body article {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 24px;
  padding: 22px 24px;
  box-shadow: 0 1px 0 rgba(11, 16, 51, 0.03), 0 18px 36px -26px rgba(11, 16, 51, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
html body article:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(11, 16, 51, 0.03), 0 26px 44px -26px rgba(51, 64, 242, 0.45); }
html body article > span[aria-hidden="true"] {
  background: linear-gradient(140deg, #3340f2, #0b1033) !important;
  color: var(--color-accent);
  border-radius: 16px !important;
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; flex: 0 0 54px;
  box-shadow: 0 12px 22px -12px rgba(51, 64, 242, 0.9);
  font-size: 0;
}
.td-ico { display: block; width: 26px; height: 26px; }

/* testimonials: the card already exists in the markup, keep the quote plain */
html body blockquote { background: transparent; border: 0; box-shadow: none; padding: 0; color: var(--color-text-description); }
html body blockquote::before { content: none; }

/* ---------- forms ---------- */
html body form {
  border-radius: 30px;
  border: 1px solid var(--color-line);
  box-shadow: 0 50px 80px -48px rgba(11, 16, 51, 0.5);
}
html body .g-8dd2c2db {
  background: var(--color-bg);
  border: 1.5px solid transparent;
  border-radius: 16px;
  color: var(--color-text);
  font-family: var(--font-family);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
html body .g-8dd2c2db::placeholder { color: rgba(11, 16, 51, 0.42); }
html body .g-8dd2c2db:focus { border-color: var(--color-primary); background: #fff; box-shadow: 0 0 0 4px rgba(51, 64, 242, 0.14); }
html body input[type="checkbox"] { accent-color: var(--color-primary); width: 18px; height: 18px; }
html body label a { color: var(--color-primary); font-weight: 600; }

/* contact card */
html body address.g-cfab162b, html body address.td-dark-card {
  background:
    radial-gradient(70% 70% at 100% 0%, rgba(68, 82, 255, 0.55), transparent 65%),
    #0b1033;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
html body address.g-6fe1e639 { border-radius: 30px; border: 1px solid var(--color-line); }
html body address a { text-underline-offset: 0.2em; }
html body address span[aria-hidden="true"] {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
}
html body address span[aria-hidden="true"] svg path { fill: var(--color-accent); }

/* tables / misc */
html body table thead { background: var(--color-secondary); }
html body mark.primary { background: var(--color-primary); }

/* ---------- footer ---------- */
html body .td-footer {
  margin: var(--td-gutter);
  margin-top: clamp(3rem, 6vw, 6rem);
  border-radius: var(--td-radius);
  background:
    radial-gradient(55% 80% at 100% 0%, rgba(68, 82, 255, 0.4), transparent 65%),
    #0b1033;
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(1.25rem, 2vw, 1.75rem);
}
html body .td-footer a { color: #fff; text-decoration: none; transition: color 0.2s; }
html body .td-footer a:hover { color: var(--color-accent); }
html body .td-footer .td-brand { color: #fff; }
html body .td-footer .td-brand span + span, html body .td-footer .td-brand em { color: #fff; font-size: 1.6rem; }
html body .td-footer svg path { fill: var(--color-accent); }
html body .td-footer .g-1bc4fdc8 {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 0;
  padding-top: 20px;
}
html body .td-footer .g-1bc4fdc8 a { color: rgba(255, 255, 255, 0.8); }

/* ---------- floating bits ---------- */
html body .td-top {
  width: 48px; height: 48px;
  border-radius: 16px;
  background: var(--color-text);
  box-shadow: 0 16px 30px -12px rgba(11, 16, 51, 0.6);
}
html body .td-top svg path { fill: var(--color-accent); }
html body .td-top:hover { background: var(--color-primary); }

html body .td-cookie {
  background: transparent;
  pointer-events: none;
  padding: 0 var(--td-gutter) var(--td-gutter);
}
html body .td-cookie > .g-412bd224 {
  pointer-events: auto;
  max-width: 1120px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--color-line);
  border-radius: 26px;
  padding: 22px 28px;
  box-shadow: 0 30px 70px -20px rgba(11, 16, 51, 0.5);
}
html body .td-cookie h3 { font-size: 1.2rem; }
html body .td-cookie p { font-size: 0.95rem; line-height: 1.55; }
html body .td-cookie a { color: var(--color-primary); font-weight: 600; }

/* ---------- policy pages ---------- */
html body .td-hero.td-dark + section { padding-top: clamp(2.5rem, 4vw, 4rem); }
html body .td-hero.td-dark + section .g-412bd224 { max-width: 920px; }
html body .td-hero.td-dark + section h2 { font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2rem); margin-top: 2.2em; }
html body .td-hero.td-dark + section a { color: var(--color-primary); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media screen and (max-width: 768px) {
  html body .td-footer, html body .td-dark { border-radius: 26px; }
  html body .td-cookie > .g-412bd224 { padding: 18px; border-radius: 22px; }
  html body article { padding: 18px; }
}

/* footer type + wrapping */
html body .td-footer, html body .td-footer .g-a92096b4, html body .td-footer .g-856a3f93 { font-size: 0.95rem; line-height: 1.6; }
html body .td-footer .g-a92096b4 { overflow-wrap: anywhere; }
html body .td-footer div[class] { min-width: 0; }
html body .td-footer a[href^="tel"] { white-space: nowrap; }
html body .td-footer div:has(> a[href^="tel"]) { flex-wrap: wrap; }

/* cards on dark panels become glass */
html body .g-cfab162b article {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
html body .g-cfab162b article:hover { background: rgba(255, 255, 255, 0.11); box-shadow: none; }
html body .g-cfab162b article h3, html body .g-cfab162b article p { color: #fff; }
