/*
  Exact Libris static concept v1.8
  Static HTML5, CSS3 and vanilla JavaScript only.
  No frameworks, build tools, CDN assets or external dependencies.
*/

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-muted: #eef3f8;
  --panel: #ffffff;
  --ink: #172033;
  --ink-strong: #071b3a;
  --ink-muted: #5c6776;
  --ink-subtle: #798697;
  --navy: #071b3a;
  --navy-2: #102b55;
  --blue: #2454a6;
  --blue-soft: #e8f0fb;
  --teal: #2f8f8a;
  --teal-soft: #e7f4f2;
  --gold: #b68a35;
  --gold-soft: #f6efe1;
  --red-soft: #fff1ee;
  --border: #dce4ef;
  --border-strong: #c8d4e3;
  --focus: rgba(36, 84, 166, 0.55);
  --shadow: 0 24px 60px rgba(10, 26, 52, 0.12);
  --shadow-soft: 0 12px 34px rgba(10, 26, 52, 0.08);
  --portal-sidebar: #0d1829;
  --portal-topbar: #3f7ecb;
  --portal-purple: #6f2b8f;
  --portal-red: #c9463a;
  --portal-green: #70a764;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shell: 1160px;
  --header-height: 76px;
  --font-sans: Inter, "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 0%, rgba(36, 84, 166, 0.08), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(47, 143, 138, 0.075), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 42%, #f6f8fb 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.skip-link {
  position: fixed; top: 16px; left: 16px; z-index: 200;
  transform: translateY(-140%); border-radius: 999px; padding: 10px 16px;
  background: var(--navy); color: #fff; font-weight: 800; transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }
.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;
}

.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-height);
  display: grid; align-items: center; border-bottom: 1px solid rgba(220, 228, 239, 0.72);
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border); background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(7, 27, 58, 0.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; }
.brand img { filter: drop-shadow(0 8px 16px rgba(7, 27, 58, 0.1)); }
.brand--official .brand__logo { width: 152px; height: auto; filter: none; }
.brand__divider { width: 1px; height: 26px; background: var(--border-strong); }
.brand__product { color: var(--ink-strong); font-size: 1.02rem; font-weight: 760; letter-spacing: -0.025em; }
.brand__text { display: grid; gap: 0; line-height: 1; letter-spacing: -0.025em; }
.brand__text strong { color: var(--ink-strong); font-size: 1rem; font-weight: 760; }
.brand__text span { color: var(--blue); font-size: 0.92rem; font-weight: 680; }
.nav-menu, .nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-menu a, .nav-link {
  border-radius: 999px; padding: 10px 14px; color: var(--ink-muted);
  font-size: 0.93rem; font-weight: 700; transition: color 160ms ease, background 160ms ease;
}
.nav-menu a:hover, .nav-menu a.is-active, .nav-link:hover { background: var(--blue-soft); color: var(--blue); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border);
  border-radius: 14px; background: var(--panel); color: var(--navy); cursor: pointer;
  box-shadow: 0 8px 18px rgba(7, 27, 58, 0.06);
}
.nav-toggle span:not(.sr-only) {
  display: block; width: 19px; height: 2px; margin: 4px auto; border-radius: 999px;
  background: currentColor; transition: transform 180ms ease, opacity 180ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  border: 1px solid var(--navy); border-radius: 999px; padding: 12px 20px;
  background: var(--navy); color: #fff; font-weight: 740; letter-spacing: -0.005em;
  box-shadow: 0 14px 30px rgba(7, 27, 58, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); background: var(--navy-2); box-shadow: 0 20px 40px rgba(7, 27, 58, 0.2); }
.button--secondary { border-color: var(--border-strong); background: #fff; color: var(--navy); box-shadow: none; }
.button--secondary:hover { border-color: rgba(36, 84, 166, 0.36); background: var(--blue-soft); box-shadow: 0 16px 32px rgba(10, 26, 52, 0.08); }
.button--small { min-height: 40px; padding: 8px 15px; font-size: 0.92rem; }

.section { position: relative; padding: 84px 0; }
.section--hero {
  min-height: calc(100vh - var(--header-height)); display: grid; align-items: center;
  overflow: clip; padding: 56px 0 78px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(248, 251, 254, 0.72), rgba(255, 255, 255, 0.92)), radial-gradient(circle at 74% 20%, rgba(36, 84, 166, 0.1), transparent 30rem);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0; opacity: 0.72;
  background-image: linear-gradient(rgba(7, 27, 58, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(7, 27, 58, 0.035) 1px, transparent 1px);
  background-size: 70px 70px; mask-image: radial-gradient(circle at 50% 30%, black, transparent 72%);
}
.orb { position: absolute; border-radius: 999px; filter: blur(16px); opacity: 0.42; animation: drift 13s ease-in-out infinite alternate; }
.orb--one { width: 320px; height: 320px; left: -130px; top: 130px; background: radial-gradient(circle, rgba(36, 84, 166, 0.14), transparent 68%); }
.orb--two { width: 440px; height: 440px; right: -180px; top: -80px; background: radial-gradient(circle, rgba(47, 143, 138, 0.12), transparent 70%); animation-delay: -4s; }
.orb--three { width: 250px; height: 250px; right: 29%; bottom: 8%; background: radial-gradient(circle, rgba(182, 138, 53, 0.1), transparent 70%); animation-delay: -8s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(24px, -18px, 0) scale(1.06); } }

.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(480px, 1.08fr); align-items: center; gap: 58px; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 0.72rem; font-weight: 780; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink-strong); letter-spacing: -0.028em; line-height: 1.14; }
h1 { max-width: 700px; margin-bottom: 20px; font-size: clamp(2rem, 3.35vw, 3.15rem); font-weight: 760; }
h2 { margin-bottom: 16px; font-size: clamp(1.45rem, 2.1vw, 2.05rem); font-weight: 740; }
h3 { margin-bottom: 10px; font-size: 1.08rem; font-weight: 740; }
.hero__lead { max-width: 660px; margin-bottom: 28px; color: var(--ink-muted); font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.68; }
.hero__actions, .cta-card__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.trust-list, .check-list, .plain-list { margin: 0; padding: 0; list-style: none; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-list li, .pill-row span, .tag {
  position: relative; border: 1px solid var(--border); border-radius: 999px; padding: 8px 13px;
  background: rgba(255, 255, 255, 0.78); color: var(--ink-muted); font-size: 0.9rem; font-weight: 680;
  box-shadow: 0 8px 18px rgba(7, 27, 58, 0.045);
}
.trust-list li { padding-left: 31px; }
.trust-list li::before { content: ""; position: absolute; top: 50%; left: 13px; width: 8px; height: 8px; border-radius: 999px; background: var(--teal); box-shadow: 0 0 0 5px rgba(47, 143, 138, 0.12); transform: translateY(-50%); }
.hero__visual { position: relative; }
.hero__visual::before { content: ""; position: absolute; inset: 7% 5% 4%; border-radius: 34px; background: linear-gradient(135deg, rgba(36, 84, 166, 0.12), rgba(47, 143, 138, 0.08)); filter: blur(36px); }
.hero__visual img { position: relative; width: 100%; border-radius: var(--radius-xl); filter: drop-shadow(0 34px 54px rgba(7, 27, 58, 0.18)); }
.hero__visual .portal-window { position: relative; width: min(100%, 780px); margin-left: auto; }
.hero-clyde {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.88) 38%, rgba(255,255,255,0.58) 70%, rgba(255,255,255,0.95) 100%),
    url("../img/clydehouse.png") center top / cover no-repeat;
  filter: grayscale(1) contrast(.92) saturate(.72);
  opacity: .20;
  mask-image: linear-gradient(180deg, black 0%, black 44%, transparent 92%);
}
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--ink-subtle); font-size: 0.7rem; font-weight: 760; letter-spacing: 0.2em; text-transform: uppercase; }
.hero__scroll::after { content: ""; display: block; width: 1px; height: 38px; margin: 8px auto 0; background: linear-gradient(var(--blue), transparent); }

.page-hero {
  position: relative; overflow: hidden;
  padding: 82px 0 58px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(248, 251, 254, 0.92), #fff 80%);
}
.page-hero--clyde::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.82), rgba(255,255,255,.96)), url("../img/clydehouse.png") center 32% / cover no-repeat;
  filter: grayscale(1) contrast(.95);
  opacity: .18;
}
.page-hero > .shell { position: relative; z-index: 1; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr); gap: 48px; align-items: end; }
.page-hero p:not(.eyebrow) { max-width: 700px; color: var(--ink-muted); font-size: 1.08rem; }
.breadcrumb { margin-bottom: 16px; color: var(--ink-subtle); font-size: 0.88rem; font-weight: 700; }
.breadcrumb a { color: var(--blue); }
.breadcrumb span { margin-inline: 8px; color: var(--ink-subtle); }
.hero-panel { border: 1px solid var(--border); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-soft); padding: 24px; }
.hero-panel strong { display: block; color: var(--ink-strong); font-size: 1rem; }
.hero-panel p { margin: 8px 0 0; color: var(--ink-muted); font-size: 0.95rem; }

.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading p:not(.eyebrow), .split-copy p, .company-panel p, .cta-card p, .site-footer p, .card p, .news-card p, .team-card p, .contact-card p { color: var(--ink-muted); }
.section-heading--row { max-width: none; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr); align-items: end; gap: 38px; }
.section-heading__copy { margin-bottom: 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section--stats { padding-top: 42px; }
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.stat-card, .feature-card, .architecture-card, .company-panel, .mini-card, .cta-card, .card, .news-card, .team-card, .contact-card, .form-card, .detail-card { border: 1px solid var(--border); background: var(--panel); box-shadow: var(--shadow-soft); }
.stat-card { min-height: 132px; border-radius: var(--radius-lg); padding: 22px 18px; }
.stat-card strong { display: block; margin-bottom: 8px; color: var(--navy); font-size: clamp(1.45rem, 2vw, 1.95rem); line-height: 1; letter-spacing: -0.05em; }
.stat-card span { color: var(--ink-muted); font-size: 0.9rem; font-weight: 700; }
.card-grid { display: grid; gap: 18px; }
.card-grid--two { grid-template-columns: repeat(2, 1fr); }
.card-grid--three { grid-template-columns: repeat(3, 1fr); }
.feature-card, .card, .news-card, .team-card, .contact-card, .detail-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 26px; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.feature-card { min-height: 224px; }
.feature-card::after, .card::after, .news-card::after {
  content: ""; position: absolute; inset: auto -20% -36% 42%; height: 130px; border-radius: 999px;
  background: radial-gradient(circle, rgba(36, 84, 166, 0.08), transparent 70%); transition: opacity 180ms ease, transform 180ms ease;
}
.feature-card:hover, .card:hover, .news-card:hover, .team-card:hover { transform: translateY(-4px); border-color: rgba(36, 84, 166, 0.28); box-shadow: 0 18px 46px rgba(10, 26, 52, 0.12); }
.feature-card:hover::after, .card:hover::after, .news-card:hover::after { opacity: 1; transform: translateY(-8px); }
.feature-card p, .mini-card p, .card p, .news-card p, .team-card p, .contact-card p { position: relative; margin-bottom: 0; }
.icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border: 1px solid rgba(36, 84, 166, 0.12); border-radius: 15px; background: linear-gradient(135deg, var(--blue-soft), #fff); }
.icon::before { content: ""; width: 23px; height: 23px; background: linear-gradient(135deg, var(--blue), var(--teal)); mask-size: contain; mask-position: center; mask-repeat: no-repeat; }
.icon--investor::before { mask-image: url("../img/icon-user.svg"); }
.icon--adviser::before { mask-image: url("../img/icon-network.svg"); }
.icon--fund::before { mask-image: url("../img/icon-stack.svg"); }
.icon--company::before { mask-image: url("../img/icon-building.svg"); }
.icon--reporting::before { mask-image: url("../img/icon-chart.svg"); }
.icon--api::before { mask-image: url("../img/icon-api.svg"); }

.section--split { overflow: hidden; background: var(--bg-soft); border-block: 1px solid var(--border); }
.section--split::before { content: ""; position: absolute; inset: 12% auto auto -20%; width: 560px; height: 560px; border-radius: 999px; background: radial-gradient(circle, rgba(36, 84, 166, 0.07), transparent 70%); pointer-events: none; }
.split-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr); align-items: center; gap: 56px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.architecture-card { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 14px; }
.architecture-card__header { position: relative; display: flex; gap: 8px; border-radius: 22px 22px 0 0; padding: 16px; background: #f3f6fa; border-bottom: 1px solid var(--border); }
.architecture-card__header span { width: 10px; height: 10px; border-radius: 999px; background: #b7c4d4; }
.architecture-card__body { position: relative; display: grid; gap: 22px; min-height: 395px; border-radius: 0 0 22px 22px; padding: 36px 26px; background: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(135deg, var(--navy), #0d2b55); background-size: 34px 34px, 34px 34px, auto; }
.node-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-self: end; }
.node { display: grid; place-items: center; min-height: 74px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.82); font-size: .92rem; font-weight: 740; text-align: center; }
.node--primary { width: min(100%, 340px); min-height: 86px; margin-inline: auto; border-color: rgba(255,255,255,.26); background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(47,143,138,.24)); color: #fff; font-size: 1.05rem; }
.connector { position: relative; height: 72px; }
.connector::before, .connector::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.26); }
.connector::before { width: 2px; height: 72px; }
.connector::after { top: 36px; width: 66%; height: 2px; }

.company-panel { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr); gap: 40px; align-items: start; border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 54px); }
.company-panel--with-media { align-items: center; background: linear-gradient(135deg, #fff, #f8fbfe); border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.company-media { position: relative; overflow: hidden; margin: 0; border: 1px solid var(--border); border-radius: 22px; background: var(--bg-muted); box-shadow: 0 18px 44px rgba(7, 27, 58, .12); }
.company-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(.82) contrast(.96); }
.company-media figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; border-radius: 14px; padding: 12px 14px; background: rgba(7, 27, 58, .82); color: rgba(255,255,255,.82); font-size: .82rem; line-height: 1.45; backdrop-filter: blur(10px); }
.company-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.company-facts div { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; background: var(--bg-soft); }
.company-facts strong { display: block; color: var(--navy); font-size: 1.25rem; letter-spacing: -0.04em; }
.company-facts span { color: var(--ink-muted); font-size: 0.86rem; font-weight: 700; }

.section--security { background: linear-gradient(135deg, var(--navy), #0c2547 58%, #102b55 100%); color: #fff; }
.section--security .eyebrow { color: #9bd6d0; }
.section--security h2, .section--security h3 { color: #fff; }
.security-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(380px, 1fr); gap: 42px; align-items: start; }
.security-copy p { color: rgba(255,255,255,.76); }
.security-list { display: grid; gap: 16px; }
.mini-card { border-radius: var(--radius-lg); padding: 28px; }
.section--security .mini-card { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.075); box-shadow: none; }
.section--security .mini-card p { color: rgba(255,255,255,.74); }

.cta-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 34px; align-items: center; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(30px, 5vw, 58px); background: radial-gradient(circle at right top, rgba(36,84,166,.1), transparent 34%), #fff; }
.cta-card__actions { justify-content: flex-end; }



/* Portal-led interface components added in v1.4 */
.portal-window {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 34px 70px rgba(7, 27, 58, 0.18);
}
.portal-window--hero { transform: perspective(1400px) rotateY(-4deg) rotateX(1.5deg); transform-origin: center; }
.portal-topbar {
  display: flex; align-items: center; gap: 12px;
  min-height: 38px; padding: 0 14px;
  background: linear-gradient(90deg, var(--portal-topbar), var(--blue));
  color: #fff; font-size: 0.76rem; letter-spacing: -0.01em;
}
.portal-mark { display: grid; place-items: center; width: 24px; height: 24px; color: #fff; font-weight: 820; }
.portal-spacer { flex: 1; }
.portal-user { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.24); font-size: .68rem; font-weight: 800; }
.portal-layout { display: grid; grid-template-columns: 74px 1fr; min-height: 470px; background: var(--bg-soft); }
.portal-sidebar { display: grid; align-content: start; justify-items: center; gap: 17px; padding: 24px 0; background: var(--portal-sidebar); }
.portal-nav-dot { width: 20px; height: 20px; border-radius: 7px; background: rgba(255,255,255,.17); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.portal-nav-dot.is-active { background: #fff; }
.portal-nav-dot.alert { position: relative; }
.portal-nav-dot.alert::after { content: ""; position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; border-radius: 999px; background: var(--portal-red); }
.portal-main { padding: 18px; display: grid; gap: 12px; }
.portal-search-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 9px; align-items: center; }
.portal-search-row > span { color: var(--ink-subtle); font-size: .72rem; font-weight: 760; }
.portal-search { border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; background: #fff; color: #98a3b3; font-size: .72rem; }
.portal-button { border: 0; border-radius: 8px; padding: 8px 12px; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 760; text-align: center; }
.portal-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); color: var(--ink-subtle); font-size: .68rem; font-weight: 760; }
.portal-tabs span { padding: 0 4px 8px; }
.portal-tabs span:first-child { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
.portal-kpis { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; }
.portal-kpis article, .portal-card, .portal-activity, .portal-mode-card, .portal-feature-stack article, .workflow-board > div {
  border: 1px solid var(--border); background: #fff; box-shadow: 0 8px 22px rgba(10, 26, 52, 0.055);
}
.portal-kpis article { min-height: 78px; border-radius: 13px; padding: 14px; }
.portal-kpis span, .portal-card-head span { display: block; color: var(--ink-subtle); font-size: .72rem; font-weight: 760; }
.portal-kpis strong, .portal-card-head strong { display: block; margin-top: 6px; color: var(--ink-strong); font-size: 1.05rem; letter-spacing: -0.04em; }
.portal-kpis i { display: block; width: 68%; height: 3px; margin-top: 10px; border-radius: 99px; background: var(--blue); }
.portal-kpis article:nth-child(2) i { width: 78%; background: var(--teal); }
.portal-dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.portal-card { min-height: 132px; border-radius: 13px; padding: 12px; display: grid; align-content: start; gap: 8px; }
.portal-card--wide { grid-column: span 2; }
.portal-ring { position: relative; width: 72px; height: 72px; margin: 2px auto 0; border-radius: 999px; }
.portal-ring::after { content: ""; position: absolute; inset: 18px; border-radius: 999px; background: #fff; }
.ring-purple { background: conic-gradient(var(--portal-purple) 0 68%, #e7eaf0 68% 100%); }
.ring-red { background: conic-gradient(var(--portal-red) 0 42%, #e7eaf0 42% 100%); }
.ring-green { background: conic-gradient(var(--portal-green) 0 74%, #e7eaf0 74% 100%); }
.portal-bars { display: grid; gap: 12px; padding-top: 10px; }
.portal-bars span { display: block; height: 8px; width: var(--w); max-width: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--blue)); box-shadow: 0 0 0 1px rgba(47,143,138,.05); }
.portal-activity { border-radius: 13px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; color: var(--ink-muted); font-size: .76rem; }
.portal-activity strong { color: var(--ink-strong); }
.section--portal { background: #fff; border-bottom: 1px solid var(--border); }
.portal-showcase { display: grid; grid-template-columns: minmax(0, .8fr) minmax(420px, 1fr); gap: 34px; align-items: start; }
.portal-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.portal-mode-card { border-radius: var(--radius-lg); padding: 24px; }
.portal-mode-card strong { display: block; color: var(--ink-strong); margin-bottom: 8px; }
.portal-mode-card span { color: var(--ink-muted); font-size: .93rem; }
.portal-feature-stack { display: grid; gap: 14px; }
.portal-feature-stack article { border-radius: var(--radius-lg); padding: 22px; }
.portal-feature-stack span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-weight: 820; margin-bottom: 12px; }
.portal-feature-stack strong { display: block; color: var(--ink-strong); margin-bottom: 6px; }
.portal-feature-stack p { margin: 0; color: var(--ink-muted); }
.hero-panel--portal { overflow: hidden; background: linear-gradient(180deg, #fff, #f8fbfe); }
.mini-portal-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; }
.mini-portal-list span { border: 1px solid var(--border); border-radius: 10px; padding: 9px; background: #fff; color: var(--ink-muted); font-size: .78rem; font-weight: 760; }
.section--portal-light { background: #fff; }
.workflow-board { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.workflow-board > div { border-radius: var(--radius-lg); padding: 22px; }
.workflow-board strong { display: block; color: var(--ink-strong); margin-bottom: 6px; }
.workflow-board span { color: var(--blue); font-size: .92rem; font-weight: 780; }

/* Interior page components */
.solution-map { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 34px; align-items: start; }
.sticky-note { position: sticky; top: calc(var(--header-height) + 24px); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; background: #fff; box-shadow: var(--shadow-soft); }
.check-list { display: grid; gap: 12px; margin-top: 22px; }
.check-list li { position: relative; padding-left: 28px; color: var(--ink-muted); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.63em; width: 10px; height: 10px; border-radius: 999px; background: var(--teal); box-shadow: 0 0 0 5px rgba(47,143,138,.12); }
.detail-stack { display: grid; gap: 16px; }
.detail-card h3 { display: flex; align-items: center; gap: 10px; }
.detail-card h3::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--gold); box-shadow: 0 0 0 6px rgba(182,138,53,.13); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff; padding: 26px; box-shadow: var(--shadow-soft); }
.price-card strong { display: block; color: var(--navy); font-size: 1.75rem; letter-spacing: -0.05em; }
.price-card span { color: var(--ink-muted); font-weight: 700; }
.note { border-left: 3px solid var(--gold); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 16px 18px; background: var(--gold-soft); color: #6f5522; }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.team-card { display: grid; grid-template-columns: 132px 1fr; gap: 24px; min-height: 280px; align-items: start; }
.avatar { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 24px; background: linear-gradient(135deg, var(--blue-soft), var(--teal-soft)); border: 1px solid rgba(36,84,166,.14); color: var(--blue); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.04em; }
.team-photo { width: 132px; height: 132px; object-fit: cover; border-radius: 18px; border: 1px solid var(--border-strong); background: var(--bg-muted); box-shadow: 0 16px 30px rgba(7, 27, 58, .12); filter: grayscale(1) contrast(.98); }
.role { margin: -4px 0 14px; color: var(--gold); font-weight: 760; font-size: 0.92rem; }
.email-link { display: inline-flex; margin-top: 16px; color: var(--blue); font-weight: 740; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.news-card { min-height: 220px; display: grid; align-content: start; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--ink-subtle); font-size: 0.86rem; font-weight: 740; }
.news-meta span:first-child { border-radius: 999px; padding: 5px 10px; background: var(--blue-soft); color: var(--blue); }
.news-card a { color: var(--blue); font-weight: 740; margin-top: 16px; }
.archive-note { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; background: #fff; color: var(--ink-muted); }

.contact-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 28px; align-items: start; }
.contact-stack { display: grid; gap: 16px; }
.contact-card { padding: 24px; }
.contact-card a { color: var(--blue); font-weight: 740; text-decoration: underline; text-underline-offset: 4px; }
.address-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.address-box { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; background: var(--bg-soft); }
.address-box strong { color: var(--ink-strong); }
.form-card { border-radius: var(--radius-xl); padding: clamp(26px, 4vw, 42px); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
label { color: var(--ink-strong); font-size: 0.9rem; font-weight: 740; }
input, textarea { width: 100%; border: 1px solid var(--border-strong); border-radius: 13px; padding: 12px 14px; background: #fff; color: var(--ink); }
textarea { min-height: 138px; resize: vertical; }
.form-help, .form-status { color: var(--ink-muted); font-size: 0.88rem; }
.form-status { min-height: 1.4em; margin-top: 12px; font-weight: 700; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.site-footer { border-top: 1px solid rgba(255,255,255,.1); background: var(--navy); color: #fff; padding: 48px 0 22px; }
.footer-grid { display: grid; grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(140px, .75fr)); gap: 42px; }
.site-footer .brand__text strong, .site-footer .brand__text span, .site-footer .footer-heading { color: #fff; }
.site-footer .brand--official .brand__logo { filter: brightness(0) invert(1); opacity: .95; }
.site-footer .brand__divider { background: rgba(255,255,255,.28); }
.site-footer .brand__product { color: #fff; }
.site-footer p { max-width: 360px; margin: 18px 0 0; color: rgba(255,255,255,.68); }
.footer-heading { margin-bottom: 14px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer a:not(.brand) { display: block; margin: 8px 0; color: rgba(255,255,255,.7); font-weight: 680; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom p { margin: 0; max-width: none; font-size: .9rem; }
.footer-bottom a { margin: 0 !important; font-size: .9rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 620ms ease, transform 620ms ease; }
.reveal--delay { transition-delay: 100ms; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .nav-actions .nav-link { display: none; }
  .hero__grid, .split-grid, .security-grid, .solution-map, .contact-grid, .page-hero__grid, .portal-showcase { grid-template-columns: 1fr; }
  .hero__visual { max-width: 820px; margin-inline: auto; }
  .portal-window--hero { transform: none; }
  .stat-grid, .price-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid--three { grid-template-columns: repeat(2, 1fr); }
  .company-panel, .cta-card { grid-template-columns: 1fr; }
  .cta-card__actions { justify-content: flex-start; }
  .sticky-note { position: static; }
}

@media (max-width: 820px) {
  :root { --header-height: 74px; }
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .nav-toggle { display: inline-grid; place-items: center; order: 3; }
  .nav-actions { display: none; }
  .nav-menu {
    position: absolute; top: calc(100% + 10px); left: 14px; right: 14px;
    display: grid; gap: 4px; border: 1px solid var(--border); border-radius: 22px; padding: 10px;
    background: rgba(255,255,255,.98); box-shadow: var(--shadow); opacity: 0; pointer-events: none;
    transform: translateY(-8px); transition: opacity 180ms ease, transform 180ms ease;
  }
  .nav-menu.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-menu a { display: block; padding: 13px 14px; }
  .section { padding: 64px 0; }
  .section--hero { min-height: auto; padding: 52px 0 66px; }
  .hero__grid { gap: 34px; }
  .hero__scroll { display: none; }
  .section-heading--row, .company-panel, .team-card { grid-template-columns: 1fr; }
  .stat-grid, .card-grid--three, .card-grid--two, .team-grid, .news-grid, .price-grid, .address-grid, .footer-grid, .portal-modes, .workflow-board { grid-template-columns: 1fr; }
  .portal-layout { grid-template-columns: 54px 1fr; }
  .portal-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-card--wide { grid-column: span 2; }
  .company-facts { grid-template-columns: 1fr; }
  .node-row { grid-template-columns: 1fr; }
  .connector { display: none; }
  .architecture-card__body { min-height: auto; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(1.85rem, 11vw, 2.45rem); }
  .hero__actions, .cta-card__actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-panel, .feature-card, .card, .news-card, .team-card, .contact-card, .form-card { padding: 22px; }
  .portal-kpis, .portal-search-row { grid-template-columns: 1fr; }
  .portal-dashboard-grid { grid-template-columns: 1fr; }
  .portal-card--wide { grid-column: auto; }
  .portal-window { border-radius: 16px; }
  .portal-topbar strong { font-size: .68rem; }
  .brand--official .brand__logo { width: 128px; }
  .brand__product { font-size: .95rem; }
  .footer-bottom { flex-direction: column; }
}

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


.hero-panel--image { overflow: hidden; padding: 0; }
.hero-panel--image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.82) contrast(.96); }
.hero-panel--image div { padding: 22px; }
.hero-panel--image p { margin-bottom: 0; }

/* v1.6: landscape Clyde House page headers */
.page-hero--with-photo {
  padding-top: 26px;
}
.page-hero--with-photo::before {
  background: linear-gradient(180deg, rgba(246, 248, 251, .92), rgba(255,255,255,.98));
}
.page-landscape {
  position: relative;
  z-index: 1;
  margin: 0 0 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 46px rgba(7, 27, 58, .10);
}
.page-landscape img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 7;
  min-height: 240px;
  max-height: 360px;
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(.9) contrast(.98);
}
.page-landscape::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,27,58,.18), rgba(7,27,58,.02) 45%, rgba(255,255,255,.08));
  pointer-events: none;
}
.page-landscape__label {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 2;
  max-width: min(420px, calc(100% - 44px));
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(7, 27, 58, .78);
  color: rgba(255,255,255,.86);
  font-size: .84rem;
  line-height: 1.45;
  backdrop-filter: blur(10px);
}
.page-landscape__label strong {
  display: block;
  color: #fff;
  margin-bottom: 2px;
}
.page-hero--with-photo .page-hero__grid {
  grid-template-columns: minmax(0, .96fr) minmax(280px, .44fr);
  align-items: start;
}
.page-note-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 16px 34px rgba(7, 27, 58, .06);
}
.page-note-card strong {
  display: block;
  color: var(--navy);
  margin-bottom: 8px;
}
.page-note-card p { margin-bottom: 0; color: var(--ink-muted); font-size: .96rem; line-height: 1.62; }

@media (max-width: 760px) {
  .page-landscape { border-radius: 18px; margin-bottom: 26px; }
  .page-landscape img { aspect-ratio: 16 / 9; min-height: 190px; }
  .page-landscape__label { left: 14px; right: 14px; bottom: 14px; max-width: none; font-size: .8rem; }
}

/* v1.8 internal review refinements: less text-heavy, more product-led */
.review-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  border: 1px solid rgba(36, 84, 166, 0.18);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-muted);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(7, 27, 58, 0.04);
}

.section--hero { padding-top: 50px; }
.hero__lead { max-width: 580px; line-height: 1.56; }
.section-heading { max-width: 700px; }
.section-heading p:not(.eyebrow) { max-width: 660px; }
.portal-showcase--compact { align-items: center; }
.workflow-board--home > div { min-height: 138px; }
.workflow-board--home p { margin: 8px 0 0; color: var(--ink-muted); font-size: .92rem; line-height: 1.5; }
.product-module-grid .feature-card { min-height: 188px; padding: 24px; }
.product-module-grid .feature-card p { font-size: .94rem; line-height: 1.52; }
.architecture-stack article p { font-size: .94rem; line-height: 1.52; }
.company-panel--with-media .company-panel__copy p { max-width: 620px; }
.security-list .mini-card p { font-size: .94rem; line-height: 1.52; }

@media (max-width: 700px) {
  .review-badge { font-size: .7rem; }
  .workflow-board--home > div { min-height: auto; }
  .product-module-grid .feature-card { min-height: auto; }
}
