/* VARELX Holdings — shared styles for every page.
   The site is the headquarters lobby: navy directory panels on a light wall,
   one gold floor indicator. Tokens first, then components top to bottom. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --wall: #f4f5f7;
  --white: #ffffff;
  --ink: #0b1220;
  --slate: #515b6d;
  --rule: #d6dae2;
  --navy: #0e1b33;
  --navy-hover: #172a4d;
  --panel-text: #ffffff;
  --panel-muted: #a9b4c9;
  --panel-rule: #26375a;
  --gold: #b8924a;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  scrollbar-color: #9aa3b2 var(--wall);
}

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  caret-color: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--navy); color: var(--white); }
.panel ::selection, .ir-band ::selection { background: var(--white); color: var(--navy); }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 1px;
}
.panel a:focus-visible, .ir-band a:focus-visible { outline-color: var(--white); }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 50;
  background: var(--navy); color: var(--white); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.sign {
  font-stretch: 125%;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.icon { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: square; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  height: var(--header-h);
  background: var(--wall);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; }
.brand .mark { height: 34px; width: auto; }
.brand .word { height: 30px; width: auto; }

.site-nav { justify-self: end; display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 0.8125rem; text-decoration: none; color: var(--slate);
  font-stretch: 125%; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  padding-block: 6px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--ink); }

/* Floor indicator: the one place gold is spent. */
.dial { position: relative; width: 168px; height: 62px; justify-self: end; margin-top: 4px; }
.dial svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial .arc { stroke: var(--rule); stroke-width: 1; fill: none; }
.dial .tick { stroke: var(--gold); stroke-width: 1.25; }
.dial .needle {
  transform-origin: 84px 56px;
  transform: rotate(var(--needle, -75deg));
  transition: transform 400ms var(--ease-out);
}
.dial .needle line { stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.dial .needle circle { fill: var(--gold); }
.dial ol { position: absolute; inset: 0; }
.dial li:nth-child(1) { --a: -75deg; }
.dial li:nth-child(2) { --a: -45deg; }
.dial li:nth-child(3) { --a: -15deg; }
.dial li:nth-child(4) { --a: 15deg; }
.dial li:nth-child(5) { --a: 45deg; }
.dial li:nth-child(6) { --a: 75deg; }
.dial li {
  position: absolute; left: 84px; top: 56px;
  transform: rotate(var(--a)) translateY(-49px) rotate(calc(-1 * var(--a)));
}
.dial a {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: 22px; height: 20px;
  font-size: 0.75rem; font-weight: 600; font-stretch: 125%; letter-spacing: 0.04em;
  color: var(--slate); text-decoration: none;
  transition: color 300ms var(--ease-out);
}
.dial a::after { content: ""; position: absolute; inset: -8px -4px; }
.dial a:hover { color: var(--ink); }
.dial a[aria-current="true"] { color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 22px;
  font-size: 0.875rem; font-weight: 600; font-stretch: 125%; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
  transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out);
}
.btn .icon { transition: transform 300ms var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-hover); }
.btn-plain { padding-inline: 4px; color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); border-radius: 0; min-height: 44px; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  min-height: calc(100svh - var(--header-h));
  max-height: 980px;
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: 64px clamp(24px, 4vw, 64px) 64px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.hero h1 {
  font-size: clamp(2.6rem, 6.1vw, 5.5rem);
  line-height: 1;
  font-weight: 500;
  font-stretch: 108%;
  letter-spacing: -0.028em;
  text-wrap: balance;
  max-width: 12ch;
}
.hero .lede { color: var(--slate); font-size: 1.125rem; max-width: 42ch; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }

/* ---------- Directory panel (hero, contact) ---------- */

.panel { background: var(--navy); color: var(--panel-text); }
.hero .panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 56px clamp(28px, 4vw, 72px);
}
.board-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 18px; border-bottom: 1px solid var(--panel-muted);
  font-size: 0.75rem; color: var(--panel-muted);
}
.board-head strong { color: var(--panel-text); font-weight: 600; }

.directory { display: grid; }
.directory a {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 20px;
  padding: 20px 8px 20px 0;
  border-bottom: 1px solid var(--panel-rule);
  text-decoration: none;
  transition: background-color 240ms var(--ease-out);
}
.directory .floor {
  font-size: clamp(1.75rem, 2.4vw, 2.25rem); line-height: 1;
  font-weight: 500; font-stretch: 125%;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.directory .name { font-size: clamp(1rem, 1.3vw, 1.1875rem); line-height: 1.25; }
.directory .what { display: block; margin-top: 4px; font-size: 0.9375rem; color: var(--panel-muted); }
.directory .icon { font-size: 1.25rem; color: var(--panel-muted); transition: transform 300ms var(--ease-out), color 300ms var(--ease-out); }
.directory a:hover { background: var(--navy-hover); }
.directory a[aria-current="true"] { background: var(--navy-hover); }
.directory a[aria-current="true"] .icon { color: var(--panel-text); }
.directory a:hover .icon { transform: translateX(4px); color: var(--panel-text); }
.directory .vacant .name, .directory .vacant .floor { color: var(--panel-muted); }

/* Reception row: inverted, the page's primary destination. */
.directory a.reception { background: var(--white); color: var(--navy); border-bottom: 0; margin-top: 20px; }
.directory a.reception .what, .directory a.reception .icon { color: var(--slate); }
.directory a.reception:hover { background: #e8ebf1; }
.directory a.reception:hover .icon { color: var(--navy); }

/* ---------- Floors ---------- */

.floor-sec { padding-block: clamp(72px, 8.5vw, 120px); border-top: 1px solid var(--rule); }
.floor-sec .wrap {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 32px clamp(24px, 4vw, 64px);
}
.plate {
  position: sticky; top: calc(var(--header-h) + 32px);
  align-self: start;
  display: grid; gap: 14px; justify-items: start;
}
.plate .num {
  display: grid; place-items: center;
  width: clamp(76px, 7vw, 104px); aspect-ratio: 1;
  background: var(--navy); color: var(--white);
  font-size: clamp(2.25rem, 3.6vw, 3.25rem); font-weight: 500; font-stretch: 125%; line-height: 1;
}
.plate .num.vacant { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.plate .label { font-size: 0.75rem; color: var(--slate); }

.floor-body { display: grid; gap: 28px; max-width: 880px; }
.floor-body h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.06; font-weight: 500; font-stretch: 108%; letter-spacing: -0.024em;
  text-wrap: balance;
}
.floor-body h2.company { font-stretch: 125%; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; font-size: clamp(2.25rem, 4.4vw, 4rem); }
.floor-body .role { font-size: 0.8125rem; color: var(--slate); margin-top: -12px; }
.floor-body p { max-width: 62ch; color: #2a3344; }
.floor-body p.big { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.5; color: var(--ink); max-width: 56ch; }

.visit { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-stretch: 125%; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.875rem; text-decoration: none; box-shadow: inset 0 -1px 0 currentColor; padding-bottom: 6px; justify-self: start; }
.visit:hover .icon { transform: translate(2px, -2px); }
.visit .icon { transition: transform 300ms var(--ease-out); }

/* Group structure: the lines are the only ornament. */
.structure { margin-top: 16px; display: grid; justify-items: center; }
.structure .parent {
  background: var(--navy); color: var(--white);
  padding: 18px 28px; font-size: 1rem; text-align: center; min-width: 260px;
}
.structure .stem { width: 1px; height: 36px; background: var(--ink); }
.structure .children {
  width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  position: relative; padding-top: 36px;
}
.structure .children::before {
  content: ""; position: absolute; top: 0; height: 1px; background: var(--ink);
  left: calc((100% - 32px) / 6); right: calc((100% - 32px) / 6);
}
.structure .child { position: relative; border: 1px solid var(--ink); background: var(--white); padding: 18px 16px; text-align: center; }
.structure .child::before { content: ""; position: absolute; left: 50%; top: -37px; width: 1px; height: 36px; background: var(--ink); }
.structure .child .sign { display: block; font-size: 0.9375rem; }
.structure .child span:last-child { display: block; margin-top: 6px; font-size: 0.875rem; color: var(--slate); line-height: 1.4; }
.structure .child.dashed { border-style: dashed; background: transparent; }

.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.pillars li { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; }
.pillars li:nth-child(odd) { border-right: 1px solid var(--rule); }
.pillars li:nth-child(even) { padding-left: 20px; }

.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 8px; }
.person { display: grid; gap: 16px; align-content: start; }
.person .photo { background: var(--white); aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 1px solid var(--ink); }
.person .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.person h4 { margin: 0; font-size: 1.375rem; font-weight: 500; font-stretch: 108%; letter-spacing: -0.01em; line-height: 1.2; }
.person .title { font-size: 0.75rem; color: var(--slate); margin-top: 4px; }
.person .li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: var(--slate); text-decoration: none; justify-self: start; min-height: 44px; }
.person .li:hover { color: var(--ink); }
.person .li svg { width: 18px; height: 18px; fill: currentColor; }

.subhead { font-size: 0.8125rem; color: var(--slate); padding-top: 12px; }

/* ---------- IR band ---------- */

.ir-band { background: var(--navy); color: var(--white); padding-block: clamp(80px, 10vw, 136px); }
.ir-band .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px clamp(24px, 4vw, 64px); }
.ir-band .plate .num { background: var(--white); color: var(--navy); font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.ir-band .plate .label { color: var(--panel-muted); }
.ir-band h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.06; font-weight: 500; font-stretch: 108%; letter-spacing: -0.024em; }
.ir-band p { color: var(--panel-muted); max-width: 56ch; }
.ir-band .mail {
  font-size: clamp(1.375rem, 3.2vw, 2.5rem); font-weight: 500; font-stretch: 112%; letter-spacing: -0.01em;
  text-decoration: none; box-shadow: inset 0 -1px 0 var(--panel-muted); justify-self: start;
  overflow-wrap: anywhere;
}
.ir-band .mail:hover { box-shadow: inset 0 -2px 0 var(--white); }
.ir-band .floor-body { gap: 24px; }
.ir-band .visit { color: var(--white); }

/* ---------- Inner pages ---------- */

.page-head { padding-block: clamp(72px, 9vw, 128px) clamp(40px, 5vw, 64px); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px clamp(24px, 4vw, 64px); }
.page-head h1 { font-size: clamp(2.6rem, 5vw, 4.75rem); line-height: 1.02; font-weight: 500; font-stretch: 108%; letter-spacing: -0.028em; }
.page-head .lede { margin-top: 24px; font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.5; max-width: 56ch; }

.section { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--rule); }
.section .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 20px clamp(24px, 4vw, 64px); }
.section h2 { font-size: 0.8125rem; color: var(--slate); padding-top: 6px; }
.section .body { display: grid; gap: 20px; max-width: 70ch; }
.section .body p { color: #2a3344; }
.section .body h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.35; margin-top: 12px; }
.section .body ul { display: grid; gap: 10px; }
.section .body li { padding-left: 20px; position: relative; color: #2a3344; }
.section .body li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 1px; background: var(--ink); }
.section .body a { color: var(--ink); }

.notice { border: 1px solid var(--ink); background: var(--white); padding: 24px 28px; }
.notice p { color: var(--ink); }

.contact-panel { padding: 8px clamp(20px, 3vw, 40px) 32px; }
.contact-panel .directory a { grid-template-columns: minmax(0, 1fr) auto; }
.contact-panel .directory .name { font-size: 1rem; }
.contact-panel .directory .what { font-size: 1.0625rem; color: var(--panel-text); margin-top: 6px; overflow-wrap: anywhere; }

.toc { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; }
.toc a { font-size: 0.8125rem; text-decoration: none; color: var(--slate); box-shadow: inset 0 -1px 0 var(--rule); padding-bottom: 4px; }
.toc a:hover { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.updated { font-size: 0.875rem; color: var(--slate); margin-top: 20px; }

/* ---------- Footer ---------- */

.site-footer { padding-block: 64px 40px; border-top: 1px solid var(--rule); background: var(--wall); }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.site-footer .top img { height: 64px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer nav a { font-size: 0.8125rem; text-decoration: none; color: var(--slate); min-height: 44px; display: inline-flex; align-items: center; }
.site-footer nav a:hover { color: var(--ink); }
.site-footer .legal-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; padding-top: 32px; font-size: 0.8125rem; line-height: 1.6; color: var(--slate); }
.site-footer .copy { padding-top: 32px; font-size: 0.8125rem; color: var(--slate); }

/* ---------- 404 ---------- */

.lost { min-height: calc(100svh - var(--header-h) - 1px); display: grid; place-items: center; padding: 64px var(--gutter); text-align: center; }
.lost .plate { position: static; justify-items: center; margin-bottom: 28px; }
.lost h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 500; font-stretch: 108%; letter-spacing: -0.024em; line-height: 1.05; text-wrap: balance; }
.lost-text { margin-top: 20px; color: var(--slate); }
.lost-action { margin-top: 32px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero-copy { padding: 28px var(--gutter) 32px; gap: 20px; }
  .hero .lede { font-size: 1rem; }
  .hero .panel { padding: 24px var(--gutter) 40px; }
  .hero h1 { max-width: 14ch; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .site-header .wrap { grid-template-columns: auto 1fr auto; gap: 12px; }
  .brand .word { display: none; }
  .brand .mark { height: 30px; }
  .dial { width: 150px; height: 52px; transform: scale(0.9); justify-self: center; }
  .site-nav { gap: 0; }
  .site-nav a:not(.keep) { display: none; }

  .section .wrap { grid-template-columns: 1fr; }
  .floor-sec .wrap, .ir-band .wrap, .page-head .wrap { grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; row-gap: 24px; }
  .floor-body, .head-body { display: contents; }
  .floor-body > *, .head-body > * { grid-column: 1 / -1; }
  .floor-body > h2:first-child, .head-body > h1:first-child { grid-column: 2; grid-row: 1; align-self: center; }
  .plate { position: static; grid-column: 1; grid-row: 1; align-self: center; }
  .plate .label { display: none; }
  .plate .num { width: 56px; font-size: 1.75rem; }
  .ir-band .plate .num { font-size: 1.25rem; }
  .page-head .lede { margin-top: 0; }
  .toc, .updated { margin-top: 0; }

  .structure .children { grid-template-columns: 1fr; padding-top: 0; padding-left: 28px; gap: 12px; margin-top: 0; }
  .structure .children::before { left: 0; right: auto; top: 0; bottom: 30px; width: 1px; height: auto; }
  .structure .child { text-align: left; }
  .structure .child::before { left: -29px; top: 50%; width: 28px; height: 1px; }
  .structure { justify-items: stretch; }
  .structure .parent { min-width: 0; text-align: left; }
  .structure .stem { margin-left: 0; height: 12px; }

  .site-footer .legal-text { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .directory a { grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 14px; padding-block: 16px; }
  .pillars { grid-template-columns: 1fr; }
  .pillars li:nth-child(odd) { border-right: 0; }
  .pillars li:nth-child(even) { padding-left: 0; }
  .people { grid-template-columns: 1fr; gap: 40px; }
  .person .photo { max-width: 360px; }
  .board-head { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}
