/* ==========================================================================
   Subsidiary Companies — "featured company + explorer".

   Hero → arrow-driven sector filter → two-column explorer.
   Everything is scoped under .subs / .subs-* so no global rule is touched.
   Logical properties throughout; the only physical offsets are inside the
   hero diagram, which is radially symmetric and must not mirror.
   ========================================================================== */

.subs {
  --subs-radius: 14px;
  --subs-radius-sm: 10px;
  --subs-ring: rgba(15, 127, 184, 0.28);
  --subs-tint: rgba(15, 127, 184, 0.06);
  --subs-gap: clamp(16px, 2vw, 24px);

  display: block;
  padding-block-end: var(--sec-y);
  background: radial-gradient(
      120% 60% at 78% 0%,
      rgba(15, 127, 184, 0.1),
      transparent 62%
    ),
    radial-gradient(80% 42% at 8% 6%, rgba(52, 155, 71, 0.06), transparent 60%),
    linear-gradient(180deg, #f2f7fa 0%, var(--c-paper) 46%, var(--c-paper) 100%);
}

.subs .container {
  position: relative;
}

/* The global reset sets img{display:block}, which outranks the UA [hidden]
   rule — so a hidden <img> still paints an empty box. Restore it, scoped. */
.subs [hidden] {
  display: none;
}

/* ==========================================================================
   1 · HERO
   ========================================================================== */
/* .subs-hero {
  padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 52px);
} */

.subs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  direction: ltr;
}

.subs-hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-5);
  direction: rtl;
}
[dir="ltr"] .subs-hero__text { direction: ltr; }

.subs-hero__title {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  gap: 0.12em;
}
[dir="rtl"] .subs-hero__title {
  letter-spacing: 0;
  line-height: 1.42;
}
.subs-hero__title span:last-child {
  background: linear-gradient(
    90deg,
    var(--c-primary),
    var(--c-primary-deep) 62%,
    var(--c-green)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* The gradient clips descenders flush; a little room keeps ی/ج intact. */
  padding-block-end: 0.08em;
}

.subs-hero__lede {
  max-width: 52ch;
  font-size: var(--t-md);
  color: var(--c-body);
  line-height: var(--lh-body);
}

/* ---------- ecosystem diagram ---------- */
.subs-orbit {
  position: relative;
  inline-size: 100%;
  max-inline-size: 540px;
  margin-inline: auto;
  aspect-ratio: 1;
  border: 1px solid rgba(15, 127, 184, .12);
  border-radius: 40px;
  background:
    radial-gradient(circle at 50% 48%, rgba(15, 127, 184, .12), transparent 30%),
    linear-gradient(145deg, rgba(244, 250, 253, .96), rgba(237, 248, 242, .72));
  box-shadow: 0 24px 60px rgba(17, 64, 88, .1);
  overflow: hidden;
}
.subs-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 127, 184, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 127, 184, .035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
  pointer-events: none;
}
.subs-orbit__rings {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}

.subs-orbit__core,
.subs-orbit__chip {
  position: absolute;
  display: grid;
  place-items: center;
  background: var(--c-surface);
  border: 1px solid rgba(15, 127, 184, .15);
  /* Physical offsets on purpose: the ring is symmetric, so mirroring it for
     RTL would only shuffle which logo sits where. */
  transform: translate(-50%, -50%);
}

.subs-orbit__core {
  left: 50%;
  top: 50%;
  z-index: 3;
  inline-size: 29%;
  block-size: 29%;
  border-radius: 30px;
  box-shadow:
    0 18px 40px rgba(11, 95, 140, .18),
    0 0 0 9px rgba(255, 255, 255, .64),
    0 0 0 10px rgba(15, 127, 184, .08);
}
.subs-orbit__core img {
  inline-size: 65%;
  block-size: auto;
}

.subs-orbit__chip {
  left: var(--ox);
  top: var(--oy);
  z-index: 2;
  inline-size: 17%;
  block-size: 14%;
  min-inline-size: 62px;
  min-block-size: 52px;
  border-radius: 17px;
  box-shadow: 0 10px 25px rgba(17, 64, 88, .1);
  animation: subs-node-in .55s var(--ease) both;
  animation-delay: var(--od, 0ms);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.subs-orbit__chip img {
  inline-size: 72%;
  block-size: 72%;
  object-fit: contain;
}
.subs-orbit__chip:hover {
  transform: translate(-50%, calc(-50% - 4px));
  border-color: rgba(15, 127, 184, .35);
  box-shadow: 0 15px 32px rgba(17, 64, 88, .16);
}
.subs-orbit__hex {
  stroke: rgba(15, 127, 184, .18);
  stroke-width: .45;
  stroke-dasharray: 1.2 2.2;
}
.subs-orbit__spokes {
  stroke-width: .62;
  stroke-linecap: round;
}
.subs-orbit__halo {
  fill: none;
  stroke: rgba(52, 155, 71, .18);
  stroke-width: .55;
  stroke-dasharray: 1.2 2;
}
.subs-orbit__nodes {
  stroke-width: .45;
}

@keyframes subs-node-in {
  from { opacity: 0; transform: translate(-50%, -42%) scale(.94); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .subs-orbit__chip {
    animation: none;
  }
}

/* Generated architectural ecosystem artwork. The authentic brand mark stays
   as a separate SVG overlay so it is never approximated by the raster art. */
.subs-ecosystem {
  position: relative;
  inline-size: 100%;
  max-inline-size: 610px;
  margin: 0 auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 0;
  border-radius: 30px;
  background: transparent;
  box-shadow: none;
}
.subs-ecosystem::after {
  display: none;
}
.subs-ecosystem__image {
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

/* ==========================================================================
   2 · SECTOR FILTER
   ========================================================================== */
/* Arrow-driven rail. Native scroll still does the moving, so touch and trackpad
   work untouched; the buttons are an enhancement, not the only way across. */
.subs-filters {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  padding-block: var(--s-2) var(--s-4);
}

.subs-filters__rail {
  display: flex;
  gap: var(--s-3);
  overflow-x: auto;
  scroll-snap-type: inline proximity;
  scroll-behavior: smooth;
  padding-inline: 2px;
  padding-block: 2px;
  overscroll-behavior-inline: contain;
  /* The arrows replace the scrollbar entirely. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.subs-filters__rail::-webkit-scrollbar {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .subs-filters__rail {
    scroll-behavior: auto;
  }
}

.subs-filters__nav {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-1);
  transition: background var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease),
    opacity var(--dur-2) var(--ease);
}
.subs-filters__nav:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.subs-filters__nav[disabled] {
  opacity: 0.32;
  pointer-events: none;
}
.subs-filters__nav svg {
  inline-size: 18px;
  block-size: 18px;
}

/* The base `arrow` glyph points right, so each button needs its OWN rule — a
   blanket [dir="rtl"] flip turns both the same way. Prev always points back
   along the reading direction, next always forward. */
.subs-filters__nav--prev svg {
  transform: scaleX(-1);
} /* LTR: ← */
.subs-filters__nav--next svg {
  transform: none;
} /* LTR: → */
[dir="rtl"] .subs-filters__nav--prev svg {
  transform: none;
} /* RTL: → */
[dir="rtl"] .subs-filters__nav--next svg {
  transform: scaleX(-1);
} /* RTL: ← */

.subs-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--subs-radius-sm);
  color: var(--c-body);
  text-align: start;
  transition: border-color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease), background var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease);
}
.subs-chip:hover {
  border-color: var(--c-line-strong);
  box-shadow: var(--shadow-1);
}

.subs-chip__icon {
  display: grid;
  place-items: center;
  inline-size: 34px;
  block-size: 34px;
  flex: none;
  border-radius: 9px;
  background: var(--c-wash);
  color: var(--c-muted);
  transition: background var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease);
}
.subs-chip__icon svg {
  inline-size: 18px;
  block-size: 18px;
}

.subs-chip__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.35;
}
.subs-chip__name {
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--c-ink);
}
.subs-chip__count {
  font-size: var(--t-xs);
  color: var(--c-muted);
}

.subs-chip.is-active {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  box-shadow: 0 0 0 3px rgba(15, 127, 184, 0.1);
}
.subs-chip.is-active .subs-chip__icon {
  background: var(--c-primary);
  color: #fff;
}
.subs-chip.is-active .subs-chip__name {
  color: var(--c-primary-deep);
}

/* ==========================================================================
   3 · EXPLORER
   ========================================================================== */
.subs-explorer {
  display: grid;
  grid-template-columns: minmax(270px, 30%) minmax(0, 1fr);
  gap: var(--subs-gap);
  align-items: start;
  padding-block-start: var(--s-4);
}

/* ---------- 4 · left: company list ---------- */
.subs-list {
  position: sticky;
  inset-block-start: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--subs-radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.subs-list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-5) var(--s-3);
}
.subs-list__title {
  font-size: var(--t-base);
  font-weight: 700;
}
.subs-list__count {
  flex: none;
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--c-primary-deep);
  background: var(--c-primary-soft);
  border-radius: 99px;
  padding: 4px 10px;
}

.subs-list__search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 var(--s-5) var(--s-3);
}
.subs-list__search > svg {
  position: absolute;
  inset-inline-start: 12px;
  inline-size: 16px;
  block-size: 16px;
  color: var(--c-muted);
  pointer-events: none;
}
.subs-list__search input {
  inline-size: 100%;
  padding: 10px 14px;
  padding-inline-start: 36px;
  font-size: var(--t-sm);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 9px;
  transition: border-color var(--dur-2) var(--ease),
    background var(--dur-2) var(--ease);
}
.subs-list__search input::placeholder {
  color: var(--c-muted);
}
.subs-list__search input:focus {
  outline: none;
  background: var(--c-surface);
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(15, 127, 184, 0.12);
}
/* The UA clear button would sit next to ours. */
.subs-list__search input::-webkit-search-cancel-button {
  display: none;
}

.subs-list__clear {
  position: absolute;
  inset-inline-end: 8px;
  display: grid;
  place-items: center;
  inline-size: 26px;
  block-size: 26px;
  border-radius: 7px;
  color: var(--c-muted);
}
.subs-list__clear:hover {
  background: var(--c-wash);
  color: var(--c-ink);
}
.subs-list__clear svg {
  inline-size: 14px;
  block-size: 14px;
}

.subs-list__scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--s-2) var(--s-4) var(--s-4);
  max-block-size: 665px; /* px, not % — a % max-block-size is ignored here */
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--c-line-strong) transparent;
}
.subs-list__scroll::-webkit-scrollbar {
  inline-size: 6px;
}
.subs-list__scroll::-webkit-scrollbar-thumb {
  background: var(--c-line-strong);
  border-radius: 99px;
}

/* Discrete cards, not flat rows: each company reads as its own object. */
.subs-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  padding: 11px 13px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--subs-radius-sm);
  box-shadow: 0 1px 2px rgba(14, 31, 39, 0.05);
  text-align: start;
  transition: background var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease);
}
.subs-item:hover {
  border-color: var(--c-line-strong);
  box-shadow: var(--shadow-1);
  transform: translateY(-1px);
}

.subs-item__logo {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  flex: none;
  border-radius: 10px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  color: var(--c-muted);
  overflow: hidden;
}
.subs-item__logo img {
  object-fit: contain;
}
.subs-item__logo svg {
  inline-size: 18px;
  block-size: 18px;
}

.subs-item__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-inline-size: 0;
}
.subs-item__name {
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.subs-item__kicker {
  font-size: var(--t-xs);
  color: var(--c-muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subs-item__mark {
  display: grid;
  place-items: center;
  inline-size: 22px;
  block-size: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease);
}
.subs-item__mark svg {
  inline-size: 12px;
  block-size: 12px;
}

.subs-item.is-selected {
  background: var(--subs-tint);
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(15, 127, 184, 0.1),
    0 8px 20px -14px rgba(11, 95, 140, 0.6);
  transform: none;
}
.subs-item.is-selected .subs-item__name {
  color: var(--c-primary-deep);
}
.subs-item.is-selected .subs-item__logo {
  background: var(--c-surface);
  border-color: var(--subs-ring);
}
.subs-item.is-selected .subs-item__mark {
  opacity: 1;
  transform: none;
}

.subs-list__empty {
  padding: 0 var(--s-5) var(--s-5);
  font-size: var(--t-sm);
  color: var(--c-muted);
}

/* ==========================================================================
   5 · FEATURED COMPANY
   ========================================================================== */
.subs-feature {
  /* How far the logo plate hangs below the band. The body reserves the same
     amount as top padding, so the company name never collides with it. */
  --subs-mark-drop: 34px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--subs-radius);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  transition: opacity var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease);
}
.subs-feature:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}

.subs-feature.is-swapping {
  opacity: 0;
  transform: translateY(8px);
}
@media (prefers-reduced-motion: reduce) {
  .subs-feature {
    transition: none;
  }
  .subs-feature.is-swapping {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 6 · company image / branded plate ---------- */
.subs-shot {
  position: relative;
  margin: 0;
  /* inline-size MUST stay explicit. With an auto inline size, `min-block-size`
     transfers back through `aspect-ratio` and becomes a *minimum width* — the
     band blew out to 739px inside a 614px card before this line existed. */
  inline-size: 100%;
  /* Near the poster's own 1.87 ratio, so `cover` only trims the base — which
     the white fade below hides anyway. */
  aspect-ratio: 5/2;
  min-block-size: 240px;
  /* Not clipped: the logo plate deliberately hangs past the lower edge. */
  overflow: visible;

  /* Fallback first, for engines without image-set(). The WebP is 80 KB against
     the PNG's 1.5 MB, so the PNG should only ever be the last resort. */
  background-image: url("../../uploads/poster/posterbuilding.webp"),
    linear-gradient(180deg, #e6f1f8 0%, #f4fafc 58%, #ffffff 100%);
  background-image: image-set(
      url("../../uploads/poster/posterbuilding.webp") type("image/webp"),
      url("../../uploads/poster/posterbuilding.webp") type("image/png")
    ),
    linear-gradient(180deg, #e6f1f8 0%, #f4fafc 58%, #ffffff 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  /* The poster is a cutout sitting on opaque near-white. Multiply drops that
     ground so the tint below shows through instead of a flat white slab —
     the same trick the product packshots use. */
  background-blend-mode: multiply, normal;
}
.subs-shot__photo {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

/* The band dissolves into the card body. A gradient spans its element's full
   height, so the stops shape the fade rather than a shorter element; ::after
   comes after the children, so it also covers a real cover_image photo. */
.subs-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    #fff 0%,
    rgba(255, 255, 255, 0.94) 13%,
    rgba(255, 255, 255, 0) 58%
  );
}

/* A solid pill, so it stays legible over the light poster and over whatever a
   company's own cover photo turns out to be. */
.subs-shot__badge {
  position: absolute;
  z-index: 2;
  inset-block-start: 16px;
  inset-inline-end: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-xs);
  font-weight: 700;
  border-radius: 99px;
  padding: 6px 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  color: var(--c-primary-deep);
  box-shadow: var(--shadow-1);
}

/* The logo plate straddles the band's lower start corner, so it reads as the
   company's masthead rather than a picture floating in the middle. The body
   below reserves room for the overhang. */
.subs-shot__mark {
  position: absolute;
  z-index: 2;
  inset-block-end: calc(-1 * var(--subs-mark-drop));
  inset-inline-start: clamp(20px, 2.6vw, 32px);
  display: grid;
  place-items: center;
  min-inline-size: 132px;
  border-radius: 12px;
  background: var(--c-surface);
  /* A hairline as well as the shadow: the band is light now, and a white plate
     on white loses its edge with shadow alone. */
  border: 1px solid var(--c-line);
  box-shadow: 0 16px 36px -24px rgba(14, 31, 39, 0.55);
}
/* Company logos are 300×300 with built-in padding, so cap both axes rather
   than height alone — a height cap alone renders them tiny. */
.subs-shot__mark img {
  inline-size: 120px;
  block-size: 120px;
  object-fit: contain;
}
.subs-shot__mark b {
  font-size: var(--t-sm);
  color: var(--c-ink);
  text-align: center;
}

/* ---------- body: copy + manager ---------- */
.subs-feature__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: clamp(16px, 2.4vw, 32px);
  align-items: start;
  padding: calc(var(--subs-mark-drop) + var(--s-5)) clamp(20px, 2.6vw, 32px) 0;
}

.subs-feature__main {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-inline-size: 0;
}
.subs-feature__name {
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  line-height: 1.28;
}
.subs-feature__kicker {
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--c-primary);
}

/* ---------- 6 · contact channels ---------- */
.subs-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-block-start: var(--s-1);
}
.subs-social__link {
  display: grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  border-radius: 50%;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  color: var(--c-muted);
  transition: background var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease);
}
.subs-social__link:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
}
.subs-social__link svg {
  inline-size: 17px;
  block-size: 17px;
}

/* ---------- 8 · manager ---------- */
.subs-mgr {
  /* Above the image's own badges, which carry z-index inside .subs-shot. */
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--s-4);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--subs-radius-sm);
  box-shadow: 0 14px 34px -24px rgba(14, 31, 39, 0.7);
  text-align: center;
  /* Rides up over the image edge so it reads as part of the company block.
     Block margin only — a negative inline margin would widen the document. */
  margin-block-start: calc(-1 * var(--s-16) - var(--s-6));
}

.subs-mgr__portrait {
  display: grid;
  place-items: center;
  inline-size: 120px;
  block-size: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-wash);
  color: var(--c-muted);
  border: 3px solid var(--c-surface);
  box-shadow: 0 0 0 1px var(--c-line);
}
.subs-mgr__portrait img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
.subs-mgr__silhouette {
  display: grid;
  place-items: center;
}
.subs-mgr__silhouette svg {
  inline-size: 28px;
  block-size: 28px;
}

.subs-mgr__name {
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--c-ink);
  margin-block-start: var(--s-3);
}
.subs-mgr__role {
  font-size: var(--t-xs);
  color: var(--c-muted);
}

/* ---------- 7 · quick facts ---------- */
/* One strip, cells split by hairlines. Deliberately a single non-wrapping row:
   there are at most five facts, and a wrapped row would put a stray divider at
   the start of the second line. Below 720px it becomes a two-column grid. */
/* The strip hugs its cells instead of filling the card: several companies have
   only one fact on record, and a lone box stretched to full width reads as a
   broken table rather than a chip. Cells are capped so four of them still look
   like four cells, and `max-inline-size:100%` lets flex shrink take over once
   the natural widths outgrow the card. */
.subs-facts {
  display: flex;
  inline-size: fit-content;
  max-inline-size: calc(100% - 2 * clamp(20px, 2.6vw, 32px));
  margin: var(--s-6) clamp(20px, 2.6vw, 32px) 0;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--subs-radius-sm);
  overflow: hidden;
}
.subs-fact {
  flex: 0 1 auto;
  min-inline-size: 0;
  max-inline-size: 240px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 12px 16px;
  border-inline-start: 1px solid var(--c-line);
}
.subs-fact:first-child {
  border-inline-start: 0;
}
.subs-fact__icon {
  display: grid;
  place-items: center;
  inline-size: 34px;
  block-size: 34px;
  flex: none;
  border-radius: 9px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.subs-fact__icon svg {
  inline-size: 16px;
  block-size: 16px;
}
.subs-fact__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-inline-size: 0;
}
.subs-fact__label {
  font-size: var(--t-xs);
  color: var(--c-muted);
  line-height: 1.4;
}
/* Sector and role lists can be long; two lines beats an ellipsis at line one. */
.subs-fact__value {
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 9 · content tabs ---------- */
.subs-tabs {
    padding: var(--s-6) clamp(20px, 2.6vw, 32px) clamp(20px, 2.6vw, 28px);
    margin: 25px;
    border: 1px solid #ececec;
    border-radius: 15px;
}

.subs-tabs__bar {
  display: flex;
  gap: var(--s-6);
  border-block-end: 1px solid var(--c-line);
  margin-block-end: var(--s-5);
  overflow-x: auto;
  scrollbar-width: none;
}
.subs-tabs__bar::-webkit-scrollbar {
  display: none;
}

.subs-tabs__btn {
  flex: 0 0 auto;
  position: relative;
  padding-block: 0 12px;
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--c-muted);
  transition: color var(--dur-2) var(--ease);
}
.subs-tabs__btn::after {
  content: "";
  position: absolute;
  inset-block-end: -1px;
  inset-inline: 0;
  block-size: 2px;
  border-radius: 2px;
  background: var(--c-primary);
  transform: scaleX(0);
  transition: transform var(--dur-2) var(--ease);
}
.subs-tabs__btn:hover {
  color: var(--c-body);
}
.subs-tabs__btn.is-active {
  color: var(--c-primary);
}
.subs-tabs__btn.is-active::after {
  transform: scaleX(1);
}

.subs-tabs__pane {
  animation: subs-fade var(--dur-3) var(--ease) both;
}
.subs-tabs__pane:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 4px;
  border-radius: 6px;
}
@keyframes subs-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .subs-tabs__pane {
    animation: none;
  }
}

.subs-prose {
  font-size: var(--t-sm);
  color: var(--c-body);
  line-height: var(--lh-body);
  text-align: justify;
}
.subs-note {
  font-size: var(--t-sm);
  color: var(--c-muted);
}

/* ---------- managing-director biography ---------- */
.subs-bio {
  font-size: var(--t-sm);
  color: var(--c-body);
  line-height: var(--lh-body);
  text-align: justify;
}
.subs-bio p + p {
  margin-block-start: var(--s-4);
}

/* ---------- brands ---------- */
.subs-brands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--s-3);
}
.subs-brand {
  display: grid;
  place-items: center;
  aspect-ratio: 16/9;
  padding: 10px;
  border: 1px solid var(--c-line);
  border-radius: var(--subs-radius-sm);
  background: var(--c-surface);
  color: var(--c-body);
  font-size: var(--t-xs);
  font-weight: 700;
  text-align: center;
  transition: border-color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.subs-brand:hover {
  border-color: var(--subs-ring);
  box-shadow: var(--shadow-1);
  transform: translateY(-2px);
}
.subs-brand img {
  inline-size: auto;
  object-fit: contain;
}

/* ==========================================================================
   14 · RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .subs-explorer {
    grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
  }
  .subs-feature__body {
    grid-template-columns: minmax(0, 1fr) 200px;
  }
  .subs-mgr {
    margin-block-start: calc(-1 * var(--s-16));
  }
}

@media (max-width: 960px) {
  .subs-hero__grid {
    grid-template-columns: 1fr;
  }
  .subs-hero__text {
    order: 1;
  }
  .subs-orbit {
    order: 2;
    max-inline-size: 400px;
  }
  .subs-ecosystem {
    order: 2;
    max-inline-size: 480px;
  }

  /* Explorer stacks; the list becomes a horizontal rail so the featured
     company stays within a thumb's reach instead of below 15 stacked rows. */
  .subs-explorer {
    grid-template-columns: 1fr;
  }
  .subs-list {
    position: static;
  }
  .subs-list__scroll {
    flex-direction: row;
    max-block-size: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: inline mandatory;
    padding-block-end: var(--s-3);
  }
  .subs-item {
    position: relative;
    flex: 0 0 auto;
    inline-size: 200px;
    scroll-snap-align: start;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .subs-item__mark {
    position: absolute;
    inset-block-start: 6px;
    inset-inline-end: 6px;
    inline-size: 18px;
    block-size: 18px;
  }
  .subs-item__mark svg {
    inline-size: 10px;
    block-size: 10px;
  }
}

@media (max-width: 860px) {
  /* Five cells in one row stop being readable well before the layout stacks.
     Each cell takes its own border here — hairline dividers can't survive an
     unknown number of wrapped rows without leaving stray edges. */
  .subs-facts {
    display: grid;
    /* Capped tracks, not 1fr — a single fact must not span the row here either. */
    grid-template-columns: repeat(auto-fit, minmax(158px, 240px));
    justify-content: start;
    gap: var(--s-3);
    inline-size: auto;
    max-inline-size: none;
    background: none;
    border: 0;
    overflow: visible;
  }
  .subs-fact {
    max-inline-size: none;
    border: 1px solid var(--c-line);
    border-radius: var(--subs-radius-sm);
    background: var(--c-paper);
  }
}

@media (max-width: 720px) {
  .subs-feature {
    --subs-mark-drop: 26px;
  }
  .subs-shot {
    aspect-ratio: 16/9;
    min-block-size: 0;
  }
  .subs-shot__mark {
    min-inline-size: 104px;
    padding: 12px 16px;
  }
  .subs-shot__mark img {
    inline-size: 58px;
    block-size: 58px;
  }

  /* Flatten the body into the company grid so the compact manager card can sit
     opposite the logo plate. Copy starts only after that shared identity row. */
  .companyContainer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .subs-shot {
    grid-column: 1;
    grid-row: 1;
  }
  .subs-feature__body {
    display: contents;
  }
  .subs-feature__main {
    grid-column: 1;
    grid-row: 3;
    padding: var(--s-4) clamp(20px, 2.6vw, 32px) 0;
  }
  .subs-mgr {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    inline-size: calc(50% - clamp(10px, 2vw, 16px));
    min-inline-size: 150px;
    margin: var(--s-3) clamp(20px, 2.6vw, 32px) 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: var(--s-3);
    row-gap: 0;
    align-items: center;
    justify-items: start;
    text-align: start;
    padding: var(--s-3);
  }
  .subs-mgr__portrait {
    grid-row: 1 / span 2;
    inline-size: 60px;
    block-size: 60px;
  }
  .subs-mgr__name {
    grid-column: 2;
    align-self: end;
    margin-block-start: 0;
  }
  .subs-mgr__role {
    grid-column: 2;
    align-self: start;
  }

  .subs-facts {
    grid-column: 1;
    grid-row: 4;
    grid-template-columns: minmax(0, 1fr);
  }
  .subs-fact {
    inline-size: 100%;
  }
}

@media (max-width: 560px) {
  /* Two 44px buttons eat a quarter of a phone viewport for a gesture the user
     already has. Touch scrolling stands on its own here. */
  .subs-filters {
    display: block;
  }
  .subs-filters__nav {
    display: none;
  }
}

@media (max-width: 520px) {
  .subs-orbit {
    max-inline-size: 300px;
  }
  .subs-orbit__chip {
    min-inline-size: 44px;
    min-block-size: 44px;
  }
  .subs-ecosystem {
    max-inline-size: 340px;
    border-radius: 24px;
  }
  .subs-brands {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }
}

/* ---- justified body copy · centred blocks keep their centring ------------
   The `:where(p, blockquote, dd)` rule in hitco.css declares alignment ON the
   paragraph, and a direct declaration outranks the `text-align: center` these
   containers pass DOWN to it by inheritance. Re-inheriting restores them.
   Add a centred container that holds a paragraph and it belongs in this list. */
.subs-mgr :where(p, blockquote, dd),
.subs-brand :where(p, blockquote, dd) {
  text-align: inherit;
}

/* Original hero orbit restored. */
.subs-hero__grid,
.subs-hero__text {
  direction: inherit;
}
.subs-orbit {
  inline-size: 100%;
  max-inline-size: 520px;
  margin-inline: auto;
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.subs-orbit::before {
  content: none;
}
.subs-orbit__core,
.subs-orbit__chip {
  border-radius: 50%;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
}
.subs-orbit__core {
  left: 50%;
  top: 50%;
  inline-size: 26%;
  block-size: 26%;
  box-shadow: 0 10px 32px -14px rgba(11, 95, 140, .55),
    0 0 0 10px rgba(255, 255, 255, .55);
}
.subs-orbit__core img {
  inline-size: 62%;
}
.subs-orbit__chip {
  left: var(--ox);
  top: var(--oy);
  inline-size: 15%;
  block-size: 15%;
  min-inline-size: 52px;
  min-block-size: 52px;
  border-radius: 50%;
  box-shadow: var(--shadow-1);
  animation: subs-float 7s var(--ease) infinite;
  animation-delay: var(--od, 0ms);
}
.subs-orbit__chip img {
  inline-size: 64%;
  block-size: 64%;
}
.subs-orbit__chip:hover {
  border-color: var(--c-line);
  box-shadow: var(--shadow-1);
}
@keyframes subs-float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 6px)); }
}
@media (max-width: 520px) {
  .subs-orbit { max-inline-size: 300px; }
  .subs-orbit__chip {
    min-inline-size: 44px;
    min-block-size: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .subs-orbit__chip { animation: none; }
}
