@charset "UTF-8";

:root {
  --portal-width: 1180px;
  --portal-inline-pad: 24px;
  --gutter: 17px;
  /* Sidebar panels = 290px target minus surface pad and column gutter/margin. */
  --right-column-target: 290px;
  --right-column: calc(var(--right-column-target) - var(--portal-inline-pad) - var(--gutter));
  --sidebar-header-height: 40px;
  --navy-950: #031f3b;
  --navy-900: #063662;
  --navy-800: #07518c;
  --blue-700: #266aa7;
  --blue-500: #63a4da;
  --blue-300: #a8d3f1;
  --blue-100: #eaf6ff;
  --surface: rgba(241, 249, 255, 0.92);
  --ink: #10243a;
  --muted: #526d88;
  --orange: #ff7a00;
  --shadow: 0 22px 55px rgba(3, 38, 73, 0.19);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #95baf9 url("/assets/images/legacy/bg_blue.jpg") repeat-x top;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--navy-950);
  background: #fff;
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.masthead {
  position: relative;
  width: 100%;
  height: 160px;
  margin: 0 auto;
  color: #fff;
}

#header {
  position: relative;
  width: min(var(--portal-width), 100%);
  height: 160px;
  margin: 0 auto;
  background: url("/assets/images/legacy/header.png") center top / auto 160px no-repeat;
}

#header_left,
#header_logo,
#header_right {
  height: 118px;
}

#header_left {
  position: absolute;
  left: 0;
  top: 0;
  width: 318px;
  z-index: 1;
}

#header_left_content {
  padding: 16px 0 0 8px;
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
  z-index: 2;
  font-size: 12px;
  color: #fff;
}

#header_left_content h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
}

#header_left_content span {
  display: block;
  position: relative;
  padding-left: 0;
  margin: 0 0 3px;
}

#header_logo {
  position: absolute;
  left: 50%;
  top: 0;
  width: 220px;
  transform: translateX(-50%);
}

#header_logo .retro-logo {
  position: static;
  left: auto;
  top: auto;
  width: 100%;
  transform: none;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

#header_logo .retro-logo > span {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  line-height: 1;
  padding: 12px 0 0 0;
}

#header_logo .retro-logo > span img {
  width: 210px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(1px 3px 2px rgba(0, 18, 46, 0.8));
}

#header_logo .retro-logo small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: -4px;
  padding: 0;
  line-height: 1;
  font-family: "Century Gothic", "Trebuchet MS", sans-serif;
  font-size: 17px;
  font-style: italic;
  letter-spacing: -0.35px;
}

.moving-world {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  box-shadow: inset -4px -2px 5px rgba(1,41,83,.6), 0 0 7px rgba(133,208,255,.4);
}

.moving-world::before,
.moving-world::after {
  content: "";
  position: absolute;
  inset: 3px -8px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  animation: worldRotate 3.8s linear infinite;
}

.moving-world::after {
  inset: -3px 5px;
  animation-direction: reverse;
}

.moving-world b {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(105deg, transparent 0 5px, rgba(99,213,255,.7) 6px 8px, transparent 9px 13px);
  animation: worldDrift 2.6s linear infinite;
}

#header_right_content .theme-toggle {
  margin: 0;
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(4, 47, 91, 0.32);
}

#header_right_content .language-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

#header_right {
  position: absolute;
  right: 0;
  top: 0;
  width: 318px;
  z-index: 1;
}

#header_right_content {
  padding: 20px 8px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #fff;
  text-align: right;
  transform: none;
}

.menu-logo-link {
  display: none;
}

.main-nav-mobile-settings {
  display: none;
}

#header_right_content a {
  color: #fff;
  text-decoration: none;
}

#header_right_content span {
  color: #fff;
}

#nav {
  width: 100%;
  position: static;
  clear: both;
  margin: 0;
  padding-top: 118px;
}

#nav_content {
  padding: 0 clamp(8px, 9vw, 200px) 6px;
}

.main-nav {
  position: static;
  bottom: auto;
  left: auto;
  width: min(545px, 100%);
  transform: none;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  white-space: nowrap;
  z-index: 4;
}

.main-nav a {
  padding: 4px 12px;
  color: #c4d9fb;
  border-radius: 999px;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

.main-nav b {
  color: #9fc9ed;
  font-size: 6px;
  font-weight: 400;
}

#header_right_content a,
.header-right-item,
#header_right_content .header-right-icon {
  display: inline-flex;
  align-items: center;
}

#header_right_content a,
.header-right-item {
  color: #fff;
  text-decoration: none;
}

.header-right-item {
  gap: 6px;
}

.header-right-icon {
  width: 14px;
  height: 14px;
  color: currentColor;
}

.header-right-icon svg,
.header-right-icon path {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

#header_right_content .header-contact-sep {
  display: block;
  margin-top: 3px;
}

.main-nav {
  width: 100%;
}

.menu-button {
  display: none;
  border: 0;
}

.menu-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 8;
  background: rgba(2, 20, 45, 0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

body.menu-drawer-open {
  overflow: hidden;
}

body.menu-drawer-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.portal { width: min(var(--portal-width), 100%); margin: 0 auto; }
.portal-top { height: 17px; background: url("/assets/images/legacy/main_top.png") center / 100% 17px no-repeat; }

.portal-surface {
  min-height: 780px;
  padding: 0 var(--portal-inline-pad) 38px;
  background:
    url("/assets/images/legacy/main_content_bg.png") center top / 100% 623px no-repeat,
    url("/assets/images/legacy/main_bg.jpg") center top / 100% auto repeat-y,
    #7eb0de;
}

.hero-block { overflow: hidden; border-radius: 0 0 2px 2px; box-shadow: 10px 15px 18px -12px rgba(5, 29, 54, 0.8); }

.hero-visual {
  position: relative;
  min-height: 405px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(1, 14, 26, 0.94) 0%, rgba(2, 25, 46, 0.82) 48%, rgba(4, 31, 55, 0.26) 100%),
    url("/assets/images/legacy/hero-chalkboard.jpg") center / cover;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, #000, transparent 80%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(680px, 70%);
  padding: 62px 0 54px 56px;
  color: #fff;
}

.hero-copy > span, .section-eyebrow {
  display: block;
  color: #bce0fa;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 650px;
  margin: 13px 0 18px;
  font-size: clamp(34px, 4.2vw, 57px);
  font-weight: 660;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.hero-copy p { max-width: 590px; margin: 0; color: #d9ecfa; font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 45px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button.primary { color: #fff; background: linear-gradient(135deg, #ff8d20, #f36c00); box-shadow: 0 8px 22px rgba(246, 111, 0, 0.28); }
.button.secondary { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.button:disabled { opacity: .65; transform: none; cursor: wait; }

.hero-orbit {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 72px;
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(170, 220, 255, .22);
  border-radius: 50%;
  transform: translateY(-50%);
}

.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; border: 1px solid rgba(170, 220, 255, .16); border-radius: 50%; }
.hero-orbit::before { inset: 22px; }
.hero-orbit::after { inset: 53px; background: rgba(2, 34, 61, .5); box-shadow: 0 0 50px rgba(86, 181, 244, .2); }
.hero-orbit > span { z-index: 2; color: #fff; font-size: 24px; font-weight: 800; letter-spacing: .16em; }
.hero-orbit i { position: absolute; color: #cdeaff; font-size: 10px; font-style: normal; font-weight: 700; letter-spacing: .08em; }
.hero-orbit i:nth-of-type(1) { top: 8px; }
.hero-orbit i:nth-of-type(2) { right: -7px; }
.hero-orbit i:nth-of-type(3) { bottom: 8px; }
.hero-orbit i:nth-of-type(4) { left: -17px; }

.news-strip { display: grid; grid-template-columns: 150px 1fr; align-items: center; min-height: 38px; color: #fff; background: #050505; }
.news-strip strong { padding-left: 20px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.news-strip a { overflow: hidden; color: var(--orange); font-size: 12px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.news-strip a span { margin-left: 7px; }
.news-rotating-link { animation: latest-news-fade 0.45s ease; }
.news-loading { width: 48%; height: 9px; border-radius: 20px; background: #2c2c2c; animation: pulse 1.4s infinite; }

/* Right sidebar: (290 - portal pad) track + normal 17px gutter. */
.content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--right-column);
  gap: var(--gutter);
  margin-top: 24px;
  align-items: start;
}
.content-left, .content-right {
  padding-inline: 0;
}
.content-left { min-width: 0; }
.content-right,
.portal-shared-sidebar {
  width: var(--right-column);
  min-width: var(--right-column);
  max-width: var(--right-column);
  justify-self: end;
  box-sizing: border-box;
  overflow-x: hidden;
}
.content-right > * {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.portal-section-columns { margin-top: 0; }

.portal-section-columns .content-right {
  margin-top: 22px;
}

.welcome-panel {
  padding: 34px 40px 36px;
  color: #fff;
  border: 1px solid #4b7fb5;
  background: #6f95d0 url("/assets/images/legacy/bg_welcome.jpg") center / cover no-repeat;
}

.welcome-panel h2 { max-width: 650px; margin: 8px 0 13px; font-size: clamp(25px, 3vw, 37px); font-weight: 600; letter-spacing: -.035em; line-height: 1.13; }
.welcome-panel p { max-width: 680px; margin: 0; color: #f4f8ff; font-size: 14px; line-height: 1.75; }

.section-block { margin-top: 38px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-heading h2 { margin: 5px 0 0; color: var(--navy-950); font-size: clamp(23px, 2.5vw, 32px); font-weight: 680; letter-spacing: -.035em; line-height: 1.18; }
.section-heading .section-eyebrow { color: var(--blue-700); }

.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy-800); font-size: 12px; font-weight: 780; text-decoration: none; }
.text-link:hover span { transform: translateX(3px); }
.text-link span { transition: transform 150ms ease; }

.beni-spotlight { display: grid; grid-template-columns: 44% 56%; min-height: 355px; overflow: hidden; border: 1px solid rgba(18, 83, 137, .24); border-radius: 9px; background: #f5fbff; box-shadow: var(--shadow); }
.beni-image { min-height: 355px; background: linear-gradient(180deg, rgba(1,33,56,.04), rgba(1,33,56,.32)), url("/assets/images/beni-hero.jpg") 40% center / cover; }
.beni-copy { position: relative; padding: 35px 38px; overflow: hidden; background: linear-gradient(140deg, #f9fcff, #ddecf8); }
.beni-copy::after { content: ""; position: absolute; right: -80px; bottom: -90px; width: 230px; height: 230px; border: 42px solid rgba(30, 121, 181, .08); border-radius: 50%; }
.beni-copy img { width: 56px; height: 56px; margin-bottom: 25px; border-radius: 13px; box-shadow: 0 8px 20px rgba(5, 53, 86, .18); }
.beni-copy > span { color: var(--blue-700); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.beni-copy h3 { margin: 4px 0 8px; font-size: 32px; letter-spacing: -.04em; }
.beni-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.beni-copy .button { position: relative; z-index: 2; min-height: 40px; margin-top: 22px; }
.capability-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.capability-pills span { padding: 4px 9px; color: #265a82; border: 1px solid #b8d3e7; border-radius: 999px; background: #fff; font-size: 9px; font-weight: 800; letter-spacing: .08em; }

.content-grid { display: grid; gap: 18px; }
.services-grid { grid-template-columns: repeat(2, 1fr); }
.work-grid { grid-template-columns: repeat(2, 1fr); }
.collection-grid { grid-template-columns: repeat(2, 1fr); padding: 28px 8px 18px; }
.company-grid { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }

.content-card { overflow: hidden; border: 1px solid rgba(24, 83, 133, .2); border-radius: 8px; background: rgba(247, 252, 255, .94); box-shadow: 0 10px 26px rgba(4, 47, 89, .1); transition: transform 160ms ease, box-shadow 160ms ease; }
.content-card:hover { transform: translateY(-3px); box-shadow: 0 15px 34px rgba(4, 47, 89, .15); }
.content-card-image { height: 145px; background-position: center; background-size: cover; }
.content-card-pattern { display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, rgba(148, 215, 255, .35), transparent 30%), linear-gradient(140deg, #0b4a80, #032e57); }
.content-card-pattern span { color: rgba(255,255,255,.82); font-size: 62px; font-weight: 300; }
.content-card-body { padding: 20px 21px 22px; }
.content-card-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--blue-700); font-size: 9px; font-weight: 780; letter-spacing: .11em; text-transform: uppercase; }
.content-card-meta strong { color: #d96400; }
.content-card h3 { margin: 8px 0 8px; font-size: 20px; line-height: 1.18; letter-spacing: -.025em; }
.content-card p { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.65; }


.insight-list { border-top: 1px solid rgba(25,82,130,.28); }
.insight-list a { display: grid; grid-template-columns: 82px 1fr 24px; gap: 15px; align-items: center; padding: 17px 8px; border-bottom: 1px solid rgba(25,82,130,.2); text-decoration: none; transition: background 150ms ease; }
.insight-list a:hover { background: rgba(255,255,255,.3); }
.insight-list time { color: var(--blue-700); font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.insight-list strong, .insight-list small { display: block; }
.insight-list strong { font-size: 14px; }
.insight-list small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.insight-list i { color: var(--navy-800); font-style: normal; }

.network-banner { display: flex; align-items: center; gap: 14px; min-height: 58px; margin-top: 34px; padding: 8px 15px; color: #1d2d42; border: 1px solid #1c71b0; background: linear-gradient(13deg, #83bae3 0 69%, #a6d4ef 69% 100%); font-size: 14px; text-decoration: none; }
.network-banner strong { margin-left: 4px; color: #244d99; }
.info-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; color: #fff; border: 1px solid #1c77b5; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #fff 0 8%, #89d7ff 9% 32%, #3899d5 72%); font-family: Georgia, serif; font-size: 23px; font-weight: bold; font-style: italic; }

.signal-card { display: grid; gap: 1px; margin-bottom: 14px; overflow: hidden; border: 1px solid #6c96bd; background: #6c96bd; }
.signal-card div { padding: 14px 15px; background: linear-gradient(135deg, rgba(250,253,255,.94), rgba(218,233,246,.94)); }
.signal-card strong, .signal-card span { display: block; }
.signal-card strong { color: var(--navy-900); font-size: 19px; letter-spacing: .03em; }
.signal-card span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

/* Legacy expand_menu header strip (bg_expand_menu scaled to sidebar width + expand_menu_content typography). */
.expand-menu-header,
.side-box h2,
.classic-accordion .expand-menu-tab {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  height: var(--sidebar-header-height);
  margin: 0;
  padding: 0 0 0 15px;
  border: 0;
  background: url("/assets/images/legacy/bg_expand_menu.png") left top / 100% var(--sidebar-header-height) no-repeat;
  box-sizing: border-box;
  color: #023568;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}
/* Label span only — do not re-target .side-box h2 here (that broke flex centering). */
.expand-menu-content,
.classic-accordion .expand-menu-tab .expand-menu-content {
  display: block;
  height: auto;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  line-height: 1;
  box-sizing: border-box;
}
.portal-directory { margin-bottom: 14px; }
.portal-directory > p { margin: 0; padding: 15px 16px; color: #385a78; background: rgba(239,247,253,.85); font-size: 11px; }
.portal-directory nav { border-top: 1px solid #91abc4; }
.portal-directory nav a { display: grid; grid-template-columns: 28px 1fr 14px; gap: 7px; align-items: center; padding: 10px 13px; color: #153c61; border-bottom: 1px solid #a8bfd3; background: linear-gradient(90deg, #edf4fa, #ccdbea); font-size: 11px; font-weight: 650; text-decoration: none; }
.portal-directory nav a span { color: #6d8ca8; font-size: 9px; }
.portal-directory nav a i { font-style: normal; }

.side-beni { margin-bottom: 14px; padding: 20px 18px; color: #fff; background: linear-gradient(145deg, rgba(2,44,74,.82), rgba(4,75,119,.8)), url("/assets/images/beni-hero.jpg") center / cover; }
.side-beni img { width: 48px; height: 48px; margin-bottom: 38px; border-radius: 11px; }
.side-beni strong { display: block; font-size: 15px; line-height: 1.28; }
.side-beni a { display: inline-block; margin-top: 13px; color: #bfe7ff; font-size: 10px; font-weight: 750; text-decoration: none; }

.heritage-card { padding: 18px; color: #d9edff; background: linear-gradient(160deg, #0a4c83, #042d53); }
.heritage-card > span { color: #8dc5ee; font-size: 9px; font-weight: 750; letter-spacing: .16em; }
.heritage-card h2 { margin: 7px 0 11px; color: #fff; font-size: 18px; line-height: 1.2; }
.heritage-card p { display: -webkit-box; overflow: hidden; margin: 0; font-size: 10px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 6; }
.heritage-card a { display: inline-block; margin-top: 13px; color: #fff; font-size: 10px; font-weight: 750; text-decoration: none; }

.page-hero { padding: 65px 7% 58px; color: #fff; background: radial-gradient(circle at 80% 30%, rgba(91,187,242,.3), transparent 28%), linear-gradient(140deg, rgba(4,54,96,.94), rgba(3,38,70,.98)), url("/assets/images/legacy/hero-chalkboard.jpg") center / cover; box-shadow: 10px 15px 18px -12px rgba(5,29,54,.8); }
.page-hero h1 { max-width: 780px; margin: 9px 0 15px; font-size: clamp(35px, 5vw, 60px); line-height: 1.05; letter-spacing: -.045em; }
.page-hero p { max-width: 680px; margin: 0; color: #d5e9f8; font-size: 16px; }

.heritage-story { display: grid; grid-template-columns: 280px 1fr; gap: 50px; align-items: center; margin: 30px 0; padding: 42px; border: 1px solid rgba(24,83,133,.2); background: rgba(244,250,255,.88); }
.heritage-visual { position: relative; display: flex; align-items: baseline; justify-content: center; min-height: 190px; padding-top: 26px; color: #fff; background: linear-gradient(145deg, #073d6d, #6c9bd0); overflow: hidden; }
.heritage-visual::after { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(255,255,255,.2); }
.heritage-visual span, .heritage-visual strong { z-index: 1; font-size: 66px; letter-spacing: -.08em; }
.heritage-visual span { font-weight: 250; }
.heritage-visual strong { font-weight: 780; }
.heritage-visual small { position: absolute; z-index: 1; bottom: 32px; font-size: 9px; letter-spacing: .2em; }
.heritage-story h2 { margin: 7px 0 13px; font-size: 36px; letter-spacing: -.04em; }
.heritage-story p { margin: 0; color: var(--muted); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin: 34px 0; border-top: 1px solid rgba(22,76,121,.3); }
.timeline article { position: relative; padding: 28px 22px; border-right: 1px solid rgba(22,76,121,.18); }
.timeline article::before { content: ""; position: absolute; top: -5px; left: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.timeline time { color: var(--blue-700); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.timeline h3 { margin: 8px 0; font-size: 15px; }
.timeline p { margin: 0; color: var(--muted); font-size: 11px; }

.story-loading { max-width: 900px; margin: 0 auto; padding: 55px 5%; }
.story-detail-page { width: 100%; }
.story-detail { margin: 16px 0 0; padding: 0 0 55px; }
.story-hero { display: flex; min-height: clamp(360px, 47vw, 520px); flex-direction: column; justify-content: space-between; padding: clamp(28px, 5vw, 58px); color: #fff; border: 1px solid #4b7fb5; background-position: center; background-size: cover; box-shadow: 10px 13px 15px -13px rgba(3, 27, 51, .88); }
.story-hero .text-link { width: max-content; color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,.7); }
.story-hero-copy { max-width: 720px; }
.story-hero .section-eyebrow { color: #bfe5ff; text-shadow: 0 2px 5px rgba(0,0,0,.7); }
.story-detail h1 { margin: 10px 0 17px; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.03; letter-spacing: -.05em; text-shadow: 0 3px 9px rgba(0,0,0,.68); }
.story-hero-copy > p { margin: 0 0 15px; color: #f4f9fd; font-size: 17px; line-height: 1.55; text-shadow: 0 2px 6px rgba(0,0,0,.75); }
.story-detail time { color: #cdeaff; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.story-copy-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 26px 26px 24px;
  border: 1px solid rgba(24, 83, 133, .22);
  background: linear-gradient(170deg, rgba(244, 250, 255, .96), rgba(229, 241, 252, .86));
  box-shadow: 10px 10px 12px -12px rgba(3, 38, 73, .62);
}

.story-copy-card,
html[data-theme="dark"] .story-copy-card {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.story-detail-page .hero-block {
  width: 100%;
  margin: 0;
}

/* Source Serif 4: modern screen-first editorial face (not Times-like). Self-hosted to avoid CDN runtime deps. */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4/source-serif-4-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4/source-serif-4-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-serif-4/source-serif-4-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-serif-4/source-serif-4-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Story/legal body: modern editorial serif; portal chrome keeps the UI sans. */
.story-body {
  margin: 0;
  color: #294f70;
  font-family: "Source Serif 4", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.005em;
}
.story-body p,
.story-body li {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}
.story-body strong,
.story-body b {
  font-weight: 600;
}
.story-detail footer { margin: 28px 0 0; }

html[data-theme="dark"] .story-copy-card {
  border-color: rgba(173, 209, 240, .28);
  background: linear-gradient(170deg, rgba(6, 31, 52, .92), rgba(10, 49, 81, .9));
  color: #ddeffb;
}

html[data-theme="dark"] .story-body,
html[data-theme="dark"] .story-body p,
html[data-theme="dark"] .story-body li { font-weight: 400; }

.product-availability { max-width: 720px; margin: 26px auto 0; padding: 17px 19px; border: 1px solid rgba(40, 98, 145, .24); background: linear-gradient(135deg, rgba(239,248,254,.94), rgba(210,230,244,.9)); box-shadow: 6px 9px 15px -14px rgba(4,36,68,.85); }
.product-availability > strong { display: block; margin-bottom: 12px; color: #174f7c; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.product-availability ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.product-availability li { display: flex; min-height: 39px; align-items: center; gap: 8px; padding: 7px 11px; color: #173f62; border: 1px solid rgba(37,93,137,.18); border-radius: 4px; background: rgba(255,255,255,.72); }
.product-availability li b { font-size: 10px; font-weight: 720; white-space: nowrap; }
.platform-icon { display: grid; width: 22px; height: 22px; place-items: center; color: #0c629e; }
.platform-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.product-availability.compact { margin: 3px 0 13px; padding: 10px; background: rgba(255,255,255,.45); box-shadow: none; }
.product-availability.compact > strong { margin-bottom: 8px; font-size: 8px; }
.product-availability.compact ul { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.product-availability.compact li { min-height: 30px; gap: 5px; padding: 4px 5px; }
.product-availability.compact li b { font-size: 8px; white-space: normal; }
.product-availability.compact .platform-icon, .product-availability.compact .platform-icon svg { width: 17px; height: 17px; }
.story-detail > .product-availability { max-width: none; margin: 0; padding: 19px 42px; border-color: #4b7fb5; background: #6f95d0 url("/assets/images/legacy/bg_welcome.jpg") center / cover no-repeat; box-shadow: 10px 13px 12px -12px rgba(5,29,54,.72); }
.story-detail > .product-availability > strong { color: #f2f8fd; }
.story-detail > .product-availability li { color: #fff; border-color: rgba(255,255,255,.26); background: rgba(4,54,96,.28); }
.story-detail > .product-availability .platform-icon { color: #9cddff; }

.not-found { display: grid; min-height: 540px; place-items: center; align-content: center; padding: 40px; text-align: center; }
.not-found > span { color: rgba(4,64,112,.15); font-size: 130px; font-weight: 800; line-height: .8; }
.not-found h1 { margin: 28px 0 8px; font-size: 34px; }
.not-found p { margin: 0 0 23px; color: var(--muted); }

.portal-loading { margin-top: 30px; padding: 30px; border: 1px solid rgba(24,83,133,.16); background: rgba(242,249,254,.65); }
.loading-line { width: 55%; height: 13px; margin-bottom: 12px; border-radius: 8px; background: rgba(29,95,145,.15); animation: pulse 1.4s infinite; }
.loading-line.wide { width: 82%; height: 20px; }
.loading-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.loading-cards i { height: 160px; border-radius: 7px; background: rgba(29,95,145,.12); animation: pulse 1.4s infinite; }
.skeleton-card { min-height: 330px; padding: 24px; }
.skeleton-card span { display: block; height: 14px; margin-bottom: 14px; border-radius: 8px; background: rgba(29,95,145,.13); animation: pulse 1.4s infinite; }
.skeleton-card span:first-child { height: 130px; margin: -24px -24px 28px; border-radius: 0; }
.skeleton-card span:last-child { width: 60%; }

.page-bottom-bg { width: 100%; height: 260px; background: #0a477f url("/assets/images/legacy/bg_bottom.jpg") left bottom / auto 260px repeat-x; }
.portal-footer { --footer-edge-blend: clamp(7px, .65vw, 10px); position: relative; isolation: isolate; width: min(var(--portal-width), 100%); height: 260px; margin: 0 auto; color: #fff; background: url("/assets/images/legacy/main_footer.png") center top / 100% 260px no-repeat; }
.portal-footer::before, .portal-footer::after { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; width: var(--footer-edge-blend); background: #0a477f url("/assets/images/legacy/bg_bottom.jpg") left bottom / auto 100% repeat-x; pointer-events: none; }
.portal-footer::before { left: 0; mask-image: linear-gradient(90deg, #000 0, rgba(0,0,0,.58) 25%, transparent 100%); }
.portal-footer::after { right: 0; mask-image: linear-gradient(270deg, #000 0, rgba(0,0,0,.58) 25%, transparent 100%); }
.portal-footer-content {
  position: absolute;
  z-index: 2;
  top: 33.46%;
  right: 30px;
  left: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 29.62%;
  text-align: left;
}
.portal-footer-content p {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  color: #dbe9f5;
}
.portal-footer-content a { color: #ffffff; }
.portal-footer .social-icon-buttons {
  justify-content: flex-end;
  gap: 8px;
  margin-right: 8px;
}

@media (max-width: 700px) {
  .portal-footer-content {
    padding-inline: 0;
    gap: 8px;
  }
}

.social-icon-buttons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.social-icon-buttons a {
  --social-size: 30px;
  width: var(--social-size);
  height: var(--social-size);
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.social-icon-buttons a:hover,
.social-icon-buttons a:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}

.social-icon-buttons .social-mark {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.social-icon-buttons .social-mark svg {
  width: 100%;
  height: 100%;
}

.social-icon-buttons .social-mark path {
  fill: currentColor;
}

.social-icon-buttons .social-instagram svg,
.social-icon-buttons .social-facebook svg,
.social-icon-buttons .social-x svg {
  display: block;
}

@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

@media (max-width: 1200px) {
  .masthead, .portal { width: 100%; }
  .portal-footer { width: calc(100% - 20px); }
  .portal-surface { padding-inline: clamp(16px, 2.2vw, 24px); }
  .hero-orbit { right: 44px; width: 190px; height: 190px; }
  .company-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .hero-copy { width: 78%; padding-left: 40px; }
  .hero-orbit { opacity: .46; right: -18px; }
  .content-columns { grid-template-columns: 1fr; }
  /* Stacked sidebar releases the fixed right-column lock and uses the full content width. */
  .content-right,
  .portal-shared-sidebar {
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-self: stretch;
    overflow-x: visible;
  }
  .content-right > *,
  .client-login-box,
  .classic-accordion,
  .expand-menu-right,
  .start-project-box,
  .shopping-box,
  .expand-menu-header,
  .side-box h2,
  .classic-accordion .expand-menu-tab {
    max-width: none;
  }
  .expand-menu-header,
  .side-box h2,
  .classic-accordion .expand-menu-tab,
  .shopping-box h2 {
    background-size: 100% var(--sidebar-header-height);
  }
  .content-right { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .signal-card, .portal-directory { grid-column: span 2; }
  .heritage-story { grid-template-columns: 220px 1fr; gap: 30px; padding: 30px; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  #header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    min-height: 160px;
    height: 160px;
    padding: 0 10px;
  }

  #header_left,
  #header_right {
    display: none;
  }

  #header_logo {
    position: static;
    left: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
    flex: 1 1 auto;
    transform: none;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
  }

  #header_logo .retro-logo {
    width: 100%;
  }

  #header_logo .retro-logo > span {
    padding-top: 0;
  }

  #header_logo .retro-logo > span img {
    width: 230px;
  }

  #nav {
    position: relative;
    order: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding-top: 0;
    flex: 0 0 auto;
    justify-self: flex-start;
  }

  #nav_content {
    padding: 0;
  }

  .menu-button {
    position: static;
    z-index: 10;
    margin: 0;
    display: grid;
    gap: 4px;
    width: 40px;
    height: 34px;
    place-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 10px;
    background: rgba(4, 47, 91, 0.5);
    backdrop-filter: blur(3px);
    color: #fff;
  }

  .menu-button i {
    display: block;
    width: 18px;
    height: 1px;
    background: #fff;
  }

  .main-nav[data-menu] {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    width: min(82vw, 360px);
    height: 100vh;
    z-index: 9;
    margin: 0;
    padding: 14px 0 0;
    overflow-y: auto;
    background: rgba(5, 48, 88, 0.98);
    transform: translateX(-100%);
    transition: transform 220ms ease;
    border-right: 1px solid rgba(159, 199, 238, 0.28);
    border-radius: 0 14px 14px 0;
    box-shadow: 18px 0 32px rgba(1, 22, 44, 0.34);
    display: block;
  }

  .menu-logo-link {
    display: none;
  }

.main-nav[data-menu] .menu-logo-link {
    display: block;
    width: min(100%, 290px);
    margin: 0 auto 10px;
    padding: 8px 14px 0;
  }

  .menu-logo-link img {
    width: 186px;
    max-width: 100%;
    margin: 0 auto;
    filter: drop-shadow(1px 3px 3px rgba(0, 22, 53, 0.58));
  }

  .main-nav[data-menu].is-open {
    transform: translateX(0);
  }

  #nav_content {
    padding-right: 0;
    padding-left: 0;
  }

  .main-nav[data-menu] a {
    width: 100%;
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(159, 199, 238, 0.22);
    border-top: 0;
    font-size: 14px;
    text-align: left;
    transition: background 140ms ease;
  }

  .main-nav[data-menu] a:hover,
  .main-nav[data-menu] a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
  }

  .main-nav[data-menu] a:first-child {
    border-top: 0;
  }

  .main-nav[data-menu] b {
    display: none;
  }

  .main-nav-mobile-settings {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 14px 14px;
    padding-top: 6px;
    border-top: 1px solid rgba(159, 199, 238, 0.2);
  }

  .mobile-settings-language {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
  }

  .mobile-settings-language .language-link {
    color: #d8e9fb;
    text-decoration: none;
  }

  .mobile-settings-language .language-link.active {
    color: #ffffff;
  }

  .mobile-theme-toggle {
    margin: 0;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(4, 47, 91, 0.32);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .page-bottom-bg { height: 200px; background-size: auto 200px; }
  .portal-footer { height: 200px; background-size: 100% 200px; }
}

@media (max-width: 700px) {
  .hero-visual { min-height: 465px; }
  .hero-copy { width: 100%; padding: 52px 28px; }
  .hero-copy p { font-size: 15px; }
  .hero-orbit { display: none; }
  .beni-spotlight { grid-template-columns: 1fr; }
  .beni-image { min-height: 240px; }
  .services-grid, .work-grid, .collection-grid, .company-grid { grid-template-columns: 1fr; }
  .heritage-story { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline article { border-right: 0; border-bottom: 1px solid rgba(22,76,121,.18); }
}

@media (max-width: 540px) {
  .masthead, #header, .portal { width: 100%; }
  .masthead,
  #header {
    height: 88px;
    min-height: 88px;
    align-items: center;
    padding-top: 0;
  }

  #header {
    background-size: auto 88px;
  }

  .portal-footer { width: 100%; }
  #header_logo {
    width: 150px;
  }
  #header_left_content { padding: 10px 0 4px; }
  #header_left_content h2 { margin-bottom: 4px; font-size: 11px; }
  #header_logo .retro-logo > span {
    padding-top: 0;
    text-align: center;
  }
  #header_logo .retro-logo > span img {
    width: 150px;
  }
  #header_right_content {
    padding: 6px 0 0 0;
    text-align: right;
    font-size: 10px;
    line-height: 1.2;
    transform: none;
  }
  #nav_content {
    padding: 0 2px 8px;
  }
  .main-nav {
    width: 100%;
  }
  .main-nav a {
    font-size: 12px;
    padding: 4px 7px;
  }
  .portal-surface { padding-inline: 12px; }
  .hero-copy { padding: 44px 22px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .news-strip { grid-template-columns: 108px 1fr; }
  .news-strip strong { padding-left: 10px; font-size: 8px; }
  .news-strip a { font-size: 10px; }
  .welcome-panel { padding: 27px 23px; }
  .section-heading { align-items: start; flex-direction: column; }
  .beni-copy { padding: 27px 24px; }
  .content-right { grid-template-columns: 1fr; }
  .signal-card, .portal-directory { grid-column: 1; }
  .page-hero { padding: 48px 25px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.wide { grid-column: auto; }
  .contact-layout .contact-context,
  .contact-layout .contact-form { padding-block: 25px; }
  .contact-context, .contact-form { padding: 25px; }
  .insight-list a { grid-template-columns: 68px 1fr 18px; }
  .page-bottom-bg { height: 150px; background-size: auto 150px; }
  .portal-footer { height: 150px; background-size: 100% 150px; }
  .portal-footer-content { gap: 4px; }
  .portal-footer-content p { font-size: 8px; }
  .portal-footer .social-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* The portal intentionally preserves the strong composition of the 2008 site while
   replacing Flash-era behavior with responsive, accessible content. */
body { font-size: 13px; line-height: 1.5; }
.portal-surface { min-height: 980px; padding-bottom: 42px; }

.classic-hero { overflow: visible; border-radius: 0; box-shadow: 11px 14px 12px -10px rgba(9, 31, 55, .78); }
.classic-hero > img { width: 100%; aspect-ratio: 900 / 278; object-fit: cover; }
.classic-hero .news-strip { min-height: 32px; }
.classic-hero .news-strip a { padding-right: 18px; }
.classic-hero .news-strip a span { color: #fff; }

.classic-home-columns { margin-top: 24px; }
.classic-welcome { min-height: 166px; padding: 23px 40px 25px; }
.classic-welcome .section-eyebrow { display: none; }
.classic-welcome h1 { margin: 0 0 20px; font-size: 23px; font-weight: 430; letter-spacing: -.02em; }
.classic-welcome p { max-width: 760px; font-size: 13px; line-height: 1.62; }

.promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 18px; }
.portal-promo { position: relative; display: block; min-height: 141px; overflow: hidden; color: #fff; border: 2px solid rgba(4, 66, 119, .52); text-decoration: none; box-shadow: inset 0 1px rgba(255, 255, 255, .3); }
.portal-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.portal-promo-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1, 37, 67, .96), rgba(1, 50, 86, .66) 55%, rgba(1, 42, 73, .12)); }
.portal-promo.green .portal-promo-shade { background: linear-gradient(90deg, rgba(17, 112, 23, .96), rgba(40, 164, 20, .62) 56%, rgba(21, 91, 15, .12)); }
.portal-promo.orange .portal-promo-shade { background: linear-gradient(90deg, rgba(181, 64, 0, .96), rgba(235, 104, 0, .65) 56%, rgba(128, 40, 0, .08)); }
.portal-promo-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 141px; padding: 16px 18px; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.portal-promo-copy small { font-size: 9px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.portal-promo-copy strong { max-width: 170px; margin-top: 5px; font-size: 18px; font-weight: 550; line-height: 1.08; letter-spacing: .06em; text-transform: uppercase; }
.portal-promo-copy em { align-self: flex-end; margin-top: 13px; padding: 4px 9px; background: rgba(0, 32, 67, .42); font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portal-promo:hover img, .portal-promo:focus-visible img { transform: scale(1.04); }

.classic-home-columns .network-banner { min-height: 45px; margin-top: 16px; padding-block: 5px; }
.classic-home-columns .network-banner > span:last-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.classic-home-columns .network-banner small { flex-basis: 100%; color: #315878; font-size: 9px; }

.classic-product-feature { display: grid; grid-template-columns: 43% 57%; min-height: 300px; margin-top: 28px; overflow: hidden; border: 1px solid #5487b5; background: #ecf6fd url("/assets/images/legacy/bg_welcome.jpg") center / cover; box-shadow: 8px 12px 16px -14px rgba(3, 38, 73, .8); }
.classic-product-image { min-height: 300px; overflow: hidden; }
.classic-product-image img { width: 100%; height: 100%; object-fit: cover; }
.classic-product-copy { padding: 30px 34px; color: #fff; background: linear-gradient(135deg, rgba(11, 72, 123, .96), rgba(89, 139, 199, .76)); }
.classic-product-copy .section-eyebrow { color: #cce8fa; }
.classic-beni-logo { width: 54px; height: 54px; margin: 18px 0 12px; border-radius: 10px; }
.classic-product-copy h2 { margin: 0 0 9px; font-size: 27px; font-weight: 500; letter-spacing: -.03em; }
.classic-product-copy p { margin: 0; color: #eef7fd; font-size: 12px; line-height: 1.6; }
.classic-action { display: inline-block; margin-top: 19px; padding: 7px 13px; color: #fff; border: 1px solid rgba(255, 255, 255, .34); background: rgba(3, 48, 87, .3); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }

.portal-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; padding-bottom: 30px; background: rgba(232, 244, 253, .45); border-bottom: 1px solid rgba(39, 102, 157, .24); }
.portal-tab-column { min-width: 0; border-right: 1px solid rgba(56, 111, 160, .22); }
.portal-tab-column:last-child { border-right: 0; }
.portal-tab-column h2 { height: 37px; margin: 0; padding: 9px 14px 0; color: #fff; background: linear-gradient(#3c78ad, #1d568a); font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.portal-tab-column a { display: block; min-height: 94px; padding: 14px; color: #163c5f; border-bottom: 1px solid rgba(69, 118, 162, .18); background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(219, 233, 245, .8)); text-decoration: none; }
.portal-tab-column a:hover { background: #fff; }
.portal-tab-column strong, .portal-tab-column span { display: block; }
.portal-tab-column strong { font-size: 11px; line-height: 1.25; }
.portal-tab-column span { display: -webkit-box; overflow: hidden; margin-top: 5px; color: #5d7489; font-size: 9px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

.start-project-box { width: 100%; max-width: 100%; margin-bottom: 14px; box-sizing: border-box; }
.start-project-box > div { padding: 15px 16px 17px; color: #173d60; background: linear-gradient(135deg, #eef5fa, #d9e7f2); }
.start-project-box p { margin: 0 0 12px; font-size: 11px; line-height: 1.45; }
.start-project-box a { display: inline-block; padding: 6px 9px; color: #fff; background: #1d5b90; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }

/* expand_menu_right accordion (Spry Accordion + menu_right_link from Portada 2008/2009). */
.classic-accordion,
.expand-menu-right {
  width: 100%;
  max-width: 100%;
  margin: 0 0 17px;
  overflow: hidden;
}
.classic-accordion details { margin: 0; padding: 0; }
.classic-accordion .expand-menu-tab {
  cursor: pointer;
  list-style: none;
}
.classic-accordion .expand-menu-tab::-webkit-details-marker { display: none; }
.classic-accordion .expand-menu-tab::marker { content: ""; }

/* AccordionPanelContent: #9CADD1 + bg_expand_menu_content.png repeat-x */
.classic-accordion .menu-right-link {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #9cadd1;
  background-image: url("/assets/images/legacy/bg_expand_menu_content.png");
  background-repeat: repeat-x;
  background-position: left top;
}
.classic-accordion .menu-right-link ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* menu_right_link: gray text, full-row hover bar in #7294CC */
.classic-accordion .menu-right-link li a {
  display: block;
  height: 25px;
  margin: 0;
  padding: 5px 0 0 15px;
  color: #464646;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
}
.classic-accordion .menu-right-link li a:hover,
.classic-accordion .menu-right-link li a:active,
.classic-accordion .menu-right-link li a:focus-visible {
  color: #fff;
  background-color: #7294cc;
  outline: none;
}
.classic-accordion .menu-right-link li a.bold,
.classic-accordion .menu-right-link li a strong {
  font-weight: bold;
}

.shopping-box { width: 100%; max-width: 100%; margin-bottom: 14px; box-sizing: border-box; }
.shopping-box h2 {
  display: flex;
  align-items: center;
  height: var(--sidebar-header-height);
  margin: 0;
  padding: 0 14px;
  color: #fff;
  background: #111 url("/assets/images/legacy/bg_expand_menu.png") left top / 100% var(--sidebar-header-height) no-repeat;
  font-size: 11px;
  font-weight: 700;
  box-sizing: border-box;
}
.beni-shopping-box h2 { background: linear-gradient(#173e63, #071f35); }
.shopping-content { position: relative; min-height: 215px; padding: 14px 14px 16px; color: #07345d; background: #fff linear-gradient(180deg, #fff 68%, #e1e1e1); }
.beni-shopping-box .shopping-content > img:first-child { width: 100%; height: 106px; object-fit: cover; }
.beni-shopping-box .shopping-logo { position: absolute; top: 84px; left: 20px; width: 42px; height: 42px; border: 3px solid #fff; border-radius: 9px; box-shadow: 0 4px 9px rgba(0, 32, 61, .22); }
.beni-shopping-box p { margin: 15px 0 8px; font-size: 11px; font-weight: 650; line-height: 1.3; }
.beni-shopping-box a { color: #07518c; font-size: 9px; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.sidebar-product-skeleton .shopping-content { display: grid; align-content: center; gap: 10px; }
.sidebar-product-skeleton span { display: block; height: 12px; border-radius: 20px; background: #d5e2ec; animation: pulse 1.4s infinite; }
.sidebar-product-skeleton span:first-child { height: 95px; border-radius: 0; }
.sidebar-product-skeleton span:last-child { width: 62%; }

.classic-archive-card { padding: 14px; }
.classic-archive-card > img { width: 100%; height: 92px; margin: 9px 0 12px; object-fit: cover; }
.classic-archive-card h2 { font-size: 15px; }

.page-hero { min-height: 184px; padding: 36px 42px; border: 1px solid #4b7fb5; background: #6f95d0 url("/assets/images/legacy/bg_welcome.jpg") center / cover no-repeat; box-shadow: 10px 13px 12px -12px rgba(5, 29, 54, .72); }
.page-hero .section-eyebrow { color: #d3ebfb; }
.page-hero h1 { margin: 7px 0 11px; font-size: clamp(29px, 4vw, 44px); font-weight: 500; }
.page-hero p { max-width: 760px; color: #f2f8fd; font-size: 14px; line-height: 1.6; }

.collection-grid { gap: 20px; padding: 28px 0 8px; }
.content-card { border-radius: 0; border-color: #5487b5; background: rgba(246, 251, 255, .94); box-shadow: 7px 10px 15px -13px rgba(3, 38, 73, .85); }
.content-card-image { height: 180px; }
.content-card-body { padding: 19px 20px 22px; }
.content-card h3 { font-size: 19px; }

.heritage-story, .contact-context, .contact-form { border-radius: 0; }
.heritage-story { margin-top: 25px; background: rgba(239, 248, 254, .88); }
.contact-context { position: relative; overflow: hidden; background: linear-gradient(145deg, rgba(7, 61, 109, .94), rgba(4, 43, 78, .96)), url("/assets/images/portal/contact-reception.webp") center / cover; }
.story-body p { margin: 0 0 1.35em; }

@media (max-width: 940px) {
  .classic-home-columns .content-right { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .classic-home-columns .start-project-box, .classic-home-columns .classic-accordion { grid-column: 1; }
  .classic-home-columns .beni-shopping-box, .classic-home-columns .classic-archive-card { grid-column: 2; }
  .classic-home-columns .beni-shopping-box { grid-row: 1 / span 2; }
  .classic-home-columns .classic-archive-card { grid-row: 3; }
}

@media (max-width: 760px) {
  .promo-grid, .portal-tabs { grid-template-columns: 1fr; }
  .portal-promo { min-height: 160px; }
  .portal-promo-copy { min-height: 160px; }
  .portal-tab-column { border-right: 0; border-bottom: 1px solid rgba(56, 111, 160, .22); }
  .classic-product-feature { grid-template-columns: 1fr; }
  .classic-product-image { min-height: 230px; max-height: 280px; }
}

@media (max-width: 540px) {
  .classic-welcome { padding: 24px 22px; }
  .classic-welcome h1 { font-size: 21px; }
  .classic-hero > img { min-height: 175px; object-position: 52% center; }
  .classic-product-copy { padding: 25px 23px; }
  .classic-home-columns .content-right { grid-template-columns: 1fr; }
  .classic-home-columns .start-project-box,
  .classic-home-columns .classic-accordion,
  .classic-home-columns .beni-shopping-box,
  .classic-home-columns .classic-archive-card { grid-column: 1; grid-row: auto; }
  .page-hero { padding: 30px 23px; }
}

/*
  Chalkboard handoff (no dual-opacity crossfade — that blends into black and looks like a wipe).
  Sequence: hand writes → static "Introducing" covers at full opacity → hide writing → fade Beni on top.
  Duration matches the 157-frame / 25fps handwriting WebP (~6.28s).
*/
.animated-chalkboard {
  --chalk-duration: 6.28s;
  position: relative;
  min-height: 310px;
  background: #080909;
  overflow: hidden;
}
.animated-chalkboard .hero-writing {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 900 / 278;
  object-fit: cover;
  /* Stay fully visible until chalk is already solid on top, then hide (no fade through black). */
  animation: writingSettle var(--chalk-duration) linear forwards;
}
.hero-chalk-final {
  position: absolute;
  z-index: 2;
  inset: 0 0 32px;
  width: 100%;
  height: 100%;
  max-height: calc(100% - 32px);
  object-fit: cover;
  object-position: center;
  opacity: 0;
  /* Snap/short cover of completed chalk; never partially transparent with writing at the same time. */
  animation: chalkHold var(--chalk-duration) linear forwards;
  pointer-events: none;
}
.hero-current-content {
  position: absolute;
  z-index: 3;
  inset: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 88px clamp(25px, 5vw, 58px) 15px;
  color: #fff;
  opacity: 0;
  /* Beni chrome only after Introducing is held solid. */
  animation: contentReveal var(--chalk-duration) linear forwards;
}
.hero-current-copy { display: grid; grid-template-columns: 66px 1fr; width: 52%; align-items: center; column-gap: 15px; }
.hero-current-copy img { grid-row: 1 / 3; width: 66px; border-radius: 14px; }
.hero-current-copy strong { max-width: 380px; font-size: clamp(18px, 2.4vw, 31px); font-weight: 450; line-height: 1.12; }
.hero-current-copy a { width: max-content; margin-top: 8px; color: #8ddaff; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.hero-property-visual { width: 39%; height: 120px; overflow: hidden; border: 1px solid rgba(200,235,255,.68); border-radius: 3px; background: #102c42; box-shadow: 0 16px 34px rgba(0,0,0,.42); transform: rotate(-2deg); }
.hero-property-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.animated-chalkboard .news-strip { position: absolute; z-index: 4; right: 0; bottom: 0; left: 0; }

.beni-editorial-feature { display: grid; grid-template-columns: 45% 55%; min-height: 330px; margin-top: 20px; overflow: hidden; border: 1px solid #4d7ba8; background: #e8f4fd; box-shadow: 9px 12px 17px -14px rgba(4,36,68,.9); }
.beni-editorial-image { min-height: 330px; overflow: hidden; }
.beni-editorial-image > img { width: 100%; height: 100%; object-fit: cover; }
.beni-editorial-copy { padding: clamp(28px, 4vw, 46px); color: #fff; background: linear-gradient(145deg, #07518d, #123d6f 73%, #062c54); }
.beni-editorial-copy > img { width: 58px; margin: 17px 0 12px; border-radius: 12px; }
.beni-editorial-copy h2 { margin: 0 0 12px; font-size: clamp(25px, 3vw, 38px); font-weight: 480; line-height: 1.08; }
.beni-editorial-copy p { margin: 0; color: #dceefe; font-size: 13px; line-height: 1.65; }
.beni-editorial-copy a { display: inline-block; margin-top: 20px; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }

.classic-welcome { color: #fff; background: linear-gradient(100deg, rgba(30,83,141,.9), rgba(71,124,188,.72)), url("/assets/images/legacy/bg_welcome.jpg") center / cover no-repeat; text-shadow: 0 1px 1px rgba(7,35,68,.38); }
.classic-welcome p { color: #fff; font-weight: 470; }

.legacy-tabs { margin-top: 24px; clear: both; display: flex; align-items: stretch; width: 100%; }
.tabs-index-shadow {
  background-image: url("/assets/images/legacy/content_box_shadow.png");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: top center;
  width: 100%;
  height: 55px;
  line-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}
.legacy-tabs.VTabbedPanels .TabbedPanelsTabGroup {
  float: left;
  width: 192px;
  min-height: 363px;
  height: 363px;
  background-image: url("/assets/images/legacy/tabs/index_tabgroup.png");
  background-color: #CADDFC;
  padding-top: 20px;
  background-repeat: repeat-y;
  float: none;
}
.legacy-tabs.VTabbedPanels .tabbed_panels_tab {
  float: none;
  width: 192px;
}
.legacy-tabs .TabbedPanelsTabGroup { margin: 0; padding: 0; }
.legacy-tabs .TabbedPanelsTabGroup,
.legacy-tabs .tabbed_panels_tab,
.legacy-tabs .TabbedPanelsTab { list-style: none; }
.legacy-tabs .tabbed_panels_tab {
  position: relative;
  top: 1px;
  float: none;
  width: 192px;
  min-height: 32px;
  padding: 6px 10px;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #005879;
  list-style: none;
  cursor: pointer;
  width: 172px;
  text-align: right;
  border: 0;
  border-top: none;
  border-left: none;
  border-right: none;
  background: transparent;
  padding-right: 22px;
}

.legacy-tabs .TabbedPanelsTab {
  position: relative;
  top: 1px;
  float: none;
  width: 192px;
  min-height: 32px;
  padding: 6px 10px;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #005879;
  list-style: none;
  cursor: pointer;
  width: 172px;
  text-align: right;
  border: 0;
  border-top: none;
  border-left: none;
  border-right: none;
  background: transparent;
  padding-right: 22px;
}

.legacy-tabs .TabbedPanelsTabHover {
  background-image: url("/assets/images/legacy/tabs/index_panelstab_selected.png");
  background-repeat: no-repeat;
  background-size: 192px 32px;
  background-color: #fff;
  color: #fff;
}

.legacy-tabs .TabbedPanelsTabSelected {
  background-image: url("/assets/images/legacy/tabs/index_panelstab_selected.png");
  background-repeat: no-repeat;
  background-size: 192px 32px;
  background-color: #fff;
  color: #005879;
  font-weight: bold;
  border-bottom: solid 0px #999;
}

.legacy-tabs .tabbed_panels_tab[aria-selected="true"],
.legacy-tabs .TabbedPanelsTab[aria-selected="true"] {
  background-image: url("/assets/images/legacy/tabs/index_panelstab_selected.png");
  background-repeat: no-repeat;
  background-size: 192px 32px;
  background-color: #fff;
  color: #005879;
  font-weight: bold;
  border-bottom: solid 0px #999;
}

.legacy-tabs .tabbed_panels_tab:hover,
.legacy-tabs .TabbedPanelsTab:hover {
  background-image: url("/assets/images/legacy/tabs/index_panelstab_selected.png");
  background-repeat: no-repeat;
  background-size: 192px 32px;
  color: #005879;
}
.legacy-tabs .tabbed_panels_tab:hover {
  background-image: url("/assets/images/legacy/tabs/index_panelstab_selected.png");
  background-repeat: no-repeat;
  background-size: 192px 32px;
  background-color: #fff;
  color: #005879;
}
.legacy-tabs .TabbedPanelsContentGroup {
  background-image: url("/assets/images/legacy/tabs/index_contentgroup.jpg");
  background-color: #ACCCE9;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  clear: none;
  width: 0;
  min-height: 363px;
  height: 363px;
  float: none;
  padding: 0;
  flex: 1 1 auto;
}
.legacy-tabs .TabbedPanelsContent {
  min-height: 363px;
  width: 100%;
  height: 363px;
  padding: 20px;
  text-align: justify;
  box-sizing: border-box;
}
.legacy-tabs .TabbedPanelsContentVisible {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #232323;
  line-height: 150%;
  text-align: justify;
}
.legacy-tabs .section-eyebrow {
  color: #1b5b8c;
  font-size: 11px;
  font-weight: 700;
}
.legacy-tabs h2 { margin: 5px 0 12px; color: #123f68; font-size: 24px; font-weight: 520; line-height: 1.15; text-align: left; }
.legacy-tabs p { color: #294f70; font-size: 12px; font-weight: 480; line-height: 1.65; }
.legacy-tabs a { color: #07518c; font-size: 10px; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.legacy-tabs .legacy-tab-story { display: block; padding: 9px 0; border-top: 1px solid rgba(42,99,145,.16); text-transform: none !important; }
.legacy-tab-story strong, .legacy-tab-story small { display: block; }
.legacy-tab-story small { margin-top: 2px; color: #617b91; font-weight: 450; }
.legacy-tabs [data-tab-panel] { animation: latest-news-fade .28s ease-out; }
.legacy-tabs [data-tab-panel][hidden] { display: none; }

/* Login panel sits under a separate expand_menu header, matching Portada domain/login stack. */
.client-login-box {
  width: 100%;
  max-width: 100%;
  margin: 0 0 17px;
  border: 0;
  background-color: #7294cc;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 40%), linear-gradient(#7ea0d3, #6a8fc6);
  box-sizing: border-box;
}
.client-login-box form { display: grid; gap: 6px; padding: 10px 12px 6px; }
.client-login-box label { color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-weight: 700; }
.client-login-box input { width: 100%; height: 24px; margin-top: 2px; padding: 3px 6px; border: 1px solid #4f74ab; background: #fff; box-sizing: border-box; }
.client-login-box button { padding: 6px; color: #fff; border: 1px solid #255288; background: linear-gradient(#2f78b8, #165b94); font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.client-login-box > a { display: block; padding: 0 12px 10px; color: #e8f3ff; font-family: Arial, Helvetica, sans-serif; font-size: 10px; text-decoration: none; }
.client-login-box > a:hover { text-decoration: underline; }

@keyframes worldRotate { to { transform: rotate(360deg); } }
@keyframes worldDrift { to { transform: translateX(13px); } }
/*
  Shared --chalk-duration (~6.28s = WebP length). Never leave writing and chalk both semi-transparent:
  that multiplies alpha against the black board and looks like the chalk vanishes mid-handoff.
*/
@keyframes chalkHold {
  0%, 86% { opacity: 0; }
  /* Brief ease onto the finished board while writing is still fully opaque underneath. */
  89%, 100% { opacity: 1; }
}
@keyframes writingSettle {
  /* Writing remains solid until chalk fully covers it, then drops out (no fade). */
  0%, 90% { opacity: 1; visibility: visible; }
  91%, 100% { opacity: 0; visibility: hidden; }
}
@keyframes contentReveal {
  0%, 93% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes latest-news-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .animated-chalkboard .hero-writing { opacity: 0; animation: none; }
  .hero-chalk-final { opacity: 1; animation: none; }
  .hero-current-content { opacity: 1; animation: none; }
}

@media (max-width: 940px) {
}
@media (max-width: 900px) {
  .masthead { height: 160px; }
  .animated-chalkboard { min-height: 245px; }
  .animated-chalkboard .hero-writing,
  .hero-chalk-final { object-position: left center; }
  .hero-chalk-final { bottom: 32px; }
  .hero-current-content { padding: 76px 24px 13px; }
  .hero-current-copy { width: 62%; }
  .hero-property-visual { width: 34%; height: 100px; }
  .beni-editorial-feature { grid-template-columns: 1fr; }
  .beni-editorial-image { min-height: 240px; max-height: 280px; }
  .legacy-tabs { display: block; }
  .legacy-tabs.VTabbedPanels .TabbedPanelsTabGroup {
    display: flex;
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 0;
    background-image: none;
    background-color: transparent;
    border: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    gap: 0;
  }
  .legacy-tabs .tabbed_panels_tab,
  .legacy-tabs .TabbedPanelsTab {
    flex: 0 0 auto;
    float: none;
    width: 120px;
    max-width: 120px;
    min-height: 40px;
    height: 40px;
    max-height: 40px;
    line-height: 1.2;
    padding: 0 10px;
    align-items: center;
    display: inline-flex;
    text-align: left;
    top: 0;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background-size: auto 100%;
    background-position: left center;
    box-sizing: border-box;
  }
  .legacy-tabs .tabbed_panels_tab[aria-selected="true"],
  .legacy-tabs .TabbedPanelsTab[aria-selected="true"],
  .legacy-tabs .tabbed_panels_tab:hover,
  .legacy-tabs .TabbedPanelsTab:hover,
  .legacy-tabs .TabbedPanelsTabSelected,
  .legacy-tabs .TabbedPanelsTabHover {
    background-image: url("/assets/images/legacy/tabs/index_panelstab_selected.png");
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-color: #fff;
    background-position: left center;
  }
  .legacy-tabs .TabbedPanelsTabGroup { background: transparent; }
  .legacy-tabs .TabbedPanelsContentGroup {
    float: none;
    width: 100%;
    margin-top: 0;
  }
  .legacy-tabs .TabbedPanelsContent {
    padding: 24px 22px;
  }
}
@media (max-width: 540px) {
  .masthead,
  #header {
    height: 88px;
    min-height: 88px;
    align-items: center;
    padding-top: 0;
  }

  #header {
    background-size: auto 88px;
  }

  #header_logo .retro-logo {
    width: 100%;
  }

  #header_logo .retro-logo > span img {
    width: 150px;
  }

  .animated-chalkboard { min-height: 210px; }
  .animated-chalkboard .hero-writing { min-height: 178px; object-fit: cover; }
  .hero-chalk-final,
  .hero-current-content { bottom: 32px; }
  .hero-current-content { padding: 67px 18px 10px; }
  .hero-current-copy { width: 100%; }
  .hero-current-copy { grid-template-columns: 45px 1fr; column-gap: 11px; }
  .hero-current-copy img { width: 45px; }
  .hero-current-copy strong { font-size: 18px; }
  .hero-property-visual { display: none; }
  .legacy-tabs .TabbedPanelsContent { padding: 24px 22px; }
}

.client-auth-panel { display: grid; grid-template-columns: 1fr 1fr; max-width: 820px; margin: 28px auto 10px; border: 1px solid #5987ae; background: rgba(241,249,255,.92); box-shadow: var(--shadow); }
.client-auth-fullwidth {
  width: 100%;
  max-width: none;
  margin: 28px 0 10px;
}
.client-auth-panel form, .client-auth-panel aside { padding: clamp(27px, 4vw, 44px); }
.client-auth-panel form { display: grid; gap: 16px; }
.client-auth-panel form > label { display: grid; gap: 5px; color: #284c68; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.client-auth-panel form input:not([type="checkbox"]) { height: 41px; padding: 8px 11px; border: 1px solid #a2b9cc; background: #fff; }
.client-auth-panel .client-remember { display: flex; grid-template-columns: auto 1fr; align-items: center; text-transform: none; }
.client-auth-panel aside { color: #fff; background: linear-gradient(145deg, #0c538c, #062f57); }
.client-auth-panel aside h2 { margin: 0 0 13px; font-size: 25px; font-weight: 500; line-height: 1.15; }
.client-auth-panel aside p { color: #d7eafa; font-size: 12px; line-height: 1.7; }
.client-auth-panel aside a { color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.client-loading, .client-empty-state { max-width: 900px; margin: 28px auto; padding: 36px; border: 1px solid #6e96b7; background: rgba(239,248,254,.82); box-shadow: var(--shadow); }
.client-loading { display: grid; gap: 11px; }
.client-loading p { margin: 4px 0 0; color: #526d84; font-size: 11px; }
.client-loading-bar { display: block; width: 74%; height: 13px; border-radius: 8px; background: linear-gradient(90deg, #c4dbea, #eaf5fb, #c4dbea); background-size: 200% 100%; animation: clientLoading 1.4s linear infinite; }
.client-loading-bar.short { width: 43%; }
.client-empty-state { display: grid; grid-template-columns: 52px 1fr; gap: 22px; align-items: start; }
.client-empty-state > span { display: grid; place-items: center; width: 48px; height: 48px; color: #fff; border-radius: 50%; background: #1269a7; font: italic 30px Georgia, serif; }
.client-empty-state h2 { margin: 0 0 8px; color: #103f68; font-size: 22px; }
.client-empty-state p { margin: 0 0 18px; color: #536e84; font-size: 12px; line-height: 1.65; }
.client-account-strip { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 980px; margin: 28px auto 18px; border: 1px solid #5e8eb5; background: linear-gradient(120deg, rgba(240,249,255,.95), rgba(190,222,244,.84)); box-shadow: var(--shadow); }
.client-account-strip div { min-width: 0; padding: 20px 22px; border-right: 1px solid rgba(42,101,148,.2); }
.client-account-strip div:last-child { border-right: 0; }
.client-account-strip small, .client-account-strip strong { display: block; overflow-wrap: anywhere; }
.client-account-strip small { margin-bottom: 5px; color: #557087; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.client-account-strip strong { color: #113f66; font-size: 12px; }
.client-data-section { max-width: 980px; margin: 18px auto; border: 1px solid rgba(62,113,157,.48); background: rgba(237,247,253,.86); box-shadow: 7px 10px 16px -14px rgba(3,38,73,.8); }
.client-data-section > header { display: grid; grid-template-columns: minmax(250px, .8fr) 1.2fr; gap: 24px; align-items: center; padding: 20px 24px; color: #fff; background: linear-gradient(100deg, #0b4f85, #07365e); }
.client-data-section > header div { display: flex; gap: 14px; align-items: center; }
.client-data-section > header span { color: #74b7e7; font-size: 25px; font-weight: 300; }
.client-data-section > header h2 { margin: 0; font-size: 18px; font-weight: 600; }
.client-data-section > header p { margin: 0; color: #cee4f5; font-size: 10px; line-height: 1.55; }
.client-data-empty { margin: 0; padding: 30px 25px; color: #5a7287; font-size: 12px; }
.client-record-list article { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 22px 25px; border-top: 1px solid rgba(54,108,152,.18); }
.client-record-list article:first-child { border-top: 0; }
.client-record-list small { color: #70879a; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.client-record-list h3 { margin: 4px 0 7px; color: #123e63; font-size: 16px; }
.client-record-list p { max-width: 680px; margin: 0; color: #587086; font-size: 11px; line-height: 1.55; }
.client-record-meta { display: flex; min-width: 125px; flex-direction: column; gap: 8px; align-items: flex-end; color: #577086; font-size: 9px; }
.client-record-meta span { padding: 4px 8px; color: #fff; border-radius: 999px; background: #168060; font-weight: 800; text-transform: uppercase; }
.client-document-table article { display: grid; grid-template-columns: 145px 100px 1fr 135px; gap: 18px; align-items: center; padding: 17px 24px; border-top: 1px solid rgba(54,108,152,.18); color: #506b81; font-size: 10px; }
.client-document-table article:first-child { border-top: 0; }
.client-document-table div small, .client-document-table div strong { display: block; }
.client-document-table div small { color: #1a689f; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.client-document-table div strong { margin-top: 3px; color: #123f65; font-size: 13px; }
.client-document-table b { color: #123f65; text-align: right; }
.client-note-list { padding: 4px 24px 22px; }
.client-note-list article { padding: 18px 0; border-top: 1px solid rgba(54,108,152,.18); }
.client-note-list h3 { margin: 0 0 8px; color: #123f65; font-size: 15px; }
.client-note-list p { margin: 0; color: #587086; font-size: 11px; line-height: 1.65; white-space: pre-line; }
.client-support-list details { border-top: 1px solid rgba(54,108,152,.18); }
.client-support-list summary { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center; padding: 19px 24px; color: #123f65; cursor: pointer; }
.client-support-list summary span { color: #1a689f; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.client-support-list summary time { color: #6b8296; font-size: 9px; }
.client-message-thread { padding: 2px 24px 22px; }
.client-message-thread article { max-width: 82%; margin: 10px 0; padding: 14px 16px; border-radius: 3px 14px 14px; background: #d9ebf7; }
.client-message-thread article.from-client { margin-left: auto; border-radius: 14px 3px 14px 14px; background: #c8e0f0; }
.client-message-thread small { color: #527086; font-size: 8px; font-weight: 700; }
.client-message-thread p { margin: 6px 0 0; color: #244a68; font-size: 11px; line-height: 1.6; white-space: pre-line; }
.client-signout { display: block; max-width: 900px; margin: 17px auto; text-align: right; }
@keyframes clientLoading { to { background-position: -200% 0; } }
@media (max-width: 780px) {
  .client-account-strip { grid-template-columns: 1fr 1fr; }
  .client-account-strip div:nth-child(2) { border-right: 0; }
  .client-account-strip div:nth-child(-n+2) { border-bottom: 1px solid rgba(42,101,148,.2); }
  .client-data-section > header { grid-template-columns: 1fr; gap: 8px; }
  .client-document-table article { grid-template-columns: 1fr auto; }
  .client-document-table article > span { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .client-auth-panel { grid-template-columns: 1fr; }
  .client-account-strip { grid-template-columns: 1fr; }
  .client-account-strip div { border-right: 0; border-bottom: 1px solid rgba(42,101,148,.2); }
  .client-record-list article { grid-template-columns: 1fr; }
  .client-record-meta { align-items: flex-start; }
  .client-support-list summary { grid-template-columns: 1fr; }
  .client-message-thread article { max-width: 94%; }
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.12fr);
  gap: 24px;
  width: min(var(--portal-width), 100%);
  padding: 0 6px 0 0;
  margin: 22px auto 0;
  align-items: start;
}

.contact-context {
  padding: 26px 24px;
  border: 1px solid rgba(64, 113, 168, 0.36);
  background:
    linear-gradient(155deg, rgba(10, 72, 129, 0.9), rgba(5, 33, 62, 0.9)),
    url("/assets/images/portal/contact-reception.webp") center / cover no-repeat;
  color: #f1f7fc;
  border-radius: 2px;
  display: grid;
  gap: 10px;
}

.contact-context .section-eyebrow {
  margin: 0;
}

.contact-context h2 {
  margin: 0;
}

.contact-context h2 {
  margin: 7px 0 12px;
  color: #fff;
  font-size: clamp(24px, 3vw, 33px);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.contact-context p {
  margin: 0 0 8px;
  color: #d8ecfd;
  line-height: 1.6;
}

.contact-context .contact-channel {
  margin-bottom: 10px;
  color: #deefff;
}

.contact-context .contact-channel span {
  display: inline-block;
  margin-bottom: 2px;
  color: #9dbfdd;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-context .contact-channel a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 650;
}

.contact-social {
  display: grid;
  gap: 9px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.18);
}

.contact-social > span {
  color: #9fc9ed;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-form {
  padding: 22px 24px 24px;
  border: 1px solid rgba(74, 126, 184, 0.36);
  border-radius: 2px;
  background: rgba(245, 252, 255, 0.94);
  box-shadow: 0 12px 26px rgba(5, 39, 74, 0.13);
  min-width: 0;
}

.portal-section-columns .content-right .start-project-box > div {
  padding-left: 12px;
  padding-right: 12px;
}

.contact-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-bottom: 14px;
  align-items: start;
}

.contact-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.contact-form label.wide {
  grid-column: span 2;
}

.contact-form label span {
  color: #264a70;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #95b7d8;
  border-radius: 6px;
  color: #143c62;
  background: #fff;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.contact-form textarea {
  min-height: 145px;
  resize: vertical;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  border-color: #0a73bb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(12, 110, 178, 0.15);
  background: #fff;
}

.contact-form .validation-summary ul {
  margin: 0 0 13px;
  padding: 10px 13px;
  border: 1px solid #ffd2a2;
  border-radius: 6px;
  color: #9f4b00;
  background: #fff4e7;
}

.contact-form .validation-summary li {
  margin: 4px 0;
}

.contact-form .form-notice {
  margin: 0 0 12px;
  padding: 10px 13px;
  border-radius: 6px;
  font-weight: 650;
}

.contact-form .form-notice.success {
  border: 1px solid #81d08c;
  color: #0c5d2f;
  background: #e7faeb;
}

.contact-form .form-notice.error {
  border: 1px solid #ef9595;
  color: #792121;
  background: #ffeaea;
}

.contact-form button.primary {
  margin-top: 6px;
}

html[data-theme="dark"] .contact-form {
  background: linear-gradient(180deg, rgba(4, 33, 61, 0.84), rgba(7, 50, 92, 0.82));
}

html[data-theme="dark"] .contact-form label span {
  color: #bcd9f0;
}

html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form textarea {
  border-color: rgba(173, 206, 236, 0.35);
  background: rgba(10, 32, 59, 0.7);
  color: #edf7ff;
}

html[data-theme="dark"] .contact-form input:focus-visible,
html[data-theme="dark"] .contact-form textarea:focus-visible {
  border-color: rgba(126, 198, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(90, 178, 255, 0.22);
  background: rgba(13, 45, 78, 0.84);
}

html[data-theme="dark"] .contact-form .validation-summary ul {
  border-color: rgba(255, 186, 111, 0.42);
  color: #ffd39e;
  background: rgba(66, 31, 5, 0.42);
}

html[data-theme="dark"] .contact-form .form-notice.success {
  border-color: rgba(132, 218, 157, 0.55);
  color: #a9efc1;
  background: rgba(16, 74, 42, 0.5);
}

html[data-theme="dark"] .contact-form .form-notice.error {
  border-color: rgba(241, 146, 146, 0.5);
  color: #ffcaca;
  background: rgba(74, 22, 22, 0.54);
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form label.wide {
    grid-column: auto;
  }
}

@media (max-width: 540px) {
  .contact-layout {
    gap: 16px;
  }

  .contact-context,
  .contact-form {
    padding: 18px 16px;
  }
}


