/* ==========================================================================
   On-Site Power Roundtable — ALTERNATIVE 4: the table
   --------------------------------------------------------------------------
   One cream surface, no split. Asymmetric rather than centred: the statement
   sits left, the documents sit right. The centrepiece is an abstract mark —
   a thick, open arc with flat-edged forms orbiting outside it — laid across
   the right-hand column so the two halves read as one field. The arc's gap
   faces the documents. Nothing in it is countable; the opening is the point.

   Restraint is what keeps it from reading as an icon: one stroke weight, one
   repeated form, low alpha, and a single slow reveal on load.

   Contrast: ink on cream 10.5:1, body copy --ink-soft 8.3:1. On cream, gold
   is geometry only (2.3:1 as text). The one place gold carries text is the
   masthead pill, which is ink, and there it uses --gold-text at 5.2:1.
   ========================================================================== */

:root {
  --gold: #b18f36;                /* geometry only: 2.3:1 on cream, 4.49:1 on ink */
  --gold-text: #bf9a3a;           /* the only gold allowed to carry text, on ink: 5.2:1 */
  --cream: #e6e1c9;
  --ink: #2d2d2d;

  --surface: var(--cream);
  --on-surface: var(--ink);

  --ink-soft: #3d3d3d;            /* body copy, 8.3:1 on cream */
  --muted: rgba(45, 45, 45, 0.68);
  --faint: rgba(45, 45, 45, 0.42);
  --rule: rgba(45, 45, 45, 0.15);

  --font-display: "Figtree", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --measure: 1200px;
  /* Mark placement. The binding constraint is the lower-left seat against the
     buttons: 57% is the last collision-free step but leaves only 5px, which
     reads as touching. 58% keeps 17px. Below 57% the mark crosses the
     statement — verified by sweeping x and y against a 2D collision test. */
  --orbit-x: 58%;
  --orbit-w: clamp(320px, 52vh, 540px);
  --orbit-y: 50%;
  --gut: clamp(1.25rem, 4.5vw, 3.5rem);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow: hidden; /* the page never scrolls; the reader does */
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--on-surface);
  outline-offset: 3px;
  border-radius: 2px;
}

.eyebrow,
.btn,
.window__title,
.colophon {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}

/* ── Frame ──────────────────────────────────────────────────────────────── */

.masthead {
  flex-shrink: 0;
  align-self: flex-start;
  display: flex;
  align-items: center;
  height: clamp(3rem, 6.4vh, 3.75rem);
  max-width: min(640px, calc(100% - 2 * var(--gut)));
  margin: clamp(1rem, 2.4vh, 1.75rem) var(--gut) 0;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid rgba(230, 225, 201, 0.22);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(45, 45, 45, 0.16);
}

.masthead__brand {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1.5rem;
  border-right: 1px solid rgba(230, 225, 201, 0.22);
  flex-shrink: 0;
}

.masthead__brand img {
  height: clamp(22px, 3.2vh, 28px);
  width: auto;
}

.masthead__tag {
  margin: 0;
  padding: 0 1.5rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.masthead__tag span {
  color: var(--gold-text);
  margin: 0 0.3em;
}

.stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: clamp(1rem, 2.5vh, 2rem) var(--gut) 0;
}

.view {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  min-height: 0;
  animation: rise 0.4s var(--ease);
}

.view[hidden] {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ── Home: statement left, table right ──────────────────────────────────── */

.view--home {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1.2rem;
  font-size: 0.66rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Graphic, not text, so gold is fine against cream. */
.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 3.4vw + 0.7rem, 3.5rem);
  line-height: 1.03;
  letter-spacing: -0.033em;
  max-width: 15ch;
}

.sub {
  margin: clamp(1rem, 2.4vh, 1.5rem) 0 0;
  max-width: 44ch;
  font-size: clamp(0.96rem, 0.45vw + 0.82rem, 1.1rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: clamp(1.4rem, 3vh, 2.1rem);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.68rem;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid var(--on-surface);
  transition: background-color 0.18s, color 0.18s;
}

.btn--solid {
  background: var(--on-surface);
  color: var(--surface);
}

.btn--solid:hover {
  background: #1f1f1f;
  border-color: #1f1f1f;
}

.btn--outline {
  background: transparent;
  color: var(--on-surface);
}

.btn--outline:hover {
  background: var(--on-surface);
  color: var(--surface);
}

/* ── The table ──────────────────────────────────────────────────────────── */

/* Decorative mark. It is deliberately laid across the right-hand column so the
   composition reads as one field rather than two tidy halves, with the arc's
   opening pointing at the documents. Everything sits at low alpha: text layers
   over it and still clears AA comfortably (measured 7.3:1 at worst).
   The contrast audit walks ancestor backgrounds and cannot see a shape behind
   text, so these alphas are the safeguard — do not raise them. */
.orbit {
  position: absolute;
  z-index: 0;
  top: var(--orbit-y);
  left: var(--orbit-x);
  width: var(--orbit-w);
  height: auto;
  transform: translate(-30%, -50%);
  pointer-events: none;
  overflow: visible;
  animation: orbit-in 0.9s var(--ease) both;
}

.orbit__arc {
  fill: none;
  stroke: rgba(45, 45, 45, 0.22);
  stroke-width: 5;
  stroke-linecap: round;
}

.orbit__seats path {
  fill: rgba(177, 143, 54, 0.55);
}

@keyframes orbit-in {
  from {
    opacity: 0;
    transform: translate(-30%, -50%) scale(0.94);
  }
}

/* Content layers above the mark. */
.statement,
.table {
  position: relative;
  z-index: 1;
}

.table {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

/* ── Document list ──────────────────────────────────────────────────────── */

.list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(0.65rem, 1.7vh, 0.95rem) 0;
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}

.item:hover {
  transform: translateX(4px);
}

.item__mark {
  display: grid;
  place-items: center;
}

.item__icon {
  width: 25px;
  height: 25px;
  fill: none;
  /* Alpha on the stroke, not on the SVG: a blanket opacity would dim the
     gold fold along with the outline. */
  stroke: rgba(45, 45, 45, 0.5);
  stroke-width: 1.4;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}

.item__icon-fold {
  fill: var(--gold);
  stroke: none;
}

.item:hover .item__icon {
  stroke: var(--ink-soft);
}

.item__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 0.85vw + 0.8rem, 1.25rem);
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.note {
  margin: clamp(1.5rem, 3.4vh, 2.4rem) 0 0;
  padding-top: clamp(1.1rem, 2.4vh, 1.6rem);
  border-top: 1px solid var(--rule);
  max-width: 40ch;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(45, 45, 45, 0.72);    /* 4.8:1 on cream */
}

/* ── Document window ───────────────────────────────────────────────────── */

/* Carried over from the original layout: documents open in a window over a
   blurred cream scrim rather than replacing the page. */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: clamp(3rem, 8vh, 5.5rem) var(--gut) 0;
  background: rgba(230, 225, 201, 0.82);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  animation: fade 0.25s var(--ease);
}

.overlay[hidden] {
  display: none;
}

.window {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 940px;
  min-height: 0;
  max-height: 100%;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: 0 -4px 60px rgba(45, 45, 45, 0.3);
  animation: riseup 0.42s var(--ease);
}

.overlay.is-expanded {
  padding: 0;
}

.overlay.is-expanded .window {
  max-width: none;
  border-radius: 0;
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 0.6rem;
  background: #3a3a3a;
  flex-shrink: 0;
  user-select: none;
}

.window__title {
  flex: 1;
  text-align: center;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(230, 225, 201, 0.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window__close,
.window__expand {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: rgba(230, 225, 201, 0.75);
  transition: background-color 0.15s, color 0.15s;
}

.window__close:hover,
.window__expand:hover {
  background: rgba(230, 225, 201, 0.14);
  color: var(--cream);
}

.window__close svg,
.window__expand svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.window__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(2rem, 5vh, 3.25rem) clamp(1.4rem, 5vw, 4.5rem) 4rem;
  background: var(--ink);
  color: var(--cream);
}

.window__body:focus {
  outline: none;
}

@keyframes riseup {
  from {
    transform: translateY(70px);
    opacity: 0;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

/* ── Document content, on dark ──────────────────────────────────────────── */

.window__body > *:first-child {
  margin-top: 0;
}

.window__body p {
  margin: 0 0 1.35rem;
  max-width: 64ch;
  color: rgba(230, 225, 201, 0.88);
}

.doc__lede {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 2.2vw + 0.8rem, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--cream);
  max-width: 30ch;
}

.window__body h3 {
  margin: 2.5rem 0 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(230, 225, 201, 0.16);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.window__body strong {
  color: var(--cream);
  font-weight: 700;
}

.window__body em {
  color: var(--cream);
}

.doc__muted {
  color: rgba(230, 225, 201, 0.62) !important;
}

.doc__stamp {
  display: block;
  margin: 0 0 1.6rem !important;
  padding: 0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-text) !important;
}

.doc__cta-line {
  margin-top: 2.4rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(230, 225, 201, 0.16);
  font-size: 0.95rem;
}

.window__body a {
  color: var(--cream);
  text-decoration-color: var(--gold-text);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.window__body a:hover {
  color: var(--gold-text);
}

.pillars {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  max-width: 62ch;
}

.pillars li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.6rem 0;
  color: rgba(230, 225, 201, 0.88);
}

.pillars__n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold-text);
  width: 1.5rem;
  flex-shrink: 0;
}

.spec {
  margin: 0 0 1.6rem;
  max-width: 62ch;
  border-top: 1px solid rgba(230, 225, 201, 0.16);
}

.spec > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(230, 225, 201, 0.16);
}

.spec dt {
  flex: 0 0 8.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  padding-top: 0.2rem;
}

.spec dd {
  margin: 0;
  flex: 1 1 14rem;
  color: rgba(230, 225, 201, 0.88);
}

.members {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
}

.members li {
  display: grid;
  place-items: center;
  padding: 1rem 0.9rem;
  background: var(--cream);
  border-radius: var(--radius);
  min-height: 78px;
}

.members img {
  max-height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.bio {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 0 0 2rem;
  padding-bottom: 1.7rem;
  border-bottom: 1px solid rgba(230, 225, 201, 0.16);
}

.bio__photo {
  width: 98px;
  height: 98px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.window__body .bio__name {
  margin: 0 0 0.25rem;
  padding: 0;
  border: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--cream);
}

.bio__role {
  margin: 0 !important;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-text) !important;
}

.callout {
  margin-top: 2.4rem;
  padding: 1.8rem;
  background: rgba(191, 154, 58, 0.1);
  border: 1px solid rgba(191, 154, 58, 0.42);
  border-radius: var(--radius);
}
/* When the callout carries only the button, drop the box but keep the button's
   styling for this surface, which .callout .btn supplies. */
.callout--bare {
  background: none;
  border: none;
  padding: 0;
}


.callout p {
  margin-bottom: 1.4rem !important;
}

.callout .btn {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.colophon {
  flex-shrink: 0;
  max-width: var(--measure);
  width: 100%;
  margin: 0 auto;
  padding: clamp(0.9rem, 2.2vh, 1.5rem) var(--gut);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.5rem;
  justify-content: space-between;
  font-size: 0.58rem;
  color: var(--faint);
}

.colophon p {
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

/* Below this the two columns and the fixed screen stop working, so the page
   becomes an ordinary scrolling document. */
@media (max-width: 880px), (max-height: 640px) {
  html,
  body {
    height: auto;
  }

  body {
    overflow: auto;
  }

  .stage {
    padding: 1.5rem var(--gut) 0;
  }

  .view--home {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .title {
    max-width: 18ch;
  }

  /* The mark needs a column to sit beside. Once the layout stacks there is
     nothing for it to intersect, so it is dropped rather than recentred. */
  .orbit {
    display: none;
  }

  /* Full-bleed window on small screens; the scrim has no room to show. */
  .overlay {
    padding: 3rem 0 0;
  }

  .window {
    border-radius: 10px 10px 0 0;
  }

  .window__body {
    padding: 2rem 1.35rem 3rem;
  }

  .members {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .item:hover {
    padding-left: 0;
  }
}
