/* ==========================================================================
   Landing page

   The page-specific parts of the approved home page (docs/design/5-meshki/
   home.html), section by section: the hero and its product window, the
   figures under it, the role switcher, the six bento pictures, the
   calculator teaser, the event banner and the charter cards. Loaded by the
   home page and the role pages only.

   Shared pieces are not repeated: .card, .chip, .tile, .btn, .bento, .stats,
   .eyebrow, .incercard, .progress and .grouped-list come from components.css.

   Held to the rules of the system sheets: colours, type sizes, radii,
   shadows and every length are tokens (tokens.css, section 5 names the
   geometry of the drawings). Directions are logical: a gradient or a
   position names the inline start or end through the direction tokens,
   never left or right.

   1. Hero             4. Bento pictures    7. Charter
   2. Product window   5. Calculator        8. Responsive
   3. Roles            6. Event

   The section rhythm (.section, .section__head, .section-link), the
   figures' label (.stats-note) and the role switcher's tabs and segments are
   shared components (components.css), documented on /styleguide/.

   Two kinds of value look like what the rules forbid and are not: the
   rotations of the drawings (rotate(-4deg), rotate(-7deg)) are angles, not
   directions, and the same in either reading direction; the stroke widths
   of the inline SVG drawing (stroke-width: 1, 1.5 and 2) are units of its
   viewBox, not lengths on the page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: var(--sp-16);
  overflow: clip;
  isolation: isolate;
}
.hero::before {
  /* soft white light behind the product, from the inline-end corner */
  content: "";
  position: absolute;
  z-index: var(--z-under);
  inset-block-start: calc(-1 * var(--art-hero-light-up));
  inset-inline-end: calc(-1 * var(--art-hero-light-out));
  inline-size: var(--art-hero-light-w);
  block-size: var(--art-hero-light-h);
  background: radial-gradient(closest-side, var(--accent-haze), transparent 72%);
  pointer-events: none;
}
.hero::after {
  /* faint dot texture, fading out */
  content: "";
  position: absolute;
  z-index: var(--z-under);
  inset: 0;
  background-image: var(--dots);
  background-size: var(--dot-grid) var(--dot-grid);
  -webkit-mask-image: var(--dots-fade);
  mask-image: var(--dots-fade);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: var(--sp-16);
}
.hero__title {
  margin-block-start: var(--sp-5);
  font-size: var(--fs-hero);
  line-height: var(--lh-display);
}
.hero__lead {
  margin-block-start: var(--sp-4);
  max-inline-size: var(--measure);
  color: var(--text-2);
  font-size: var(--fs-xl);
  line-height: var(--lh-body);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-block-start: var(--sp-8);
}

/* The figures under the hero (the shared .stats, three columns) */
.hero__stats {
  margin-block-start: var(--sp-12);
}

/* --------------------------------------------------------------------------
   2. Product window: the hero art, a sample Daftarche in dark glass
   -------------------------------------------------------------------------- */
.hero__art {
  position: relative;
  padding-block-end: var(--art-card-overhang);
}
.window {
  border: var(--line) solid var(--hairline-strong);
  border-radius: var(--r-xl);
  background: var(--bg-raised);
  box-shadow: var(--shadow-pop), var(--highlight), var(--glow-accent-wide);
  overflow: hidden;
}
.window__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-block-size: var(--art-window-bar-h);
  padding-inline: var(--sp-4);
  border-block-end: var(--line) solid var(--hairline);
  background: var(--surface-1);
}
.window__dots {
  position: absolute;
  inset-inline-start: var(--sp-4);
  display: flex;
  gap: var(--sp-1h);
}
.window__dots i {
  inline-size: var(--art-window-dot);
  block-size: var(--art-window-dot);
  border-radius: var(--r-round);
  background: var(--surface-3);
}
.window__title {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1h);
  padding-inline: var(--sp-3);
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  line-height: var(--lh-ui);
}
.window__title .icon {
  inline-size: var(--icon-3xs);
  block-size: var(--icon-3xs);
}
.window__body {
  display: grid;
  grid-template-columns: var(--art-rail-w) minmax(0, 1fr);
}
.mini-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1h);
  padding-block: var(--sp-3);
  border-inline-end: var(--line) solid var(--hairline);
}
.mini-rail span {
  display: grid;
  place-items: center;
  inline-size: var(--art-rail-item);
  block-size: var(--art-rail-item);
  border-radius: var(--r-sm);
  color: var(--text-faint);
}
.mini-rail span.is-active {
  background: var(--accent-soft);
  box-shadow: var(--ring-accent);
  color: var(--accent);
}
.mini-rail .icon {
  inline-size: var(--icon-md);
  block-size: var(--icon-md);
}
.mini-main {
  display: grid;
  align-content: start;
  gap: var(--sp-3);
  padding: var(--sp-4);
}
.mini-card {
  padding: var(--sp-3h) var(--sp-4);
  border: var(--line) solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface-1);
  box-shadow: var(--highlight);
}
.mini-profile {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.mini-profile__id {
  flex: 1;
  min-inline-size: 0;
}
.mini-name {
  display: flex;
  align-items: center;
  gap: var(--sp-1h);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  line-height: var(--lh-ui);
}
/* The drawing's verified mark and record lines wear the verified green, as the product's do */
.mini-name .icon {
  inline-size: var(--icon-xs);
  block-size: var(--icon-xs);
  color: var(--verified);
}
.mini-sub {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  line-height: var(--lh-ui);
}
.mini-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--sp-1h);
}
.mini-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: var(--sp-3);
}
.mini-col {
  display: grid;
  gap: var(--sp-3);
  min-inline-size: 0;
}
.mini-h {
  margin-block-end: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  line-height: var(--lh-ui);
}
.mini-records {
  display: grid;
  gap: var(--sp-2h);
}
.mini-records li {
  display: grid;
  gap: var(--sp-half);
  padding-inline-start: var(--sp-2h);
  border-inline-start: var(--line-focus) solid var(--accent-line);
  line-height: var(--lh-ui);
}
.mini-records b {
  font-size: var(--fs-xs);
}
.mini-records span {
  color: var(--text-muted);
  font-size: var(--fs-2xs);
}
.mini-records em {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--verified);
  font-size: var(--fs-2xs);
  font-style: normal;
  font-weight: var(--fw-medium);
}
.mini-records em .icon {
  inline-size: var(--icon-3xs);
  block-size: var(--icon-3xs);
}
/* A small activity grid: one column a week, seven days down; each cell carries a .heat-0 ... .heat-4 */
.mini-heat {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, auto);
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--sp-half);
}
.mini-heat i {
  aspect-ratio: 1;
  border-radius: var(--r-2xs);
}
.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-4);
  margin-block-start: var(--sp-2h);
  color: var(--text-muted);
  font-size: var(--fs-2xs);
  line-height: var(--lh-ui);
}
.mini-stats b {
  color: var(--text);
  font-size: var(--fs-sm);
}
.mini-meters {
  display: grid;
  gap: var(--sp-2);
}
.mini-meters li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--sp-fine) var(--sp-2);
  color: var(--text-2);
  font-size: var(--fs-2xs);
  line-height: var(--lh-ui);
}
.mini-meters b {
  color: var(--text);
  font-size: var(--fs-xs);
}
.mini-meters .progress {
  grid-column: 1 / -1;
  block-size: var(--art-meter-h);
}

/* The IncerCard leaning on the window, a sample member's */
.hero__art .incercard {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: calc(-1 * var(--art-card-lean));
  transform: rotate(-4deg);
}
.incercard__sample {
  align-self: flex-start;
  border-color: var(--on-paper-muted);
  background: transparent;
  color: var(--on-paper-muted);
}

/* --------------------------------------------------------------------------
   3. Roles: pill segments over two glass cards
   -------------------------------------------------------------------------- */
.role-panel {
  display: grid;
  gap: var(--sp-4);
  margin-block-start: var(--sp-5);
}
.role-panel__cols {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-4);
}
.role-panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
}
.role-panel__title h3 {
  font-size: var(--fs-2xl);
}
/* What is ready today, under the column of what the network gives */
.role-col__note {
  margin-block-start: var(--sp-4);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
}
.role-switcher {
  display: grid;
  gap: var(--sp-3);
}
.role-col {
  padding: var(--sp-6) var(--sp-8) var(--sp-8);
}
.role-col--next {
  border-color: var(--accent-line);
  background: radial-gradient(110% 70% at 50% 0%, var(--accent-haze), transparent 70%), var(--panel);
}
.role-col__title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-block-end: var(--sp-4);
  color: var(--text-muted);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
}
.role-col--next .role-col__title {
  color: var(--accent);
}
.role-col__title .logo {
  inline-size: var(--icon-md);
}
.role-list {
  display: grid;
  gap: var(--sp-3);
}
.role-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: start;
  font-size: var(--fs-lg-plus);
  line-height: var(--lh-ui);
}
.role-list .icon {
  margin-block-start: var(--nudge);
  inline-size: var(--icon-lg);
  block-size: var(--icon-lg);
  color: var(--text-faint);
}
.role-col--now .role-list li {
  color: var(--text-2);
}
.role-col--next .role-list li {
  font-weight: var(--fw-medium);
}
.role-col--next .role-list .icon {
  color: var(--accent);
}
/* What the network gives a role, under what each line is today (M2 Task 7, fix round 1, B/I-3): ready, then on its
   way, whose lines and marks are quieter */
.role-col__state {
  margin-block: var(--sp-4) var(--sp-3);
}
.role-col__title + .role-col__state {
  margin-block-start: 0;
}
.role-col--next .role-list--coming li {
  color: var(--text-2);
  font-weight: var(--fw-regular);
}
.role-col--next .role-list--coming .icon {
  color: var(--text-faint);
}
.role-arrow {
  position: absolute;
  z-index: var(--z-lift);
  inset-block-start: 50%;
  inset-inline-start: calc(50% - var(--art-role-arrow) / 2);
  display: grid;
  place-items: center;
  inline-size: var(--art-role-arrow);
  block-size: var(--art-role-arrow);
  border: var(--line) solid var(--hairline-strong);
  border-radius: var(--r-round);
  background: var(--bg-raised-2);
  box-shadow: var(--highlight), var(--shadow-thumb);
  color: var(--accent);
  transform: translateY(-50%);
}
.role-result {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--r-lg);
  font-size: var(--fs-lg-plus);
  font-weight: var(--fw-medium);
  line-height: var(--lh-ui);
}
.role-result strong {
  flex: none;
  padding-inline: var(--sp-3);
  border-radius: var(--r-full);
  background: var(--accent-fill);
  color: var(--on-accent);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
}

/* The index of every role, grouped by cluster */
.role-index {
  display: grid;
  gap: var(--sp-8);
}
.role-index__group h2 {
  margin-block-end: var(--sp-3);
  color: var(--text-muted);
  font-size: var(--fs-md);
}

/* --------------------------------------------------------------------------
   4. Bento pictures
   -------------------------------------------------------------------------- */
/* The whole tile opens its page: the title's link covers it */
.bento__link::after {
  content: "";
  position: absolute;
  z-index: var(--z-lift);
  inset: 0;
  border-radius: var(--r-2xl);
}

/* 1: a verified record above the activity grid */
.v-daftarche {
  display: grid;
  align-content: start;
  gap: var(--sp-4);
}
.v-record {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  justify-self: start;
  padding-block: var(--sp-2h);
  padding-inline: var(--sp-5) var(--sp-4);
  border: var(--line) solid var(--hairline-strong);
  border-radius: var(--r-lg);
  background: var(--bg-raised-2);
  box-shadow: var(--highlight), var(--shadow-thumb);
  line-height: var(--lh-ui);
}
.v-record b {
  display: block;
  font-size: var(--fs-md);
}
.v-record em {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--verified);
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: var(--fw-medium);
}
.v-record em .icon {
  inline-size: var(--icon-2xs);
  block-size: var(--icon-2xs);
}
.v-daftarche .mini-heat {
  position: relative;
  gap: var(--sp-fine);
}

/* 2: the card and its NFC field */
.v-card {
  display: grid;
  place-items: center;
}
.v-rings {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  inline-size: 0;
  block-size: 0;
}
.v-rings i {
  position: absolute;
  inset-block-start: calc(var(--ring) / -2);
  inset-inline-start: calc(var(--ring) / -2);
  inline-size: var(--ring);
  block-size: var(--ring);
  border: var(--line) solid var(--accent-line);
  border-radius: var(--r-round);
}
.v-rings i:nth-child(1) {
  --ring: var(--art-ring-1);
  box-shadow: var(--art-ring-glow);
}
.v-rings i:nth-child(2) {
  --ring: var(--art-ring-2);
  opacity: var(--fade-2);
}
.v-rings i:nth-child(3) {
  --ring: var(--art-ring-3);
  opacity: var(--fade-4);
}
.v-mini-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  inline-size: var(--art-mini-card-w);
  aspect-ratio: var(--incercard-ratio);
  padding: var(--sp-3) var(--sp-3h);
  border-radius: var(--r-md);
  background: var(--paper-fill);
  box-shadow: var(--shadow-paper);
  color: var(--on-paper);
  transform: rotate(-7deg);
}
.v-mini-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.v-mini-card .logo-tile {
  inline-size: var(--icon-xl);
  border-radius: var(--r-xs);
}
.v-mini-card .icon {
  inline-size: var(--icon-md);
  block-size: var(--icon-md);
  color: var(--on-paper-muted);
  transform: scaleX(-1);
}
[dir="ltr"] .v-mini-card .icon {
  transform: none;
}
.v-mini-card b {
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
}
.v-mini-card small {
  display: block;
  color: var(--on-paper-muted);
  font-size: var(--fs-2xs);
  line-height: var(--lh-snug);
}

/* 3: a Dutch auction stepping down */
.v-market {
  display: grid;
  align-content: start;
}
.v-steps {
  position: absolute;
  inset: var(--sp-4) 0 0;
  inline-size: 100%;
  block-size: calc(100% - var(--sp-4));
  color: var(--mode-dutch);
}
.v-steps .grid {
  stroke: var(--hairline);
  stroke-width: 1;
}
.v-steps .line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: var(--art-glow-dutch-line);
}
.v-steps .ghost {
  fill: none;
  stroke: var(--hairline-strong);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
  stroke-linecap: round;
}
.v-steps .now {
  fill: var(--mode-dutch);
  filter: var(--art-glow-dutch-dot);
}
.v-ticker {
  position: relative;
  justify-self: end;
  display: grid;
  gap: var(--sp-half);
  padding-block: var(--sp-2h);
  padding-inline: var(--sp-4) var(--sp-3h);
  border: var(--line) solid var(--hairline-strong);
  border-radius: var(--r-lg);
  background: var(--bg-raised-2);
  box-shadow: var(--highlight), var(--shadow-thumb);
  line-height: var(--lh-control);
}
.v-ticker .mode,
.v-ticker .chip {
  justify-self: start;
}
.v-ticker b {
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
}
.v-ticker small {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
}

/* 4: stacked opportunity cards */
.v-jobs {
  display: grid;
  align-content: start;
  justify-items: center;
  padding-block-start: var(--sp-8);
}
.v-job {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  inline-size: 100%;
  padding: var(--sp-2h) var(--sp-3);
  border: var(--line) solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--bg-raised-2);
  box-shadow: var(--highlight);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  line-height: var(--lh-control);
}
.v-job:nth-child(1) {
  inline-size: 78%;
  opacity: var(--fade-3);
  transform: translateY(var(--art-job-drop-far));
}
.v-job:nth-child(2) {
  z-index: var(--z-lift);
  inline-size: 90%;
  opacity: var(--fade-1);
  transform: translateY(var(--art-job-drop));
}
.v-job:nth-child(3) {
  z-index: var(--z-lift-2);
  margin-block-start: calc(-1 * var(--sp-1h));
  border-color: var(--accent-line);
  box-shadow: var(--highlight), var(--shadow-thumb), var(--art-job-glow);
}
.v-job em {
  margin-inline-start: auto;
  padding-inline: var(--sp-2h);
  border-radius: var(--r-full);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--fs-xs);
  font-style: normal;
  font-weight: var(--fw-medium);
  line-height: var(--lh-ui);
  white-space: nowrap;
}
.v-job u {
  flex: 1;
  max-inline-size: var(--art-job-bar-w);
  block-size: var(--art-job-bar-h);
  margin-inline-start: auto;
  border-radius: var(--r-full);
  background: var(--surface-3);
}

/* 5: a stand map */
.v-event {
  display: grid;
  align-content: start;
  gap: var(--sp-4);
}
.v-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--sp-1h);
  inline-size: 100%;
  max-inline-size: var(--art-map-w);
}
.v-map i {
  aspect-ratio: 1.25;
  border: var(--line) solid var(--hairline);
  border-radius: var(--r-xs);
  background: var(--surface-2);
}
.v-map i.is-aisle {
  border-color: transparent;
  background: transparent;
}
.v-map i.is-busy {
  background: var(--surface-3);
}
.v-map i.is-me {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--art-stand-glow);
}
.v-event__chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* 6: the toolbox */
.v-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--art-plan-w);
  align-items: start;
  gap: var(--sp-6);
}
.v-tools__main {
  position: relative;
  display: grid;
  gap: var(--sp-4);
  justify-items: start;
}
.v-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.v-pills .chip.is-on {
  border-color: var(--accent-fill);
  background: var(--accent-fill);
  color: var(--on-accent);
}
.v-pills .chip.is-on .icon {
  color: inherit;
}
.v-sum {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  padding: var(--sp-2h) var(--sp-4);
  border: var(--line) solid var(--hairline-strong);
  border-radius: var(--r-lg);
  background: var(--bg-raised-2);
  box-shadow: var(--highlight), var(--shadow-thumb);
  color: var(--text-muted);
  font-size: var(--fs-md);
  line-height: var(--lh-control);
}
.v-sum b {
  color: var(--text);
  font-size: var(--fs-2xl);
}
.v-sum .icon {
  align-self: center;
  color: var(--accent);
}

/* A room drawn to scale: a tile grid from the inline-start corner, the cut strip at the inline end */
.v-plan,
.plan__room {
  position: relative;
  aspect-ratio: 3.2 / 2.4;
  border: var(--line) solid var(--hairline-strong);
  border-radius: var(--r-sm);
  background-image:
    linear-gradient(var(--to-inline-end), var(--hairline-strong) var(--line), transparent var(--line)),
    linear-gradient(to bottom, var(--hairline-strong) var(--line), transparent var(--line));
  background-size: 37.5% 25%;
  background-position: var(--at-inline-start) 0;
  overflow: hidden;
}
.v-plan::after,
.plan__cut {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  inline-size: 25%;
  border-inline-start: var(--line) dashed var(--accent);
  background: var(--art-cut-hatch);
}

/* --------------------------------------------------------------------------
   5. Calculator teaser: a worked example, not a form
   -------------------------------------------------------------------------- */
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--sp-16);
  align-items: center;
}
.calc-copy .eyebrow {
  margin-block-end: var(--sp-4);
}
.plan {
  margin-block-start: var(--sp-8);
  max-inline-size: var(--art-plan-max);
}
.plan__top {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-inline-start: var(--art-plan-side);
  margin-block-end: var(--sp-1h);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-control);
}
.plan__top::before,
.plan__top::after {
  content: "";
  flex: 1;
  block-size: var(--line);
  background: var(--hairline-strong);
}
.plan__row {
  display: grid;
  grid-template-columns: var(--art-plan-side) minmax(0, 1fr);
}
.plan__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1h);
  padding-inline-end: var(--sp-2);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  text-align: center;
}
.plan__side::before,
.plan__side::after {
  content: "";
  flex: 1;
  inline-size: var(--line);
  background: var(--hairline-strong);
}
.plan__room {
  border-color: var(--control-line);
  background-color: var(--surface-1);
  box-shadow: var(--art-plan-glow);
}
.plan__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-5);
  margin-block-start: var(--sp-3);
  margin-inline-start: var(--art-plan-side);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-ui);
}
.plan__legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.plan__legend i {
  inline-size: var(--art-legend-w);
  block-size: var(--art-legend-h);
  border: var(--line) solid var(--control-line);
  border-radius: var(--r-2xs);
}
.plan__legend i.is-cut {
  border-style: dashed;
  border-color: var(--accent);
  background: var(--art-cut-hatch-fine);
}

.calc {
  padding: var(--sp-5);
  border-radius: var(--r-2xl);
}
.calc__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-1) var(--sp-1) var(--sp-4);
}
.calc__head h3 {
  flex: 1;
  font-size: var(--fs-xl);
}
.calc__value {
  color: var(--text);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}
.calc__result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin-block-start: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border: var(--line) solid var(--accent-line);
  border-radius: var(--r-lg);
  background: radial-gradient(90% 140% at var(--at-inline-start) 0%, var(--accent-haze), transparent 70%), var(--surface-1);
}
.calc__values {
  display: flex;
  gap: var(--sp-6);
}
.calc__figure {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  color: var(--accent);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
}
.calc__figure b {
  color: var(--text);
  font-size: var(--fs-figure);
  line-height: var(--lh-figure);
}
.calc__figure + .calc__figure {
  padding-inline-start: var(--sp-6);
  border-inline-start: var(--line) solid var(--hairline-strong);
}

/* --------------------------------------------------------------------------
   6. Event: one wide, lit card
   -------------------------------------------------------------------------- */
.event {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--sp-16);
  align-items: center;
  padding: var(--sp-12);
  border: var(--line) solid var(--accent-line);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(60% 120% at var(--at-inline-start) 0%, var(--accent-haze), transparent 62%),
    radial-gradient(50% 90% at var(--at-inline-end) 100%, var(--info-haze), transparent 65%),
    var(--panel);
  box-shadow: var(--highlight), var(--glow-accent-wide);
  overflow: hidden;
}
.event::before {
  /* the logo, watermarked into the card */
  content: "";
  position: absolute;
  inset-block-end: calc(-1 * var(--art-event-mark-drop));
  inset-inline-start: 40%;
  inline-size: var(--art-event-mark-w);
  aspect-ratio: var(--logo-ratio);
  background: url("../img/logo.fa4986cb989f.png") center / contain no-repeat;
  opacity: var(--watermark);
  pointer-events: none;
}
.event > * {
  position: relative;
}
.event__title {
  margin-block-start: var(--sp-4);
  font-size: var(--fs-title);
}
.event__text {
  margin-block-start: var(--sp-3);
  max-inline-size: var(--measure);
  color: var(--text-2);
  font-size: var(--fs-lg-plus);
}
.event .btn {
  margin-block-start: var(--sp-8);
}
.event-pass {
  border: var(--line) solid var(--hairline-strong);
  border-radius: var(--r-xl);
  background: var(--surface-1);
  box-shadow: var(--highlight);
}
.event-pass__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-block-end: var(--line) dashed var(--hairline-strong);
}
.event-pass__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  line-height: var(--lh-control);
}
.event-pass__brand .logo {
  inline-size: var(--icon-xl);
  flex-shrink: 0;
}
/* The organiser's name, the days and the venue are written by people: a long word wraps, the box never widens. */
.event-pass__brand,
.event-facts li > span {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
.event-facts li {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-control);
}
.event-facts li + li {
  border-block-start: var(--line) solid var(--hairline);
}
.event-facts .icon {
  flex-shrink: 0;
  inline-size: var(--icon-xl);
  block-size: var(--icon-xl);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. Charter: three glass cards
   -------------------------------------------------------------------------- */
.charter-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-8);
  margin-block-end: var(--sp-8);
}
.charter-head .eyebrow {
  margin-block-end: var(--sp-4);
}
.pledges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}
.pledge {
  padding: var(--sp-6);
  border: var(--line) solid var(--hairline);
  border-radius: var(--r-xl);
  background: var(--panel);
  box-shadow: var(--highlight);
}
.pledge dt {
  margin-block-start: var(--sp-5);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-control);
}
.pledge dd {
  margin-block-start: var(--sp-1);
  color: var(--text-muted);
  font-size: var(--fs-lg);
  line-height: var(--lh-body);
}

/* --------------------------------------------------------------------------
   8. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-12);
  }
  .hero__art {
    inline-size: 100%;
    max-inline-size: var(--art-hero-art-max);
    margin-inline: auto;
  }
  .hero__art .incercard {
    inset-inline-start: calc(-1 * var(--sp-3));
  }
  .calc-grid,
  .event {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-10);
  }
}

@media (max-width: 720px) {
  .hero {
    padding-block: var(--sp-10) var(--sp-12);
  }
  .hero__lead {
    font-size: var(--fs-lg-plus);
  }
  .hero__cta {
    flex-direction: column;
  }
  .hero__cta .btn {
    inline-size: 100%;
    min-block-size: var(--control-h-xl);
  }
  .hero__grid {
    gap: var(--sp-10);
  }
  .hero__art {
    padding-block-end: var(--art-card-overhang-narrow);
  }
  .hero__stats {
    margin-block-start: var(--sp-10);
  }
  .window__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .mini-rail,
  .mini-rep {
    display: none;
  }
  .mini-main {
    padding: var(--sp-3);
    padding-block-end: var(--art-window-room-narrow);
  }
  .mini-profile {
    flex-wrap: wrap;
  }
  .mini-chips {
    inline-size: 100%;
    justify-content: flex-start;
  }
  .mini-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__art .incercard {
    inset-inline-start: var(--sp-1);
    inline-size: var(--incercard-w-narrow);
  }
  .role-panel,
  .role-panel__cols {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-3);
  }
  .role-col {
    padding: var(--sp-5) var(--sp-5) var(--sp-6);
  }
  .role-arrow {
    display: none;
  }
  .role-list li {
    font-size: var(--fs-lg);
  }
  .role-result {
    align-items: flex-start;
    padding: var(--sp-4) var(--sp-5);
    font-size: var(--fs-lg);
  }
  .v-event {
    justify-items: center;
  }
  .v-event__chips {
    justify-content: center;
  }
  .v-tools {
    grid-template-columns: minmax(0, 1fr);
  }
  .v-tools__main {
    gap: var(--sp-3);
  }
  .v-plan {
    display: none;
  }
  .plan {
    margin-block-start: var(--sp-6);
  }
  .calc {
    padding: var(--sp-4);
  }
  .calc__result {
    padding: var(--sp-4);
  }
  .calc__result .btn {
    inline-size: 100%;
    min-block-size: var(--control-h-xl);
  }
  .event {
    padding: var(--sp-8) var(--sp-5);
    gap: var(--sp-8);
  }
  .event::before {
    display: none;
  }
  .event .btn {
    inline-size: 100%;
    margin-block-start: var(--sp-6);
  }
  .event-facts li {
    font-size: var(--fs-xl);
  }
  .pledges {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-3);
  }
  .pledge {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: var(--sp-4);
    padding: var(--sp-5);
  }
  .pledge .tile {
    grid-row: span 2;
  }
  .pledge dt {
    margin-block-start: 0;
  }
}
