/* ==========================================================================
   Insightix website — implemented from the "Insightix Website" design.
   Layout is RTL-first; physical left/right values below mirror the design.
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--th-ink);
  background: var(--th-bg);
  transition: background 300ms, color 300ms;
}

main { flex: 1; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: 0; color: inherit; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; }
button { font-family: inherit; }

a { color: var(--th-red); text-decoration: none; transition: color var(--dur-base) var(--ease-out); }
a:hover { color: #921A1F; }
html[data-theme="dark"] a:hover { color: #F58A93; }

::selection { background: var(--ix-red); color: #fff; }
:focus-visible { outline: 3px solid rgba(190, 31, 46, .55); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; z-index: 200; top: -64px; right: 16px;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: #921A1F; color: #fff; font-weight: 500;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: 16px; color: #fff; }

@media (max-width: 1023.98px) { .desk-only { display: none !important; } }
@media (min-width: 1024px) { .mobile-only { display: none !important; } }

/* ---------- Buttons (DS Button) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; font-size: 15px; font-weight: 500; line-height: 1.2;
  border: 1.5px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--lg { padding: 15px 34px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }

.btn--primary, .btn--primary:hover { color: var(--fg-on-brand); }
.btn--primary { background: var(--brand-primary); }
.btn--primary:hover:not(:disabled) { background: var(--brand-primary-hover); }
.btn--primary:active:not(:disabled) { background: var(--brand-primary-press); }

.btn--secondary, .btn--secondary:hover { color: var(--brand-primary); }
.btn--secondary { background: transparent; border-color: var(--brand-primary); }
.btn--secondary:hover { background: var(--brand-tint); }
html[data-theme="dark"] .btn--secondary, html[data-theme="dark"] .btn--secondary:hover { color: var(--th-red); border-color: var(--th-red); }

.btn--inverse, .btn--inverse:hover { color: var(--ix-charcoal); }
.btn--inverse { background: #fff; }
.btn--inverse:hover { background: #F4F3F3; }
.btn--inverse:active { background: #E9E7E7; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--th-bg);
  border-bottom: 1px solid var(--border-1);
  transition: box-shadow var(--dur-slow) var(--ease-out), background 300ms;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(35, 31, 32, .08); }
html[data-theme="dark"] .site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }

.header-bar { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; padding: 8px 0; flex-shrink: 0; }
.brand img { height: 40px; width: auto; display: block; }

.logo-dark { display: none !important; }
html[data-theme="dark"] .logo-light { display: none !important; }
html[data-theme="dark"] .logo-dark { display: block !important; }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; height: 100%; }
.nav-mega { height: 100%; display: flex; align-items: center; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 6px; height: 100%;
  padding: 0 14px; font-size: 15px; font-weight: 500; color: var(--th-ink);
}
.nav-link::after {
  content: ""; position: absolute; bottom: 0; right: 14px; left: 14px; height: 3px;
  border-radius: 3px 3px 0 0; background: #921A1F; opacity: 0; transition: opacity 200ms;
}
.nav-link[aria-current="page"] { color: var(--th-red); }
.nav-link[aria-current="page"]::after { opacity: 1; }
.nav-chevron { transition: transform 200ms; }
.nav-link[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-mobile { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }

.icon-btn {
  width: 40px; height: 40px; flex-shrink: 0; padding: 0;
  display: inline-grid; place-items: center;
  border: 1px solid var(--border-2); border-radius: var(--radius-pill);
  background: transparent; color: var(--fg-1); cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), border-color 200ms, color 200ms;
}
.icon-btn:hover { background: var(--bg-muted); }
.header-mobile .icon-btn, .drawer .icon-btn { width: 48px; height: 48px; background: var(--th-bg); color: var(--th-ink); }
.header-mobile .theme-toggle:hover { background: var(--th-bg); border-color: #921A1F; color: #921A1F; }

.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.lang-switch {
  position: relative; width: 96px; height: 40px; padding: 3px; flex-shrink: 0;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  border: 1px solid var(--border-2); border-radius: var(--radius-pill);
  background: var(--bg-muted); cursor: pointer; direction: rtl;
}
.lang-switch-knob {
  position: absolute; top: 3px; bottom: 3px; right: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: #921A1F; box-shadow: 0 2px 6px rgba(146, 26, 31, .3);
  transition: transform 240ms var(--ease-out);
}
.lang-switch-ar, .lang-switch-en { position: relative; text-align: center; font-weight: 600; transition: color 240ms var(--ease-out); }
.lang-switch-ar { font-size: 13px; color: #fff; }
.lang-switch-en { font-size: 12px; letter-spacing: .04em; color: var(--fg-1); }
.lang-switch[aria-checked="true"] .lang-switch-knob { transform: translateX(-100%); }
.lang-switch[aria-checked="true"] .lang-switch-ar { color: var(--fg-1); }
.lang-switch[aria-checked="true"] .lang-switch-en { color: #fff; }

.header-divider { width: 1px; height: 28px; background: var(--border-1); margin: 0 4px; }

.header-cta {
  position: relative; height: 44px; padding: 0 20px 0 2px;
  display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 8px;
  border-radius: 999px; background: #921A1F; color: #fff;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(146, 26, 31, .28);
  transition: box-shadow 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.header-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(146, 26, 31, .38); }
.header-cta svg { width: 40px; height: 44px; display: block; flex-shrink: 0; }

/* Mega menu */
.mega {
  position: absolute; top: 100%; right: 0; left: 0;
  background: var(--th-bg); border-top: 3px solid #921A1F; box-shadow: var(--shadow-3);
  opacity: 0; transform: translateY(-6px); visibility: hidden; pointer-events: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 200ms;
}
.mega.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
.mega-grid { padding-top: 28px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mega-item { display: flex; gap: 16px; padding: 20px; border-radius: 12px; color: var(--th-ink); transition: background 200ms; }
.mega-item:hover { color: var(--th-ink); background: var(--ix-neutral-25); }
.mega-icon { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; color: #921A1F; font-size: 30px; line-height: 1; }
.mega-text { display: flex; flex-direction: column; gap: 6px; }
.mega-name { font-size: 17px; font-weight: 600; }
.mega-tagline { font-size: 14px; font-weight: 300; line-height: 1.7; color: var(--fg-2); }

/* Mobile drawer */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 90; background: var(--overlay-scrim);
  opacity: 0; pointer-events: none; transition: opacity 300ms var(--ease-out);
}
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 100; width: min(380px, 90vw);
  display: flex; flex-direction: column; background: var(--th-bg); box-shadow: var(--shadow-3);
  transform: translateX(100%); visibility: hidden;
  transition: transform 360ms var(--ease-out), visibility 360ms;
}
.drawer-open .drawer-scrim { opacity: 1; pointer-events: auto; }
.drawer-open .drawer { transform: none; visibility: visible; }

.drawer-head { height: var(--header-h); padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-1); }
.drawer-head img { height: 34px; width: auto; }
.drawer-nav { flex: 1; overflow-y: auto; padding: 12px 20px; display: flex; flex-direction: column; }
.drawer-link {
  display: flex; align-items: center; min-height: 56px; font-size: 18px; font-weight: 500;
  border-bottom: 1px solid var(--border-1); color: var(--th-ink);
}
.drawer-link[aria-current="page"] { color: var(--th-red); }
.drawer-group { border-bottom: 1px solid var(--border-1); }
.drawer-toggle { width: 100%; justify-content: space-between; padding: 0; border: 0; background: none; font: inherit; font-size: 18px; font-weight: 500; cursor: pointer; }
.drawer-toggle svg { transition: transform 300ms; }
.drawer-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.drawer-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms var(--ease-out); }
.drawer-sub > div { overflow: hidden; visibility: hidden; transition: visibility 300ms; }
.drawer-group.is-open .drawer-sub { grid-template-rows: 1fr; }
.drawer-group.is-open .drawer-sub > div { visibility: visible; }
.drawer-sub-list { display: flex; flex-direction: column; gap: 4px; padding: 0 0 16px; }
.drawer-sub-all { padding: 10px 16px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--th-ink); background: var(--ix-neutral-25); }
.drawer-sub-item { padding: 10px 16px; border-radius: 8px; display: flex; flex-direction: column; gap: 2px; color: var(--th-ink); }
.drawer-sub-name { font-size: 15px; font-weight: 500; }
.drawer-sub-tagline { font-size: 13px; font-weight: 300; line-height: 1.6; color: var(--fg-2); }
.drawer-foot { padding: 20px; border-top: 1px solid var(--border-1); display: flex; gap: 12px; align-items: center; }
.drawer-foot .btn { flex: 1; }
.lang-pill {
  font-size: 15px; font-weight: 500; color: var(--fg-1); background: transparent;
  border: 1px solid var(--border-2); border-radius: 999px; padding: 6px 16px; cursor: pointer;
  transition: color var(--dur-base);
}
.lang-pill:hover { color: var(--th-red); }

/* ---------- Shared section scaffolding ---------- */
.section { position: relative; isolation: isolate; overflow: hidden; background: var(--th-bg); }
.section--subtle { background: var(--ix-neutral-25); }
.section--bordered { border-top: 1px solid var(--border-1); }

.band-red {
  position: relative; isolation: isolate; overflow: hidden;
  background: #921A1F; color: #fff;
  --th-bg: #921A1F; --th-ink: #FFFFFF; --th-red: #FFFFFF;
  --fg-2: rgba(255, 255, 255, .86); --border-1: rgba(255, 255, 255, .28); --border-2: rgba(255, 255, 255, .28);
}
.band-red a:not(.btn), .band-red a:not(.btn):hover { color: #fff; }

.section-pad { padding-block: clamp(64px, 9vw, 112px); }
.section-pad-sm { padding-block: clamp(56px, 8vw, 96px); }
.section-pad-bottom { padding-bottom: clamp(64px, 9vw, 112px); }
.section-pad-partners { padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 8vw, 96px); }
.section-pad-pillar { padding-block: clamp(64px, 9vw, 104px); }
.section-pad-contact { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(64px, 9vw, 112px); }

.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head--flush { margin-bottom: 0; }
.section-head--narrow { max-width: 680px; }
.section-head--row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; }

.section-title { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.35; }
.section-title--md { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.4; }
.section-title--sm { font-size: clamp(26px, 3vw, 36px); line-height: 1.4; }
.section-title--xs { font-size: clamp(26px, 3vw, 34px); line-height: 1.4; }

.section-lead { max-width: 640px; font-size: 17px; line-height: 1.9; font-weight: 300; color: var(--fg-2); }
.accent-bar { display: block; width: 56px; height: 3px; border-radius: 3px; background: #921A1F; }
.band-red .accent-bar { background: #fff; }
.divider { height: 1px; background: var(--border-1); }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--th-red); margin-bottom: 8px; }
.body-lg { font-size: 18px; line-height: 1.9; font-weight: 300; }

.text-link { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-size: 16px; font-weight: 500; color: var(--th-red); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px 72px; align-items: start; }
.split--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.split--end { gap: 24px 72px; align-items: end; margin-bottom: 48px; }
.split-body { display: flex; flex-direction: column; gap: 24px; }
.split-body--offset { padding-top: 40px; }
.lead-light { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.9; font-weight: 300; }

/* Cards that lift on hover. --tx lets the reveal transition compose with the hover transition. */
.lift { --tx: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out); transition: var(--tx); }
.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }

.panel { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--border-1); border-radius: 12px; background: var(--th-bg); box-shadow: var(--shadow-1); }
.panel--raised { padding: clamp(24px, 4vw, 48px); border-radius: 16px; box-shadow: var(--shadow-2); }

.dots { display: flex; gap: 10px; align-items: center; }
.dot {
  width: 10px; height: 6px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--border-1); transition: width 500ms var(--ease-out), background 500ms ease;
}
.dot.is-active { width: 44px; background: #921A1F; }
.dots--light .dot { background: rgba(255, 255, 255, .35); }
.dots--light .dot.is-active { background: #fff; }

/* ---------- Home: hero ---------- */
.hero {
  position: relative; overflow: hidden; background: #231F20; color: #fff;
  --th-ink: #FFFFFF; --fg-2: rgba(255, 255, 255, .86); --border-1: rgba(255, 255, 255, .28); --th-red: #FFFFFF;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(35, 31, 32, .92) 0%, rgba(35, 31, 32, .8) 42%, rgba(35, 31, 32, .45) 75%, rgba(35, 31, 32, .3) 100%);
}
.hero-grid {
  position: relative; z-index: 1;
  padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 112px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.2; font-weight: 700; }
.hero-lead { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.6; font-weight: 500; }
.hero-intro { max-width: 600px; font-size: 17px; line-height: 1.9; font-weight: 300; color: var(--fg-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 8px; }
.hero-mark-col { display: flex; justify-content: center; }
.hero-mark-stage { width: 100%; max-width: 440px; perspective: 1200px; }
.hero-mark-wrap { width: 100%; transform-style: preserve-3d; will-change: transform; }
.hero-mark { position: relative; width: 100%; aspect-ratio: 270 / 296; transform-style: preserve-3d; }
.hero-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* ---------- Home: rotating tagline ---------- */
.tagline { position: relative; overflow: hidden; background: var(--th-bg); color: var(--th-ink); }
.tagline-pattern {
  position: absolute; top: 0; bottom: 0; left: 0; height: 100%; aspect-ratio: 896 / 1200; pointer-events: none;
  background: url("../images/sadu-pattern-v.png") no-repeat left center / auto 100%; opacity: .14;
}
.tagline-body {
  position: relative; padding-block: clamp(56px, 8vw, 104px);
  display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vw, 44px); text-align: center;
}
.tagline-stage { position: relative; width: 100%; height: clamp(64px, 8.4vw, 112px); }
.tagline-slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: clamp(34px, 6vw, 76px); line-height: 1.2; font-weight: 700;
  opacity: 0; filter: blur(6px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), filter 700ms ease;
}
.tagline-slide.is-active { opacity: 1; transform: none; filter: blur(0); }
.tagline-slide.is-next { transform: translateY(40%); }
.tagline-slide.is-prev { transform: translateY(-40%); }
.tagline-dot { color: #921A1F; }

/* ---------- Home: services cards ---------- */
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; }
.service-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--border-1); border-radius: 16px; background: var(--th-bg); box-shadow: var(--shadow-1); color: var(--th-ink);
}
.service-card:hover { color: var(--th-ink); transform: translateY(-6px); }
.service-card-icon { height: 128px; padding: 20px 22px 0; display: flex; align-items: center; justify-content: center; color: #921A1F; font-size: 48px; line-height: 1; }
.service-card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.service-card h3 { font-size: 21px; line-height: 1.4; }
.service-card p { flex: 1; font-size: 15px; line-height: 1.7; font-weight: 500; color: var(--th-red); }
.more-pill {
  margin-top: 12px; align-self: flex-end; display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 18px 0 0; border: 1px solid var(--border-2); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--th-ink);
}
.more-pill-icon { width: 40px; height: 40px; margin: -1px; flex-shrink: 0; border-radius: 50%; background: #921A1F; color: #fff; display: grid; place-items: center; }

/* ---------- Home: values carousel ---------- */
.values-carousel { display: flex; flex-direction: column; gap: 28px; }
.values-viewport { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); }
.values-track { display: flex; transition: transform 700ms var(--ease-out); }
.values-slide {
  flex: 0 0 100%; padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center;
  opacity: .25; transition: opacity 700ms ease;
}
.values-slide.is-active { opacity: 1; }
.values-slide-head { display: flex; align-items: center; gap: 24px; }
.values-icon { flex-shrink: 0; width: 96px; height: 96px; border-radius: 50%; background: #fff; color: #921A1F; display: grid; place-items: center; box-shadow: 0 14px 30px rgba(35, 31, 32, .25); }
.values-slide h3 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.3; font-weight: 700; color: #fff; }
.values-slide p { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.95; font-weight: 300; color: rgba(255, 255, 255, .92); }
.values-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.values-arrows { display: flex; gap: 10px; }
.arrow-btn {
  width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4);
  background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background 200ms, transform 200ms;
}
.arrow-btn:hover { background: rgba(255, 255, 255, .12); }
.arrow-btn--solid { border: 0; background: #fff; color: #921A1F; }
.arrow-btn--solid:hover { background: #fff; transform: scale(1.06); }

/* ---------- Founders ---------- */
.founders { display: flex; flex-direction: column; gap: 24px; }
.founders-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2.4vw, 24px); max-width: 1040px; width: 100%; margin: 0 auto; }
.founder-card { margin: 0; display: flex; align-items: center; gap: 28px; padding: 20px; border: 1px solid var(--border-1); border-radius: 12px; background: var(--th-bg); box-shadow: var(--shadow-1); }
.founder-photo { position: relative; flex-shrink: 0; width: clamp(140px, 16vw, 180px); aspect-ratio: 5 / 6; border-radius: 10px; overflow: hidden; background: var(--bg-muted); }
.founder-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform-origin: 54% 30%; }
.founder-photo img.is-zoomed { transform: scale(1.35); }
.founder-card figcaption { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.founder-role { font-size: 14px; font-weight: 500; color: var(--th-red); }
.founder-name { font-size: clamp(19px, 2vw, 24px); font-weight: 600; line-height: 1.5; text-wrap: pretty; }

.letter { position: relative; display: flex; flex-direction: column; gap: 28px; padding: clamp(28px, 5vw, 64px); border: 1px solid var(--border-1); border-radius: 16px; background: var(--ix-neutral-25); box-shadow: var(--shadow-1); }
.letter-head { display: flex; align-items: center; gap: 20px; }
.letter-quote { flex-shrink: 0; transform: scaleX(-1); }
.letter-head p { font-size: clamp(22px, 2.8vw, 32px); line-height: 1.5; font-weight: 600; }
.letter-body { columns: 340px 2; column-gap: 56px; }
.letter-body p { margin: 0 0 16px; font-size: 16px; line-height: 1.95; font-weight: 300; color: var(--fg-2); }
.letter-body .letter-sign { margin: 8px 0 0; line-height: 1.9; font-weight: 500; color: var(--th-ink); break-inside: avoid; }
.letter .text-link { gap: 8px; font-size: 15px; }

/* ---------- Experience ---------- */
.experience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.experience-card {
  --tx: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out), background var(--dur-slow) var(--ease-out);
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 28px;
  border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .22);
  transition: var(--tx);
}
.experience-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); box-shadow: 0 18px 36px rgba(35, 31, 32, .25); }
.experience-watermark { position: absolute; bottom: -36px; left: -28px; width: 110px; height: auto; opacity: .07; transform: rotate(180deg); pointer-events: none; }
.experience-tag { align-self: flex-start; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: #FBEDEE; color: #921A1F; font-size: 13px; font-weight: 500; }
html[data-theme="dark"] .experience-tag { background: transparent; color: var(--th-red); padding: 0; }
.experience-card h3 { font-size: 19px; line-height: 1.5; }
.experience-card p { flex: 1; font-size: 15px; line-height: 1.85; font-weight: 300; color: var(--fg-2); }
.experience-place { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border-1); font-size: 14px; font-weight: 500; }

/* ---------- Partners ---------- */
.partners-stage { position: relative; width: 100%; max-width: 1120px; margin: 0 auto; aspect-ratio: 160 / 100; }
.partner-node {
  position: absolute; z-index: 1; width: 16.5%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center;
  padding: clamp(4px, .6vw, 9px); border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 1px rgba(35, 31, 32, .08), 0 10px 24px rgba(35, 31, 32, .14);
  transition: transform 420ms var(--ease-out), box-shadow 420ms ease;
}
.partner-node:hover, .partner-node:focus-visible {
  z-index: 5; transform: translate(-50%, -50%) scale(1.07);
  box-shadow: 0 0 0 1px rgba(190, 31, 46, .25), 0 18px 32px rgba(35, 31, 32, .2);
}
.partner-node img { width: 100%; height: 100%; min-height: 0; object-fit: contain; display: block; }
.partner-node--self { left: 50.5%; top: 15%; padding: clamp(10px, 1.8vw, 24px); }
.partner-node--self svg { width: 100%; height: 100%; }

.partners-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.partner-node--mobile { position: relative; width: 112px; height: 112px; padding: 8px; transform: none; box-shadow: 0 0 0 1px rgba(35, 31, 32, .08), 0 10px 22px rgba(35, 31, 32, .14); }
.partner-node--mobile:hover, .partner-node--mobile:focus-visible { transform: none; }

.partner-tip {
  --shift: var(--tip-shift, 0px);
  position: absolute; left: 50%; width: max-content; max-width: min(240px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-radius: 12px;
  background: #231F20; color: #fff; text-align: right; pointer-events: none;
  box-shadow: 0 12px 28px rgba(35, 31, 32, .35);
  opacity: 0; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.tip-above .partner-tip { bottom: calc(100% + 14px); transform: translate(calc(-50% + var(--shift)), 6px); }
.tip-below .partner-tip { top: calc(100% + 14px); transform: translate(calc(-50% + var(--shift)), -6px); }
.partner-node:hover .partner-tip, .partner-node:focus-visible .partner-tip { opacity: 1; transform: translate(calc(-50% + var(--shift)), 0); }
.partner-tip-arrow { position: absolute; left: calc(50% - var(--shift)); width: 12px; height: 12px; background: #231F20; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.tip-above .partner-tip-arrow { bottom: -6px; }
.tip-below .partner-tip-arrow { top: -6px; }
.partner-tip-name { position: relative; font-size: 14px; line-height: 1.5; font-weight: 600; }
.partner-tip-desc { position: relative; font-size: 13px; line-height: 1.6; font-weight: 300; color: rgba(255, 255, 255, .8); }

/* ---------- Forms (DS Input / Textarea) ---------- */
.form-grid { display: grid; gap: 24px 20px; align-items: start; }
.form-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.form-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form-span { grid-column: 1 / -1; }

.field { display: block; }
.field-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--th-ink); }
.field-req { color: var(--th-red); }
.field-control {
  width: 100%; padding: 12px 16px; font-family: var(--font-sans); font-size: 15px; font-weight: 300; color: var(--th-ink);
  background: var(--surface-card); border: 1px solid var(--border-2); border-radius: var(--radius-2); outline: none;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.field-control:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px var(--focus-ring); }
.field-control:focus-visible { outline: none; }
.field.is-invalid .field-control { border-color: var(--th-red); }
.field-error { display: block; margin-top: 6px; font-size: 13px; color: var(--th-red); }
.field-textarea { resize: vertical; line-height: 1.6; }
.select-wrap { position: relative; display: block; }
.field-select { appearance: none; cursor: pointer; padding-left: 44px; }
.select-wrap svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--fg-2); }

.form-alert {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: 12px;
  background: var(--ix-red-50); border: 1px solid var(--ix-red-100); color: #921A1F;
  font-size: 15px; line-height: 1.7; font-weight: 500;
}
html[data-theme="dark"] .form-alert { color: var(--th-red); }
.form-alert svg { flex-shrink: 0; margin-top: 3px; }
.form-alert-inline { font-size: 13px; color: var(--th-red); }
.form-foot { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; border-top: 1px solid var(--border-1); }
.form-note { margin-top: 8px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.7; font-weight: 400; color: var(--fg-2); }
.form-note svg { flex-shrink: 0; margin-top: 3px; color: var(--th-red); }

/* ---------- Meeting request ---------- */
.meeting-sent { display: flex; align-items: center; gap: 14px; font-size: 17px; line-height: 1.7; font-weight: 500; }
.meeting-form { display: flex; flex-direction: column; gap: 32px; }
.calendar { display: flex; flex-direction: column; gap: 16px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.calendar-title { font-size: 15px; font-weight: 500; }
.calendar-nav { display: flex; align-items: center; gap: 8px; }
.calendar-month { min-width: 132px; text-align: center; font-size: 17px; font-weight: 600; }
.round-btn {
  width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--border-2);
  background: transparent; color: var(--th-ink); display: grid; place-items: center; cursor: pointer;
  transition: background var(--dur-base);
}
.round-btn:hover:not(:disabled) { background: var(--bg-muted); }
.round-btn:disabled { opacity: .4; cursor: default; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-wd { padding: 6px 0; text-align: center; font-size: 13px; font-weight: 500; color: var(--fg-3); }
.cal-day {
  height: 48px; border-radius: 10px; border: 1px solid var(--border-2); background: transparent;
  color: var(--th-ink); font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
}
.cal-day:hover:not(:disabled):not([aria-pressed="true"]) { background: var(--bg-muted); }
.cal-day:disabled {
  border-color: transparent; color: var(--fg-3); cursor: not-allowed; opacity: .55;
  background: repeating-linear-gradient(135deg, var(--bg-muted) 0 5px, transparent 5px 10px);
}
.cal-day.is-today { border-color: #921A1F; font-weight: 600; }
.cal-day[aria-pressed="true"] { background: #921A1F; border-color: #921A1F; color: #fff; font-weight: 600; }
.cal-day--blank { visibility: hidden; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--fg-2); }
.calendar-legend > span { display: flex; align-items: center; gap: 8px; }
.legend-swatch { width: 16px; height: 16px; border-radius: 4px; }
.legend-swatch--open { border: 1px solid var(--border-2); }
.legend-swatch--off { opacity: .55; background: repeating-linear-gradient(135deg, var(--bg-muted) 0 3px, transparent 3px 6px); }
.legend-swatch--sel { background: #921A1F; }
.calendar-picked { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }

/* ---------- Inner page hero ---------- */
.inner-hero { position: relative; overflow: hidden; background: var(--ix-neutral-25); border-bottom: 1px solid var(--border-1); }
.inner-hero-rings { position: absolute; left: -120px; top: -90px; width: min(560px, 70vw); height: auto; pointer-events: none; }
.inner-hero-body { position: relative; padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(56px, 8vw, 96px); }
.breadcrumbs { margin-bottom: clamp(32px, 5vw, 56px); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs a { font-weight: 500; }
.breadcrumbs [aria-current] { color: var(--fg-2); font-weight: 400; }
.breadcrumbs-sep { color: var(--fg-3); }
.inner-hero-text { max-width: 820px; display: flex; flex-direction: column; gap: 20px; }
.inner-hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.25; font-weight: 700; }
.inner-hero-lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.65; font-weight: 500; }
.inner-hero-desc { font-size: 17px; line-height: 1.9; font-weight: 300; color: var(--fg-2); }

/* ---------- About ---------- */
.vm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.vm-card { position: relative; overflow: hidden; min-height: 260px; display: flex; flex-direction: column; gap: 20px; padding: clamp(32px, 4vw, 48px); border-radius: 16px; color: #fff; }
.vm-card--vision { background: var(--th-band); }
.vm-card--mission { background: #921A1F; }
.vm-label { font-size: 15px; font-weight: 500; }
.vm-card p { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.75; font-weight: 400; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; }
.value-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3vw, 40px); border: 1px solid var(--border-1); border-radius: 16px; background: var(--th-bg); box-shadow: var(--shadow-1); }
.value-card-head { display: flex; align-items: center; gap: 12px; }
.value-card-icon { flex-shrink: 0; width: 28px; height: 28px; display: grid; place-items: center; color: var(--th-red); }
.value-card h3 { font-size: 22px; line-height: 1.4; }
.value-card p { font-size: 16px; line-height: 1.9; font-weight: 300; color: var(--fg-2); }

/* ---------- Services overview ---------- */
.pillar-list { display: flex; flex-direction: column; gap: 32px; }
.pillar-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); overflow: hidden; border: 1px solid var(--border-1); border-radius: 16px; background: var(--th-bg); box-shadow: var(--shadow-1); }
.pillar-row-intro { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 4vw, 48px); background: var(--ix-neutral-25); }
.pillar-row-intro h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.35; }
.pillar-row-tagline { font-size: 18px; line-height: 1.75; font-weight: 500; }
.pillar-row-text { font-size: 16px; line-height: 1.9; font-weight: 300; color: var(--fg-2); }
.pillar-row-cta { margin-top: auto; padding-top: 8px; }
.pillar-row-services { display: flex; flex-direction: column; gap: 8px; padding: clamp(28px, 4vw, 48px); }
.pillar-row-services ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pillar-row-services a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border-1);
  color: var(--th-ink); font-size: 16px; font-weight: 400; line-height: 1.6; transition: color 200ms;
}
.pillar-row-services a:hover { color: var(--th-red); }

/* ---------- Pillar detail ---------- */
.watermarks { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.watermark { position: absolute; height: auto; }
.watermark--pillar-a { top: -12%; left: -8%; width: clamp(240px, 26vw, 380px); transform: rotate(180deg); opacity: .06; }
.watermark--pillar-b { bottom: -18%; right: -6%; width: clamp(160px, 16vw, 240px); transform: rotate(-30deg); opacity: .05; }
.watermark--contact-a { bottom: -24%; left: -10%; width: clamp(280px, 30vw, 420px); transform: rotate(150deg); opacity: .06; }
.watermark--contact-b { top: 8%; right: -4%; width: clamp(110px, 11vw, 170px); transform: rotate(-10deg); opacity: .05; }

.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item {
  --tx: box-shadow var(--dur-slow) var(--ease-out), border-color var(--dur-slow);
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid var(--border-1); border-radius: 14px; background: var(--th-bg); box-shadow: var(--shadow-1);
  transition: var(--tx);
}
.acc-item.is-open { border-color: var(--ix-red-100); box-shadow: var(--shadow-2); }
.acc-item h3 { font-size: inherit; font-weight: inherit; }
.acc-trigger {
  width: 100%; display: flex; align-items: flex-start; gap: clamp(14px, 2.4vw, 28px); padding: clamp(20px, 2.4vw, 28px);
  background: none; border: 0; border-radius: 14px; text-align: right; cursor: pointer; font: inherit; color: var(--th-ink);
}
.acc-text { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.acc-title { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; font-weight: 600; }
.acc-summary { font-size: 15px; line-height: 1.75; font-weight: 300; color: var(--fg-2); }
.acc-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border-2);
  display: grid; place-items: center; color: #231F20; background: #fff;
  transition: transform var(--dur-slow) var(--ease-out), background 200ms;
}
.acc-item.is-open .acc-icon { background: #BE1F2E; color: #fff; transform: rotate(45deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-slow) var(--ease-out); }
.acc-panel > div { overflow: hidden; visibility: hidden; transition: visibility var(--dur-slow); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-item.is-open .acc-panel > div { visibility: visible; }
.acc-body { max-width: 820px; padding: 0 clamp(20px, 2.4vw, 28px) clamp(24px, 3vw, 32px); font-size: 16px; line-height: 1.95; font-weight: 300; color: var(--th-ink); }
.footnote { margin-top: 24px; font-size: 14px; line-height: 1.8; font-weight: 300; color: var(--fg-3); }

.pillar-cta {
  margin-top: 40px; padding: clamp(24px, 3vw, 36px); border-radius: 16px;
  border: 1px solid var(--ix-red-100); background: var(--ix-red-50);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.pillar-cta p { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.6; font-weight: 600; }
.pillar-cta .btn { white-space: normal; text-align: center; }

.other-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.other-pillar { display: flex; align-items: center; gap: 24px; padding: 28px 32px; border: 1px solid var(--border-1); border-radius: 16px; background: var(--th-bg); box-shadow: var(--shadow-1); color: var(--th-ink); }
.other-pillar:hover { color: var(--th-ink); }
.other-pillar-text { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.other-pillar-name { font-size: 22px; font-weight: 600; line-height: 1.4; }
.other-pillar-tagline { font-size: 15px; font-weight: 300; line-height: 1.75; color: var(--fg-2); }
.circle-arrow { flex-shrink: 0; width: 48px; height: 48px; border-radius: 999px; background: #921A1F; color: #fff; display: grid; place-items: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 24px; border: 1px solid var(--border-1); border-radius: 16px; background: var(--th-bg); box-shadow: var(--shadow-1); color: var(--th-ink); }
.contact-card:hover { color: var(--th-ink); }
div.contact-card:hover { transform: none; box-shadow: var(--shadow-1); }
.contact-card-icon { flex-shrink: 0; width: 32px; height: 52px; display: grid; place-items: center; color: var(--th-red); }
.contact-card-text { display: flex; flex-direction: column; gap: 4px; }
.contact-card-label { font-size: 14px; font-weight: 400; color: var(--fg-2); }
.contact-card-value { font-size: 17px; font-weight: 500; text-align: right; }
.contact-success { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.contact-success p { max-width: 420px; font-size: 22px; line-height: 1.7; font-weight: 600; }
.contact-success-icon { width: 72px; height: 72px; border-radius: 999px; display: grid; place-items: center; background: var(--ix-success-bg); color: var(--ix-success); }

/* ---------- CTA band ---------- */
.cta-band-wrap { background: var(--th-bg); padding-block: clamp(64px, 8vw, 96px); }
.cta-band-wrap .container { max-width: calc(var(--container-max) + 2 * var(--gutter)); }
.cta-band {
  position: relative; overflow: hidden; border-radius: 20px; background: var(--th-band); color: #fff;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 72px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.cta-band-rings { position: absolute; left: -60px; top: -120px; width: 460px; height: auto; pointer-events: none; }
.cta-band-text { position: relative; max-width: 640px; font-size: clamp(24px, 3vw, 36px); line-height: 1.5; font-weight: 600; }
.cta-band .btn { position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: #231F20; color: #fff; }
.site-footer > .container { padding-top: clamp(56px, 7vw, 80px); padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer-about { display: flex; flex-direction: column; gap: 20px; }
.footer-about > a:first-child { align-self: flex-start; }
.footer-about img { height: 40px; width: auto; display: block; }
.footer-about p { max-width: 340px; font-size: 15px; line-height: 1.85; font-weight: 300; color: #D6D3D3; }
.footer-social {
  align-self: flex-start; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28);
  display: grid; place-items: center; color: #fff; transition: background 200ms, border-color 200ms;
}
.footer-social:hover { color: #fff; background: #921A1F; border-color: #921A1F; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col a, .footer-col span { font-size: 15px; font-weight: 300; line-height: 1.7; color: #D6D3D3; }
.footer-col a:hover { color: #fff; }
.footer-col [dir="ltr"] { text-align: right; }
.footer-col .footer-heading { margin-bottom: 4px; font-weight: 600; color: #fff; }
.footer-copy { padding-top: 24px; font-size: 14px; font-weight: 300; color: #9A9596; }

/* ---------- Scroll reveal ----------
   Only hidden when JS is running (html.js); site.js adds .is-revealed. */
.js [data-reveal] {
  opacity: 0; translate: 0 20px;
  transition: opacity 600ms var(--ease-out) var(--rv-delay, 0ms), translate 600ms var(--ease-out) var(--rv-delay, 0ms), var(--tx, color 0s);
}
.js [data-reveal].is-revealed { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; translate: none; }
}
