@charset "UTF-8";
/* ==========================================================================
   Pakdis — organisational chart
   --------------------------------------------------------------------------
   A standalone sheet for org.html. No colour, font, radius or easing of its
   own: everything resolves to the tokens in css/style.css, and the header,
   footer, .plate, .ptitle, .breadcrumb and .link-arrow are used as that sheet
   defines them. Card corners are the news card's (9 9 32 9), the connectors
   are borders on boxes (the identity draws lines that turn), and purple is
   structure while gold is incident — the same division the brand sheet uses.
   ========================================================================== */

/* -- 1. Opening band (the company page's band, shorter at the foot) ------- */
.orghead {
  position: relative;
  overflow: hidden;
  padding-block: var(--hero-top) 96px;
  background: linear-gradient(158deg,
    color-mix(in srgb, var(--purple-flood) 88%, #fff) 0%,
    var(--purple-flood) 42%, #3b256b 78%, #34205f 100%);
  isolation: isolate;
}
.orghead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../assets/pattern-gallery.png) left -419px top -101px / 2477px auto repeat;
  opacity: .2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 76%, transparent 99%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 76%, transparent 99%);
}
.orghead__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 560px at calc(100% + 220px) -180px, rgb(187 167 96 / .26) 0%, rgb(187 167 96 / 0) 70%),
    radial-gradient(760px 520px at -12% 108%, rgb(255 255 255 / .07) 0%, rgb(255 255 255 / 0) 72%);
}
.orghead::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to left, rgb(187 167 96 / 0), rgb(187 167 96 / .45) 30%, rgb(187 167 96 / .45) 70%, rgb(187 167 96 / 0));
  pointer-events: none;
}
.orghead__inner { position: relative; z-index: 1; }

.orghead .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, .7);
}
.orghead .breadcrumb a { color: rgba(255, 255, 255, .7); transition: color .2s var(--ease); }
.orghead .breadcrumb a:hover { color: var(--gold); }
.orghead .breadcrumb span { color: #fff; }
.orghead .breadcrumb__sep {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .6;
  rotate: 180deg;
}
.orghead ::selection { background: var(--gold); color: var(--purple-deep); }
.orghead a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 3px; }

/* -- 2. Section ------------------------------------------------------------ */
.org {
  --line: 1.6px;
  --line-color: rgb(68 47 114 / .38);
  --stem: 40px;
  position: relative;
  padding-block: 84px 120px;
  background:
    radial-gradient(640px 420px at 100% 0%, rgb(187 167 96 / .10) 0%, rgb(187 167 96 / 0) 70%),
    #fff;
}

.org__intro { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.org__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .02em;
}
.org__eyebrow::before,
.org__eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.org__title { margin: 0; font-size: clamp(26px, 2.6vw, 36px); font-weight: 900; line-height: 1.4; color: var(--purple); }
.org__lead { margin: 14px 0 0; font-size: 17px; font-weight: 300; line-height: 1.8; color: var(--grey-600, #666); }

.org__legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--purple); }
.org__legend li { display: inline-flex; align-items: center; gap: 8px; }
.org__key { width: 18px; height: 12px; border-radius: 3px 3px 7px 3px; border: 1.5px solid var(--purple); }
.org__key--top { background: var(--purple); }
.org__key--unit { background: #fff; }
.org__key--info { position: relative; background: #fff; }
.org__key--info::after { content: ""; position: absolute; inset: 2px auto auto 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* -- 3. Chart -------------------------------------------------------------- */
.org__chart { position: relative; --g: 18px; --row: 64px; --stub: 24px; }

.org__top { display: flex; flex-direction: column; align-items: center; }
.org__solo { width: min(300px, 100%); }
.org__stem { display: block; width: var(--line); height: var(--stem); background: var(--line-color); }
.org__stem--fork { background: linear-gradient(to bottom, var(--line-color), var(--gold)); }

/* Seven direct reports on one seven-column grid; the bus runs from the centre
   of the first column to the centre of the last, and every card drops a stub. */
.org__deps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--g);
  margin: 0;
  padding: var(--stub) 0 0;
  list-style: none;
}
.org__deps::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: calc((100% - 6 * var(--g)) / 14);
  height: var(--line);
  background: var(--gold);
}
.org__dep { position: relative; display: flex; }
.org__dep::before {
  content: "";
  position: absolute;
  top: calc(var(--stub) * -1);
  inset-inline-start: 50%;
  width: var(--line);
  height: var(--stub);
  background: var(--gold);
}
/* The two heads of units pass a stem down to their own bus. */
.org__dep--has-branch::after {
  content: "";
  position: absolute;
  top: 100%;
  inset-inline-start: 50%;
  width: var(--line);
  height: var(--row);
  background: var(--line-color);
}

/* Units: same columns as the row above, so each branch sits under its head.
   Finance takes columns 1–4 (two rows of four), production columns 6–7. */
.org__branches {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--g);
  margin-top: var(--row);
}
.org__branch {
  position: relative;
  display: grid;
  gap: var(--g);
  margin: 0;
  padding: var(--stub) 0 0;
  list-style: none;
  align-content: start;
}
.org__branch::before {                      /* the unit's bus */
  content: "";
  position: absolute;
  top: 0;
  inset-inline: calc((100% - (var(--n) - 1) * var(--g)) / (2 * var(--n)));
  height: var(--line);
  background: var(--line-color);
}
.org__branch--fin  { --n: 4; grid-column: 1 / span 4; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.org__branch--prod { --n: 2; grid-column: 6 / span 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.org__sub { position: relative; display: flex; }
.org__sub:nth-child(-n + 5)::before {       /* first row only: stubs up to the bus (label is child 1) */
  content: "";
  position: absolute;
  top: calc(var(--stub) * -1);
  inset-inline-start: 50%;
  width: var(--line);
  height: var(--stub);
  background: var(--line-color);
}
.org__sub:nth-child(n + 6)::before { display: none; }
.org__branch--prod .org__sub:nth-child(n + 4)::before { display: none; }
.org__branchlabel { display: none; }
.org__sub .unit,
.org__dep .unit { width: 100%; }

/* -- 4. Unit card ---------------------------------------------------------- */
.unit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 112px;
  padding: 16px 10px 16px;
  text-align: center;
  font: inherit;
  color: var(--purple);
  background: #fff;
  border: 1.5px solid rgb(68 47 114 / .22);
  border-radius: 9px 9px 24px 9px;
  box-shadow: 0 14px 28px -22px rgb(17 7 53 / .55);
  cursor: pointer;
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease);
}
.unit__ico { width: 30px; height: 30px; color: var(--gold); flex: none; }
.unit__ico svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.unit__title { font-size: 14.5px; font-weight: 700; line-height: 1.7; text-wrap: balance; }

.unit:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 22px 34px -22px rgb(17 7 53 / .6); }
.unit:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.unit[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }

/* Posts whose contact details are on file carry a gold node. */
.unit.has-info::after {
  content: "";
  position: absolute;
  top: 9px;
  inset-inline-end: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgb(187 167 96 / .25);
}

.unit--sub { min-height: 96px; border-color: rgb(187 167 96 / .55); }

.unit--top {
  min-height: 108px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--purple-flood) 90%, #fff), var(--purple-flood) 60%, #34205f);
  border-color: var(--purple-flood);
  color: #fff;
  box-shadow: 0 0 0 1px rgb(187 167 96 / .5), 0 24px 36px -22px rgb(17 7 53 / .8);
}
.unit--top .unit__title { font-size: 18px; }
.unit--top:hover { border-color: var(--purple-flood); box-shadow: 0 0 0 1.5px var(--gold), 0 28px 40px -22px rgb(17 7 53 / .85); }
.unit--top[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--gold), 0 28px 40px -22px rgb(17 7 53 / .85); background: linear-gradient(160deg, #4e3286, #34205f); }

/* -- 5. Detail panel -------------------------------------------------------- */
.org-panel {
  display: grid;
  grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  margin-top: 64px;
  padding: 36px 44px;
  border-radius: 9px 9px 48px 9px;
  color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--purple-flood) 92%, #fff), var(--purple-flood) 55%, #2b1a57);
  box-shadow: 0 30px 50px -34px rgb(17 7 53 / .85);
  isolation: isolate;
  overflow: hidden;
  position: relative;
}
.org-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url(../assets/pattern-gallery.png) left -300px top -80px / 1700px auto no-repeat;
  opacity: .2;
  pointer-events: none;
}
.org-panel::after {
  content: "";
  position: absolute;
  inset-block: 24px;
  inset-inline-start: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), rgb(187 167 96 / 0));
}
.org-panel__mark { display: grid; place-items: center; min-height: 110px; }
.org-panel__mark img { display: block; max-width: 100%; max-height: 130px; width: auto; height: auto; object-fit: contain; }
.org-panel__mark.is-photo img {
  max-height: 232px;
  border-radius: 9px 9px 28px 9px;
  border: 3px solid var(--gold);
  box-shadow: 0 18px 30px -18px rgb(0 0 0 / .7);
}
.org-panel__kicker { margin: 0 0 6px; font-size: 14px; font-weight: 500; color: var(--gold); }
.org-panel__title { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 900; line-height: 1.4; }
.org-panel__name { margin: 6px 0 0; font-size: 19px; font-weight: 500; color: #fff; }
.org-panel__list { margin: 20px 0 0; display: grid; gap: 10px; }
.org-panel__list > div { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.org-panel__list dt { min-width: 52px; font-size: 14px; font-weight: 500; color: var(--gold); }
.org-panel__list dd { margin: 0; font-size: 17px; font-weight: 300; color: rgba(255, 255, 255, .92); }
.org-panel__list a { color: inherit; transition: color .2s var(--ease); }
.org-panel__list a:hover { color: var(--gold); }
.org-panel__text { margin: 12px 0 0; max-width: 62ch; font-size: 16px; font-weight: 300; line-height: 1.9; color: rgba(255, 255, 255, .85); }
.org-panel__text:empty { display: none; }
.org-panel.is-swapping .org-panel__body,
.org-panel.is-swapping .org-panel__mark { opacity: 0; transform: translateY(6px); }
.org-panel__body,
.org-panel__mark { transition: opacity .25s var(--ease), transform .3s var(--ease); }

.org ::selection { background: var(--purple); color: #fff; }

/* -- 6. Responsive ---------------------------------------------------------- */
@media (max-width: 1200px) {
  .orghead { padding-block: var(--hero-top) 80px; }
  .org { padding-block: 70px 96px; }
  .org__chart { --g: 12px; }
  .unit { padding-inline: 6px; }
  .unit__title { font-size: 13.5px; }
}

/* Seven columns stop fitting: the chart becomes a single trunk down the
   inline-start edge, each head followed by its unit as a block. */
@media (max-width: 960px) {
  .org__chart { --g: 12px; }
  .org__deps,
  .org__branches { display: flex; flex-direction: column; gap: 14px; }
  .org__deps { padding: 0; padding-inline-start: 28px; position: relative; }
  .org__deps::before {
    inset: calc(var(--stem) * -1) auto 22px;
    inset-inline-start: 0;
    width: var(--line);
    height: auto;
    background: var(--gold);
  }
  .org__dep::before { top: 50%; inset-inline-start: -28px; width: 28px; height: var(--line); }
  .org__dep--has-branch::after { display: none; }
  .org__dep .unit { flex-direction: row; justify-content: flex-start; text-align: start; min-height: 0; padding: 12px 16px; gap: 14px; }
  .unit__title { font-size: 15px; }

  .org__branches { margin-top: 30px; gap: 26px; }
  .org__branch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; padding: 22px 16px 16px; border: 1px solid rgb(187 167 96 / .4); border-radius: 9px 9px 28px 9px; background: rgb(187 167 96 / .07); grid-column: auto !important; }
  .org__branch::before,
  .org__sub::before { display: none !important; }
  .org__branchlabel { display: block; grid-column: 1 / -1; margin-bottom: 4px; font-size: 14.5px; font-weight: 700; color: var(--purple); }

  .org-panel { grid-template-columns: 1fr; gap: 20px; padding: 30px 28px; }
  .org-panel__mark { justify-items: start; min-height: 0; }
  .org-panel__mark img { max-height: 90px; }
  .org-panel__mark.is-photo img { max-height: 180px; }
}

@media (max-width: 620px) {
  .orghead { padding-block: var(--hero-top) 64px; }
  .org { padding-block: 52px 72px; }
  .org__intro { margin-bottom: 44px; }
  .org__lead { font-size: 15.5px; }
  .org__branch { grid-template-columns: 1fr !important; }
  .org__deps { padding-inline-start: 22px; }
  .org__dep::before { inset-inline-start: -22px; width: 22px; }
  .org-panel { margin-top: 44px; padding: 26px 20px; border-radius: 9px 9px 32px 9px; }
  .org-panel__list dd { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .unit,
  .org-panel__body,
  .org-panel__mark { transition: none; }
  .unit:hover { transform: none; }
}

@media print {
  .org { padding-block: 24px; background: #fff; }
  .org-panel { display: none; }
  .unit { box-shadow: none; }
}

/* `hidden` must win over the display values set above. */
.org-panel [hidden] { display: none !important; }
.org__solo .unit { width: 100%; }
