:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-subtle: #f6f9fc;
  --surface-strong: #eaf1f7;
  --text: #0d1b2b;
  --text-soft: #4d6075;
  --text-faint: #60758a;
  --line: #d4e0ea;
  --line-strong: #b9cedf;
  --accent: #0878b9;
  --accent-strong: #075a8c;
  --accent-soft: #e5f3fa;
  --success: #13734b;
  --success-soft: #e5f5ed;
  --warning: #996000;
  --warning-soft: #fff2d9;
  --danger: #b62e35;
  --danger-soft: #fdecee;
  --footer-bg: #dceaf4;
  --footer-text: #31485d;
  --footer-link: #075a8c;
  --footer-line: #bed2e2;
  --shadow-sm: 0 3px 8px rgba(27, 61, 91, .08);
  --shadow-md: 0 18px 48px rgba(20, 45, 70, .18);
  --radius-sm: 8px;
  --radius: 14px;
  --shell: 1240px;
  --z-dropdown: 120;
  --z-chatbot: 240;
  --space-xs: .5rem;
  --space-sm: .75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --font: "Segoe UI Variable", Aptos, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d141d;
  --surface: #131e29;
  --surface-subtle: #182532;
  --surface-strong: #213141;
  --text: #eef5fb;
  --text-soft: #b0c0cf;
  --text-faint: #8fa3b6;
  --line: #293c4e;
  --line-strong: #3b566e;
  --accent: #72bde7;
  --accent-strong: #a0d6f2;
  --accent-soft: #17374a;
  --success: #6dd0a2;
  --success-soft: #173a2c;
  --warning: #f5c269;
  --warning-soft: #3d2e17;
  --danger: #ff8d93;
  --danger-soft: #442126;
  --footer-bg: #20384d;
  --footer-text: #ccdae6;
  --footer-link: #ffffff;
  --footer-line: #36546d;
  --shadow-sm: 0 3px 8px rgba(0, 0, 0, .18);
  --shadow-md: 0 20px 54px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 8.5rem; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.55; }
button, input { font: inherit; }
button { color: inherit; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
[hidden] { display: none !important; }

.shell { width: min(calc(100% - 1.5rem), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: .75rem; z-index: 300; transform: translateY(-160%); padding: .55rem .8rem; border-radius: var(--radius-sm); background: var(--text); color: var(--surface); }
.skip-link:focus { transform: none; }
.muted { color: var(--text-soft); }
.eyebrow { margin: 0 0 .35rem; color: var(--accent); font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.ui-icon, .nav-icon, .section-chevron, .resource-external-icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

:where(a, button, summary, input):focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; }

.app-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); }
.header-inner { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.brand { min-width: 0; display: inline-flex; flex: 1 1 auto; align-items: center; gap: .55rem; overflow: hidden; color: var(--text); text-decoration: none; }
.brand-mark { width: clamp(4.75rem, 25vw, 6rem); flex: 0 0 auto; }
.brand-mark img { width: 100%; height: auto; }
html[data-theme="dark"] .brand-mark img { filter: invert(1); }
.brand-copy { min-width: 0; line-height: 1.15; }
.brand-copy strong { display: block; overflow: hidden; font-size: clamp(.78rem, 3.6vw, .9rem); text-overflow: ellipsis; white-space: nowrap; }
.header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: .5rem; }
.language-switcher { position: relative; }
.language-toggle {
  min-width: 4.8rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  padding: 0 .65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.language-toggle:hover { border-color: var(--line-strong); background: var(--surface-subtle); }
.language-toggle:active { transform: translateY(1px); }
.language-globe { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.language-code { font-size: .78rem; font-weight: 800; letter-spacing: .035em; }
.language-chevron { width: .9rem; height: .9rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.language-toggle[aria-expanded="true"] .language-chevron { transform: rotate(180deg); }
.language-menu {
  position: absolute;
  z-index: var(--z-dropdown);
  top: calc(100% + .45rem);
  right: 0;
  width: 12rem;
  padding: .35rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 6px 8px rgba(20, 45, 70, .14);
}
html[data-theme="dark"] .language-menu { box-shadow: 0 6px 8px rgba(0, 0, 0, .28); }
.language-option {
  width: 100%;
  min-height: 2.75rem;
  display: grid;
  grid-template-columns: 1.15rem 2rem minmax(0, 1fr);
  align-items: center;
  gap: .55rem;
  padding: .5rem .65rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.language-option:hover { background: var(--surface-subtle); }
.language-option:active { background: var(--surface-strong); }
.language-option-code { color: var(--text-soft); font-size: .75rem; font-weight: 800; letter-spacing: .035em; }
.language-option-name { overflow: hidden; font-size: .86rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.icon-button:hover { border-color: var(--line-strong); background: var(--surface-subtle); }
.icon-button:active { transform: translateY(1px); }
.icon-button svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
html[data-theme="light"] .icon-sun, html[data-theme="dark"] .icon-moon { display: none; }

.button { min-height: 2.75rem; padding: .55rem 1rem; border: 1px solid transparent; border-radius: 10px; font-weight: 700; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .46; cursor: not-allowed; transform: none; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-strong); }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--text); }
.header-actions .button { display: none; }

.loader-strip { padding: var(--space-xl) 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.loader-grid { display: grid; gap: var(--space-lg); }
.loader-grid h1 { margin: 0; font-size: 2rem; line-height: 1.08; letter-spacing: -.03em; }
.loader-grid .muted { max-width: 68ch; margin: .75rem 0 0; }
.input-group { display: grid; grid-template-columns: 1fr; gap: .5rem; padding: .35rem; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.input-prefix { display: none; }
.input-group input { min-width: 0; height: 2.75rem; padding-inline: .7rem; border: 0; outline: 0; background: transparent; color: var(--text); font: 600 .86rem "SFMono-Regular", Consolas, monospace; }
.source-help { margin: .5rem .15rem 0; color: var(--text-faint); font-size: .77rem; }

.app-state { padding: var(--space-lg) 0; }
.state-card { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.state-card strong { display: block; }
.state-card p { margin: .15rem 0 0; color: var(--text-soft); }
.spinner { width: 1.5rem; height: 1.5rem; flex: 0 0 1.5rem; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.state-icon { width: 1.75rem; height: 1.75rem; display: grid; place-items: center; flex: 0 0 1.75rem; border-radius: 50%; color: var(--danger); background: var(--danger-soft); font-weight: 800; }
.error-state { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-section { padding: var(--space-md) 0 var(--space-lg); }
.hero-grid { display: grid; gap: var(--space-lg); padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at 95% 0%, var(--accent-soft), transparent 34%), var(--surface); }
.hero-copy { min-width: 0; }
.badge-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: var(--space-md); }
.badge { display: inline-flex; align-items: center; gap: .4rem; min-height: 1.75rem; padding: .2rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-subtle); color: var(--text-soft); font-size: .74rem; font-weight: 700; }
.badge::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--text-faint); }
.badge.success { color: var(--success); border-color: color-mix(in srgb, var(--success) 28%, var(--line)); background: var(--success-soft); }
.badge.success::before { background: var(--success); }
.badge.accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); background: var(--accent-soft); }
.badge.accent::before { background: var(--accent); }
.hero-copy h2 { max-width: 16ch; margin: .15rem 0 .8rem; font-size: 2.35rem; line-height: .98; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere; }
.hero-description { max-width: 68ch; margin: 0; color: var(--text-soft); font-size: .98rem; line-height: 1.65; text-wrap: pretty; }
.hero-meta { display: grid; grid-template-columns: 1fr; gap: 1px; margin: var(--space-lg) 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.hero-meta div { min-width: 0; padding: .75rem .85rem; background: var(--surface); }
.hero-meta dt { color: var(--text-faint); font-size: .71rem; font-weight: 700; letter-spacing: .04em; }
.hero-meta dd { margin: .2rem 0 0; overflow-wrap: anywhere; font-weight: 700; font-variant-numeric: tabular-nums; }

.product-gallery { min-height: 22rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(14rem, 1fr) 6.5rem; gap: .5rem; }
.gallery-item { min-width: 0; min-height: 0; overflow: hidden; position: relative; margin: 0; border-radius: 10px; background: var(--surface-strong); }
.gallery-item:first-child { grid-column: 1 / -1; }
.gallery-item:only-child { grid-column: 1 / -1; grid-row: 1 / -1; }
.gallery-item:nth-child(2):last-child { grid-column: 1 / -1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.02); }
.gallery-caption { position: absolute; left: .5rem; right: .5rem; bottom: .5rem; padding: .4rem .55rem; overflow: hidden; border-radius: 7px; background: rgba(9, 22, 35, .76); color: #fff; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.gallery-placeholder { grid-column: 1 / -1; display: grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface-subtle); color: var(--text-faint); }

.content-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); padding-bottom: var(--space-2xl); }
.section-sidebar { min-width: 0; max-width: 100%; position: sticky; top: 4rem; z-index: 50; padding-block: .5rem; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); }
.sidebar-card { min-width: 0; max-width: 100%; padding: .55rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.sidebar-title { margin: 0 .35rem .5rem; color: var(--text-faint); font-size: .72rem; font-weight: 700; }
#sectionNav { min-width: 0; max-width: 100%; display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: .15rem; }
#sectionNav a { min-height: 2.5rem; display: inline-flex; align-items: center; gap: .4rem; flex: 0 0 auto; padding: .4rem .65rem; border: 1px solid transparent; border-radius: 999px; color: var(--text-soft); font-size: .78rem; font-weight: 650; text-decoration: none; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
#sectionNav a:hover { border-color: var(--line); background: var(--surface-subtle); color: var(--text); }
#sectionNav a.active { border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); background: var(--accent-soft); color: var(--accent-strong); }
.nav-icon { width: .95rem; height: .95rem; flex: 0 0 .95rem; }
.nav-label { white-space: nowrap; }
.nav-count { min-width: 1.25rem; height: 1.25rem; display: grid; place-items: center; padding-inline: .25rem; border-radius: 999px; background: var(--surface-strong); color: var(--text-faint); font-size: .68rem; font-variant-numeric: tabular-nums; }

.passport-content { width: 100%; min-width: 0; max-width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.passport-section { width: 100%; min-width: 0; max-width: 100%; scroll-margin-top: 9rem; overflow: clip; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.passport-section[open] { border-color: var(--line-strong); }
.section-heading { min-height: 5.5rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: 1rem; cursor: pointer; list-style: none; transition: background-color .18s ease; }
.section-heading::-webkit-details-marker { display: none; }
.section-heading:hover { background: var(--surface-subtle); }
.passport-section[open] > .section-heading { border-bottom: 1px solid var(--line); background: var(--surface-subtle); }
.section-icon { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.section-icon .ui-icon { width: 1.25rem; height: 1.25rem; }
.section-heading-copy { min-width: 0; display: grid; gap: .18rem; }
.section-title { color: var(--text); font-size: 1.05rem; font-weight: 760; line-height: 1.22; letter-spacing: -.015em; text-wrap: balance; }
.section-description { color: var(--text-soft); font-size: .8rem; line-height: 1.45; text-wrap: pretty; }
.section-heading-meta { display: flex; align-items: center; gap: .25rem; color: var(--text-faint); }
.section-count { min-width: 1.75rem; height: 1.75rem; display: grid; place-items: center; padding-inline: .3rem; border-radius: 999px; background: var(--surface-strong); font-size: .72rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.section-chevron { width: 1.25rem; height: 1.25rem; transition: transform .2s ease; }
.passport-section[open] .section-chevron { transform: rotate(180deg); }
.section-body { width: 100%; min-width: 0; max-width: 100%; padding: 1rem 1rem 1.2rem; background: color-mix(in srgb, var(--surface-subtle) 42%, var(--surface)); }
.section-body > * + * { margin-top: .9rem; }
.section-card { width: 100%; min-width: 0; max-width: 100%; overflow: visible; }

.data-grid { width: 100%; min-width: 0; max-width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1.5rem; margin: 0; background: transparent; }
.data-field { min-width: 0; position: relative; padding: .9rem 0 1rem 1rem; border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent); background: transparent; }
.data-field::before { content: ""; width: .38rem; height: .38rem; position: absolute; left: 0; top: 1.18rem; border-radius: 50%; background: var(--accent); opacity: .55; }
.field-label { margin: 0 0 .4rem; color: var(--text-faint); font-size: .73rem; font-weight: 650; letter-spacing: .012em; line-height: 1.35; }
.field-value { min-width: 0; margin: 0; color: var(--text); font-size: .98rem; font-weight: 620; line-height: 1.5; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.field-value strong { font-weight: 750; }
.field-value a { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; margin-left: -.35rem; padding: .25rem .38rem; border-radius: 7px; color: var(--accent-strong); background: var(--accent-soft); font-weight: 680; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.field-value a::after { content: "↗"; flex: 0 0 auto; font-size: .8em; }
.field-value a:hover { color: var(--text); background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface-strong)); }
.data-field-wide { grid-column: 1 / -1; }
.data-field-prose .field-value { max-width: 72ch; color: var(--text-soft); font-weight: 500; line-height: 1.68; text-wrap: pretty; }
.value-with-unit { max-width: 100%; display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; }
.value-unit { color: var(--text-soft); font-size: .8em; font-weight: 700; white-space: nowrap; }
.empty-value { color: var(--text-faint); }

.metric-value { display: flex; align-items: baseline; gap: .35rem; }
.metric-value strong { font-size: 1.2rem; letter-spacing: -.02em; }
.metric-track { width: min(100%, 15rem); height: .4rem; margin-top: .65rem; overflow: hidden; border-radius: 999px; background: var(--surface-strong); }
.metric-fill { height: 100%; width: var(--value, 0%); border-radius: inherit; background: var(--accent); }
.boolean-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.boolean-pill.true { color: var(--success); background: var(--success-soft); }
.boolean-pill.false { color: var(--text-soft); background: var(--surface-strong); }
.boolean-pill::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }

.object-stack { display: grid; gap: .8rem; }
.object-card { overflow: hidden; border-radius: 12px; background: color-mix(in srgb, var(--surface-subtle) 76%, var(--surface)); }
.object-card + .object-card { border-top: 0; }
.object-card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent); background: transparent; }
.object-card-heading { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .6rem; }
.object-card-header strong { font-size: .9rem; letter-spacing: -.01em; }
.organization-role { display: inline-flex; align-items: center; min-height: 1.35rem; padding: .12rem .42rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent-strong); font-size: .68rem; font-weight: 750; line-height: 1.2; }
.object-index { color: var(--text-faint); font-size: .72rem; font-weight: 700; }
.object-card > .data-grid { padding: 0 1rem .4rem; }
.nested-object { display: grid; }
.nested-row { min-width: 0; display: grid; gap: .3rem; padding: .7rem 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent); }
.nested-row:last-child { border-bottom: 0; }
.nested-key { color: var(--text-faint); font-size: .74rem; font-weight: 650; }

.composition-list { display: grid; gap: .2rem; padding: .15rem 0 .35rem; }
.composition-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .55rem 1rem; padding: .75rem 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent); }
.composition-item:last-child { border-bottom: 0; }
.composition-name { font-weight: 680; }
.composition-bar { grid-column: 1 / -1; grid-row: 2; height: .55rem; overflow: hidden; border-radius: 999px; background: var(--surface-strong); }
.composition-bar span { display: block; height: 100%; width: var(--percentage); border-radius: inherit; background: var(--accent); }
.composition-percentage { min-width: 3rem; text-align: right; font-variant-numeric: tabular-nums; font-weight: 750; }

.resource-grid { display: grid; grid-template-columns: 1fr; gap: .65rem; padding: .75rem; }
.resource-card { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; min-height: 4.25rem; padding: .75rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-subtle); color: inherit; text-decoration: none; transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
.resource-card:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.resource-card:active { transform: translateY(1px); }
.resource-icon { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.resource-icon .ui-icon { width: 1.25rem; height: 1.25rem; }
.resource-icon-linkedin { color: #0a66c2; background: #e4f0fb; }
.resource-icon-instagram { color: #b12b76; background: #fae9f2; }
html[data-theme="dark"] .resource-icon-linkedin { color: #83bdf0; background: #19354d; }
html[data-theme="dark"] .resource-icon-instagram { color: #f0a5cb; background: #44243a; }
.resource-copy { min-width: 0; display: grid; gap: .1rem; }
.resource-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.resource-copy small { overflow: hidden; color: var(--text-faint); font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.resource-external-icon { width: 1rem; height: 1rem; color: var(--text-faint); }

.related-products-section { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.related-products-title { margin: 0 0 .85rem; color: var(--text); font-size: 1.15rem; line-height: 1.25; letter-spacing: -.015em; }
.related-products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 17rem)); gap: .8rem; }
.related-product-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-subtle); color: var(--text); text-decoration: none; transition: border-color .18s ease, background-color .18s ease, transform .18s cubic-bezier(.22, 1, .36, 1); }
.related-product-card:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.related-product-card:active { transform: translateY(0); }
.related-product-image { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface-strong); }
.related-product-copy { display: grid; gap: .2rem; padding: .75rem .8rem .85rem; }
.related-product-name { font-size: .9rem; font-weight: 750; line-height: 1.35; text-wrap: pretty; }
.related-product-price { color: var(--text-soft); font-size: .82rem; font-weight: 500; line-height: 1.35; }

.embedded-media { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.embedded-video-grid, .embedded-tour-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.embedded-frame { width: 100%; display: block; border: 0; background: #000; }
.embedded-video-frame { aspect-ratio: 16 / 9; }
.embedded-tour-item { height: clamp(20rem, 60vw, 42rem); position: relative; background: var(--surface-subtle); }
.embedded-tour-frame { height: 100%; opacity: 0; background: var(--surface-subtle); transition: opacity .2s cubic-bezier(.22, 1, .36, 1); }
.embedded-tour-loader { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: .7rem; background: var(--surface-subtle); color: var(--text-soft); font-size: .9rem; font-weight: 700; transition: opacity .2s cubic-bezier(.22, 1, .36, 1), visibility .2s; }
.embedded-tour-spinner { width: 1.35rem; height: 1.35rem; flex: 0 0 1.35rem; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .75s linear infinite; }
.embedded-tour-item.is-loaded .embedded-tour-frame { opacity: 1; }
.embedded-tour-item.is-loaded .embedded-tour-loader { opacity: 0; visibility: hidden; pointer-events: none; }

.raw-dialog { width: min(57.5rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 2rem); padding: 0; overflow: hidden; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-md); }
.raw-dialog::backdrop { background: rgba(3, 10, 20, .65); backdrop-filter: blur(4px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; font-size: 1.25rem; }
.dialog-header .eyebrow { margin: 0; }
.raw-dialog pre { max-height: 70dvh; margin: 0; padding: 1rem; overflow: auto; background: var(--surface-subtle); color: var(--text-soft); font-size: .76rem; line-height: 1.65; tab-size: 2; }

.brand-resource-section { padding: 0 0 var(--space-lg); }
.brand-resource-frame { display: flex; justify-content: center; }
.brand-resource-image { display: block; width: auto; max-width: 100%; height: auto; max-height: 20rem; object-fit: contain; }

.app-footer { padding: 2.5rem 0 2.75rem; border-top: 1px solid var(--footer-line); background: var(--footer-bg); color: var(--footer-text); font-size: .84rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer-logo { width: min(12rem, 60vw); height: auto; }
html[data-theme="dark"] .footer-logo { filter: brightness(0) invert(1); opacity: .92; }
.footer-address { display: flex; flex-direction: column; align-items: center; gap: .1rem; margin: 0; font-style: normal; line-height: 1.65; }
.footer-address span, .footer-address a { display: block; }
.footer-address a { color: var(--footer-link); text-decoration: none; text-underline-offset: 3px; }
.footer-address a:hover { color: var(--text); text-decoration: underline; }

.demo-chatbot {
  --chat-purple: #6d28d9;
  --chat-purple-dark: #4c116d;
  --chat-purple-soft: #f0eafa;
  --chat-ink: #371643;
  --chat-muted: #705d79;
  --chat-line: #d9cce4;
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: var(--z-chatbot);
  color: var(--chat-ink);
  font-family: var(--font);
}

.chatbot-launcher {
  display: grid;
  justify-items: end;
  gap: .2rem;
}

.chatbot-launch-button,
.chatbot-dismiss-button,
.chatbot-panel-close,
.chatbot-send-button,
.chatbot-tab {
  appearance: none;
  padding: 0;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.chatbot-launch-button {
  width: 5.1rem;
  height: 5.1rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 20px rgba(36, 13, 50, .18);
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease;
}

.chatbot-launch-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(36, 13, 50, .23);
}

.chatbot-launch-button:active { transform: translateY(0) scale(.98); }

.chatbot-brand-crop {
  width: 5rem;
  height: 5rem;
  display: block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #050505 url("/assets/img/almaras-chatbot.webp") center / cover no-repeat;
}

.chatbot-dismiss-button {
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  border: 1.5px solid #17121a;
  border-radius: 50%;
  background: #fff;
  color: #17121a;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.chatbot-dismiss-button:hover {
  background: #17121a;
  color: #fff;
  transform: rotate(4deg);
}

.chatbot-dismiss-button svg,
.chatbot-panel-close svg,
.chatbot-send-button svg,
.chatbot-tab svg,
.chatbot-attachment-icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chatbot-panel {
  width: min(25.5rem, calc(100vw - 2rem));
  height: min(45.5rem, calc(100dvh - 2rem));
  min-height: 30rem;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(32, 11, 45, .24);
  animation: chatbot-panel-in .22s cubic-bezier(.22, 1, .36, 1);
}

.chatbot-panel:not([hidden]) { display: flex; flex-direction: column; }

@keyframes chatbot-panel-in {
  from { opacity: 0; transform: translateY(.75rem) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-header {
  min-height: 4.65rem;
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: 0 .75rem 0 0;
  background: var(--chat-purple);
  color: #fff;
}

.chatbot-header-logo {
  width: 4.2rem;
  height: 4.65rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050505;
}

.chatbot-header-logo .chatbot-brand-crop {
  width: 3.85rem;
  height: 3.85rem;
  box-shadow: none;
}

.chatbot-agent-copy { min-width: 0; display: grid; gap: .1rem; line-height: 1.25; }
.chatbot-agent-copy strong { display: flex; align-items: center; gap: .28rem; font-size: 1rem; }
.chatbot-agent-copy > span { font-size: .83rem; opacity: .94; }
.chatbot-ai-badge { padding: .06rem .22rem; border-radius: 4px; background: #fff; color: var(--chat-purple); font-size: .75rem; font-weight: 800; }

.chatbot-panel-close {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  color: var(--chat-purple-dark);
  transition: transform .18s ease, background-color .18s ease;
}

.chatbot-panel-close:hover { background: #f5effb; transform: scale(1.04); }
.chatbot-panel-close svg { width: 1.35rem; height: 1.35rem; stroke-width: 2.4; }

.chatbot-conversation {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.15rem .8rem .8rem;
  scrollbar-color: var(--chat-line) transparent;
}

.chatbot-introduction > p { margin: 0; }
#chatbotWelcomeMessage { color: var(--chat-ink); font-size: .98rem; line-height: 1.55; }

.chatbot-ai-notice {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: .45rem !important;
  color: var(--chat-muted);
  font-size: .82rem;
}

.chatbot-ai-notice svg { width: .95rem; height: .95rem; flex: 0 0 auto; fill: currentColor; }
.chatbot-messages { display: grid; gap: .65rem; margin-top: 1rem; }
.chatbot-message-row { display: flex; }
.chatbot-message-row.user { justify-content: flex-end; }

.chatbot-message {
  max-width: 84%;
  margin: 0;
  padding: .65rem .78rem;
  border-radius: 12px;
  font-size: .88rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.chatbot-message-row.user .chatbot-message {
  border-bottom-right-radius: 4px;
  background: var(--chat-purple);
  color: #fff;
}

.chatbot-message-row.assistant .chatbot-message {
  border-bottom-left-radius: 4px;
  background: var(--chat-purple-soft);
  color: var(--chat-ink);
}

.chatbot-form { padding: .55rem .9rem .7rem; }

.chatbot-input-wrap {
  min-height: 3rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem;
  padding: .35rem .45rem .35rem .8rem;
  border-radius: 12px;
  background: #eeeaf0;
  color: var(--chat-purple-dark);
}

.chatbot-input-wrap:focus-within { box-shadow: 0 0 0 3px rgba(109, 40, 217, .22); }
.chatbot-attachment-icon { width: 1.15rem; height: 1.15rem; stroke-width: 1.8; }

.chatbot-input-wrap input {
  min-width: 0;
  height: 2.2rem;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--chat-ink);
  font-size: .9rem;
}

.chatbot-input-wrap input::placeholder { color: #705d79; opacity: 1; }

.chatbot-send-button {
  width: 2.55rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #6f2108;
  color: #fff;
  transition: background-color .18s ease, transform .18s ease;
}

.chatbot-send-button:hover { background: #8a2c0d; transform: scale(1.03); }
.chatbot-send-button:active { transform: scale(.98); }
.chatbot-send-button svg { width: 1.2rem; height: 1.2rem; stroke-width: 2.2; }

.chatbot-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--chat-line);
}

.chatbot-tab {
  min-height: 4.05rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .25rem;
  position: relative;
  background: #fff;
  color: #9b86a6;
  font-size: .72rem;
}

.chatbot-tab::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: transparent; }
.chatbot-tab.active { color: var(--chat-purple-dark); font-weight: 700; }
.chatbot-tab.active::before { background: var(--chat-purple-dark); }
.chatbot-tab:disabled { cursor: default; opacity: 1; }
.chatbot-tab svg { width: 1.28rem; height: 1.28rem; }

.chatbot-terms,
.chatbot-powered { margin: 0; text-align: center; }

.chatbot-terms {
  padding: .3rem .65rem .45rem;
  color: var(--chat-purple-dark);
  font-size: .62rem;
  line-height: 1.4;
}

.chatbot-terms a { color: inherit; text-underline-offset: 2px; }

.chatbot-powered {
  padding: .35rem .65rem;
  border-top: 1px solid #eee8f2;
  background: #faf8fc;
  color: #8d7897;
  font-size: .7rem;
}

.chatbot-powered strong { color: var(--chat-purple-dark); }

@media (max-width: 30rem) {
  .demo-chatbot { right: .6rem; bottom: .6rem; }
  .chatbot-panel { width: calc(100vw - 1.2rem); height: calc(100dvh - 1.2rem); }
}

@media (max-height: 35rem) {
  .chatbot-panel { min-height: 0; }
  .chatbot-tabs, .chatbot-terms, .chatbot-powered { display: none; }
}

@media (min-width: 30rem) {
  .brand-mark { width: 6.75rem; }
  .brand-copy strong { font-size: .96rem; }
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 42.5rem) {
  .shell { width: min(calc(100% - 3rem), var(--shell)); }
  .header-actions .button { display: inline-flex; align-items: center; }
  .brand-mark { width: 7.5rem; }
  .brand-copy strong { font-size: 1.05rem; }
  .hero-grid { padding: 1.75rem; }
  .hero-copy h2 { font-size: 3.4rem; }
  .data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nested-row { grid-template-columns: minmax(8.5rem, .42fr) minmax(0, 1fr); gap: 1rem; }
  .resource-grid, .embedded-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .composition-item { grid-template-columns: minmax(7rem, 1fr) minmax(10rem, 2.4fr) auto; gap: 1rem; }
  .composition-bar { grid-column: auto; grid-row: auto; }
  .section-heading { padding: 1.15rem 1.25rem; }
  .section-title { font-size: 1.2rem; }
  .section-description { font-size: .84rem; }
}

@media (min-width: 56.25rem) {
  html { scroll-padding-top: 9.5rem; }
  .header-inner { min-height: 4.5rem; }
  .hero-section { padding: 1.75rem 0 2rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(24rem, .9fr); align-items: center; gap: 2.5rem; padding: 2rem; }
  .hero-copy h2 { font-size: 4.2rem; }
  .product-gallery { min-height: 29rem; grid-template-columns: 1.25fr .75fr; grid-template-rows: 1fr 1fr; }
  .gallery-item:first-child { grid-column: auto; grid-row: 1 / 3; }
  .gallery-item:only-child { grid-column: 1 / -1; grid-row: 1 / -1; }
  .gallery-item:nth-child(2):last-child { grid-column: auto; grid-row: 1 / 3; }
  .content-layout { gap: 1.25rem; padding-bottom: 4.5rem; }
  .section-sidebar { top: 4.5rem; }
  .sidebar-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .65rem; }
  .sidebar-title { margin: .7rem 0 0; padding-left: .35rem; }
  #sectionNav { flex-wrap: wrap; overflow-x: visible; padding-bottom: 0; }
  #sectionNav a { min-width: 0; flex: 0 1 auto; }
  .passport-content { gap: .9rem; }
  .section-heading { min-height: 6.5rem; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; padding: 1.25rem 1.5rem; }
  .section-icon { width: 2.75rem; height: 2.75rem; }
  .section-title { font-size: 1.4rem; }
  .section-description { font-size: .88rem; }
  .data-grid { grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
  .data-field { padding: 1rem 1.15rem; }
  .resource-grid { padding: 1rem; gap: 1rem; }
}

@media (min-width: 75rem) {
  .hero-copy h2 { font-size: 4.75rem; }
  .hero-grid { padding: 2.5rem; gap: 3.5rem; }
}

@media (max-width: 22rem) {
  .brand-copy { display: none; }
  .section-description { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
