/* ─── Spacers ─────────────────────────────────────────────── */

.spacer-2xs { height: var(--spacer-2xs); }
.spacer-xs  { height: var(--spacer-xs);  }
.spacer-s   { height: var(--spacer-s);   }
.spacer-l   { height: var(--spacer-l);   }

/* ─── Images ──────────────────────────────────────────────── */

.img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3  { aspect-ratio:  4 / 3; }
.ratio-3-2  { aspect-ratio:  3 / 2; }
.ratio-1-1  { aspect-ratio:  1 / 1; }

/* ─── Site Header / Nav ───────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 101;
  background-color: var(--color-off-white);
  padding-block: var(--spacer-xs);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-body-m);
  line-height: var(--lh-body-m);
  color: var(--color-grey-950);
}

.site-nav__brand {
  font-weight: var(--fw-label);
}

.site-nav__links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.site-nav__links a {
  transition: color var(--transition);
}

.site-nav__links a:hover {
  color: var(--color-custom-accent);
}

@media (max-width: 680px) {
  .site-nav {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }

  .site-nav__links {
    display: none;
  }
}

/* ─── Section: Intro ──────────────────────────────────────── */

.section-intro {
  padding-block: var(--spacer-l);
}

/* ─── Section: Work Table ─────────────────────────────────── */

.section-table {
  padding-block: var(--spacer-m);
}

.work-table {
  grid-column: 1 / -1;
}

@media (min-width: 1280px) {
  .work-table {
    grid-column: 2 / 12;
  }
}

.work-table__row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--grid-gutter);
  align-items: start;
  padding-block: 20px;
  padding-left: 16px;
  font-size: var(--fs-body-m);
  line-height: var(--lh-body-m);
  color: var(--color-grey-950);
  transition: background-color var(--transition);
}

@media (min-width: 681px) {
  .work-table__row.has-preview:hover {
    background-color: var(--color-surface-accent);
  }

  .work-table__row.is-expanded:hover {
    background-color: transparent;
  }
}

@media (min-width: 1280px) {
  .work-table__row {
    grid-template-columns: repeat(10, 1fr);
  }
}

.work-table__row-data {
  grid-column: 2 / -1;
  display: flex;
  gap: var(--grid-gutter);
  align-items: start;
}

.work-table__row-data > * {
  flex: 1 0 0;
  min-width: 0;
}

.work-table__row--header {
  padding-block: 12px 16px;
  font-family: var(--font-tertiary);
  font-weight: var(--fw-body);
  font-size: var(--fs-micro);
  line-height: 16px;
  color: var(--color-grey-600);
  border-top: 1px solid #c7c7c7;
  border-bottom: 1px solid #c7c7c7;
}

.work-table__headline {
  display: flex;
  flex-direction: column;
  padding-block: var(--spacer-2xs);
}

.work-table__eyebrow {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--fs-hl-s);
  line-height: 1.3;
  letter-spacing: var(--ls-hl-s);
  color: var(--color-custom-ink);
}

.work-table__title {
  font-family: var(--font-secondary);
  font-weight: var(--fw-body);
  font-size: var(--fs-hl-s);
  line-height: 1.3;
  letter-spacing: var(--ls-hl-s);
  text-transform: uppercase;
  color: var(--color-grey-600);
}

.work-table__cell--year {
  font-family: var(--font-secondary);
  font-weight: var(--fw-body);
  font-size: var(--fs-body-m);
  line-height: var(--lh-body-m);
  color: var(--color-grey-600);
  transition: color var(--transition);
}

.work-table__row.has-preview .work-table__cell--year {
  color: var(--color-custom-accent);
}

.work-table__cell--client {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--fs-body-s);
  line-height: var(--lh-body-s);
  color: var(--color-grey-600);
  transition: color var(--transition);
}

.work-table__cell--client-partner {
  font-family: var(--font-secondary);
  font-weight: var(--fw-body);
  font-size: var(--fs-body-m);
  line-height: var(--lh-body-m);
  color: var(--color-grey-600);
  transition: color var(--transition);
}

.work-table__row.has-preview .work-table__cell--client-partner {
  color: var(--color-custom-accent);
}

.work-table__cell--sector {
  font-family: var(--font-secondary);
  font-weight: var(--fw-body);
  font-size: var(--fs-body-m);
  line-height: var(--lh-body-m);
  color: var(--color-grey-600);
  transition: color var(--transition);
}

.work-table__cell--project {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--fs-body-s);
  line-height: var(--lh-body-s);
  color: var(--color-grey-600);
  transition: color var(--transition);
}

.work-table__cell--role {
  font-family: var(--font-secondary);
  font-weight: var(--fw-body);
  font-size: var(--fs-body-m);
  line-height: var(--lh-body-m);
  color: var(--color-grey-600);
  transition: color var(--transition);
}

.work-table__row.has-preview .work-table__cell--role {
  color: var(--color-custom-accent);
}

.work-table__preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 284px;
  height: 284px;
  background-color: var(--color-surface-accent);
  border-radius: var(--radius-card);
  pointer-events: none;
  opacity: 0;
  z-index: 100;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-table__preview.is-active {
  opacity: 1;
  will-change: transform, opacity;
}

.work-table__preview-img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.work-table__preview.has-image .work-table__preview-img {
  display: block;
}

.work-table__preview-counter {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 35px;
  transform: translate(-100%, -100%);
  display: none;
  align-items: center;
  justify-content: center;
  outline: var(--stroke-sm) solid var(--color-custom-accent);
  outline-offset: -1px;
  z-index: 1;
}

.work-table__preview.has-image .work-table__preview-counter {
  display: flex;
}

.work-table__preview-counter-current {
  font-family: var(--font-tertiary);
  font-weight: var(--fw-body);
  font-size: var(--fs-micro);
  line-height: 16px;
  color: var(--color-custom-accent);
}

.work-table__preview-counter-total {
  font-family: var(--font-tertiary);
  font-weight: var(--fw-body);
  font-size: var(--fs-micro);
  line-height: 16px;
  color: var(--color-grey-400);
}

@media (min-width: 681px) {
  .work-table__row.has-preview:hover .work-table__cell--client,
  .work-table__row.has-preview:hover .work-table__cell--sector,
  .work-table__row.has-preview:hover .work-table__cell--project {
    color: var(--color-custom-accent);
  }

  .work-table__row.has-preview {
    cursor: pointer;
  }
}

.work-table__row.is-expanded {
  padding-top: var(--spacer-s);
  padding-bottom: var(--spacer-2xs);
  border-top: var(--stroke-sm) solid var(--color-custom-accent);
}

.work-table__row.is-expanded .work-table__cell--client,
.work-table__row.is-expanded .work-table__cell--sector,
.work-table__row.is-expanded .work-table__cell--project {
  color: var(--color-grey-950);
}

.work-table__expand {
  display: grid;
  grid-column: 1 / -1;
  grid-template-rows: 0fr;
}

.work-table__row.is-expanded .work-table__expand {
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--transition);
}

.work-table__expand-inner {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.work-table__expand-track {
  display: flex;
  align-items: flex-start;
  gap: var(--grid-gutter);
  padding-left: 16px;
  padding-block: var(--spacer-xs);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.work-table__expand-track::-webkit-scrollbar {
  display: none;
}

.work-table__expand-track img {
  flex: none;
  width: 284px;
  background-color: var(--color-surface-accent);
  scroll-snap-align: start;
}

@media (min-width: 681px) and (max-width: 1279px) {
  .work-table__expand-track img {
    width: calc((100% - 2 * var(--grid-gutter)) / 3 + 1px);
  }
}

@media (min-width: 1280px) {
  .work-table__expand-track img {
    width: calc((100% - 3 * var(--grid-gutter)) / 4 + 1px);
  }
}

.work-table__expand-controls {
  display: flex;
  justify-content: flex-end;
  gap: var(--grid-gutter);
  padding-inline: var(--grid-margin);
  padding-top: var(--spacer-2xs);
  padding-bottom: var(--spacer-s);
  border-bottom: var(--stroke-sm) solid var(--color-custom-accent);
}

.work-table__expand-btn {
  border: var(--stroke-sm) solid var(--color-custom-accent);
  background: none;
  padding: 8px 16px;
  font-family: var(--font-tertiary);
  font-size: var(--fs-micro);
  line-height: 16px;
  color: var(--color-custom-accent);
  cursor: pointer;
  transition: opacity var(--transition);
}

.work-table__expand-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.work-table__preview-mobile {
  display: none;
}

@media (max-width: 680px) {
  .work-table__row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "year    year"
      "client  sector"
      "project role"
      "preview preview";
    gap: var(--spacer-2xs) 8px;
    padding-left: 0;
    border-top: 1px solid transparent;
    transition: background-color var(--transition), padding-block var(--transition), border-color var(--transition);
  }

  .work-table__row--header {
    display: none;
  }

  .work-table__row-data {
    display: contents;
  }

  .work-table__cell--year        { grid-area: year; }
  .work-table__cell--client      { grid-area: client; }
  .work-table__cell--project     { grid-area: project; }
  .work-table__cell--role        { grid-area: role; }
  .work-table__cell--sector      { grid-area: sector; }

  .work-table__row.is-open {
    padding-block: var(--spacer-xs);
    border-top-color: var(--color-trail-bg);
  }

  .work-table__row.is-open .work-table__cell--client,
  .work-table__row.is-open .work-table__cell--sector,
  .work-table__row.is-open .work-table__cell--project {
    color: var(--color-custom-ink);
  }

  .work-table__preview-mobile {
    grid-area: preview;
    display: grid;
    grid-template-rows: 0fr;
  }

  .work-table__row.is-open .work-table__preview-mobile {
    grid-template-rows: 1fr;
    transition: grid-template-rows var(--transition);
  }

  .work-table__preview-mobile-inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacer-2xs);
    overflow: hidden;
    min-height: 0;
    position: relative;
  }

  .work-table__row.is-open .work-table__preview-mobile-inner {
    padding-top: var(--spacer-s);
    padding-bottom: var(--spacer-m);
    border-bottom: 1px solid var(--color-trail-bg);
  }

  .work-table__preview-mobile-track {
    display: flex;
    will-change: transform;
  }

  .work-table__preview-mobile-slide {
    flex-shrink: 0;
  }

  .work-table__preview-mobile-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-card);
    background-color: var(--color-surface-accent);
  }

  .work-table__preview-mobile-counter {
    display: flex;
    align-self: flex-start;
    font-family: var(--font-tertiary);
    font-size: var(--fs-micro);
    line-height: var(--lh-body-s);
    padding: var(--spacer-2xs) var(--spacer-xs);
    border: 1px solid var(--color-custom-accent);
  }

  .work-table__preview-mobile-counter-current {
    color: var(--color-custom-accent);
  }

  .work-table__preview-mobile-counter-total {
    color: var(--color-grey-600);
  }

  .work-table__expand {
    display: none !important;
  }
}

/* ─── Cookie Banner ───────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100;
  background: var(--color-surface-accent);
  border-top: 1px solid var(--color-grey-200);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner__row {
  display: flex;
  align-items: flex-end;
  gap: var(--grid-gutter);
  padding-block: var(--spacer-xs);
}

.cookie-banner__text {
  display: flex;
  flex: 1 0 0;
  min-width: 0;
  flex-direction: column;
  gap: var(--spacer-2xs);
}

.cookie-banner__title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--fs-body-m);
  line-height: var(--lh-body-m);
  color: var(--color-custom-ink);
}

.cookie-banner__desc {
  font-family: var(--font-tertiary);
  font-size: var(--fs-micro);
  line-height: 16px;
  color: var(--color-grey-600);
}

.cookie-banner__desc a {
  color: inherit;
  text-decoration: underline;
}

.cookie-banner__btn {
  flex-shrink: 0;
  font-family: var(--font-tertiary);
  font-size: var(--fs-micro);
  line-height: 16px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-custom-accent);
  background: transparent;
  color: var(--color-custom-accent);
  cursor: pointer;
  transition: var(--transition);
}

.cookie-banner__btn:hover {
  background: var(--color-custom-accent);
  color: var(--color-white);
}

@media (max-width: 680px) {
  .cookie-banner__row {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__btn {
    width: 100%;
    text-align: center;
  }
}

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

.site-footer {
  border-top: 1px solid var(--color-grey-200);
}

.site-footer__info-row {
  display: flex;
  align-items: center;
  gap: var(--grid-gutter);
}

.site-footer__copyright,
.site-footer__credit {
  flex: 1 0 0;
  min-width: 0;
  font-family: var(--font-tertiary);
  font-size: var(--fs-micro);
  line-height: var(--lh-body-s);
  color: var(--color-grey-600);
  white-space: nowrap;
}

.site-footer__credit {
  text-align: right;
}

.site-footer__row {
  display: flex;
  flex: 1 0 0;
  align-items: center;
  justify-content: center;
  gap: var(--grid-gutter);
  width: fit-content;
  margin-inline: auto;
  font-family: var(--font-tertiary);
  font-size: var(--fs-micro);
  line-height: var(--lh-body-s);
  color: var(--color-grey-600);
}

@media (max-width: 680px) {
  .site-footer__info-row {
    flex-direction: column;
    gap: var(--spacer-2xs);
  }

  .site-footer__copyright,
  .site-footer__credit {
    flex: none;
    white-space: normal;
    text-align: center;
  }

  .site-footer__row {
    flex: none;
  }
}

.site-footer__row a {
  transition: color var(--transition);
}

.site-footer__row a:hover {
  color: var(--color-custom-accent);
  text-decoration: underline;
}

.footer-brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--grid-gutter);
}

.footer-brand-row__filler {
  flex: 0 0 130px;
  height: 24px;
}

.footer-brand-row__content {
  display: flex;
  flex: 1 0 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-brand-row__name {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--fs-body-m);
  line-height: var(--lh-body-m);
  color: var(--color-custom-ink);
  text-align: center;
}

.footer-brand-row__role {
  font-family: var(--font-secondary);
  font-size: var(--fs-hl-s);
  line-height: var(--lh-hl-s);
  text-transform: uppercase;
  color: var(--color-custom-ink);
  text-align: center;
}

.footer-brand-row__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-tertiary);
  font-size: var(--fs-micro);
  line-height: var(--lh-body-s);
  color: var(--color-custom-accent);
  text-align: center;
  transition: color var(--transition);
}

.footer-brand-row__link-icon {
  display: block;
}

.footer-brand-row__link:hover .footer-brand-row__link-label {
  color: var(--color-custom-accent);
  text-decoration: underline;
}

/* ─── Onepager: Header / Brand ────────────────────────────── */

.custom-header {
  position: relative;
  padding-top: 0;
  padding-bottom: var(--spacer-2xs);
}

.custom-header .container {
  padding-block: var(--spacer-xs);
}

.custom-header__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--grid-gutter);
}

.custom-header__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 0;
  min-width: 0;
  gap: 4px;
  text-align: center;
}

.custom-header__version {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 16px;
  font-family: var(--font-tertiary);
  font-size: var(--fs-micro);
  line-height: var(--lh-body-s);
  color: var(--color-custom-ink);
}

.custom-header__version-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.custom-header__version-text,
.custom-header__version-sep,
.custom-header__version-upload {
  white-space: nowrap;
}

.custom-header__location {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 16px;
}

.custom-header__location-text {
  font-family: var(--font-tertiary);
  font-size: var(--fs-micro);
  line-height: var(--lh-micro);
  color: var(--color-custom-ink);
  text-align: right;
  white-space: nowrap;
}

.custom-header__clock-analog {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-custom-ink);
  border-radius: 50%;
}

.custom-header__clock-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  background: var(--color-custom-ink);
}

.custom-header__clock-hand--hour {
  width: 1px;
  height: 8px;
  margin-left: -0.5px;
}

.custom-header__clock-hand--minute {
  width: 1px;
  height: 12px;
  margin-left: -0.5px;
}

@media (max-width: 680px) {
  .custom-header__row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacer-2xs);
  }

  .custom-header__brand {
    order: 1;
  }

  .custom-header__version {
    order: 2;
    justify-self: unset;
    justify-content: center;
    width: 284px;
    max-width: 100%;
  }

  .custom-header__location {
    order: 3;
    justify-self: unset;
    justify-content: center;
    width: 284px;
    max-width: 100%;
  }
}

.custom-header__name {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--fs-hl-s);
  line-height: var(--lh-hl-s);
  color: var(--color-custom-ink);
}

.custom-header__role {
  font-family: var(--font-secondary);
  font-size: var(--fs-hl-s);
  line-height: var(--lh-hl-s);
  text-transform: uppercase;
  color: var(--color-custom-ink);
}

.custom-header__tag {
  font-family: var(--font-tertiary);
  font-size: var(--fs-micro);
  line-height: var(--lh-body-s);
  color: var(--color-custom-accent);
}

/* ─── Onepager: Intro Rows ────────────────────────────────── */

.custom-intro {
  position: relative;
  padding-top: 0;
  padding-bottom: var(--spacer-xs);
}

.custom-intro__avatar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  z-index: 2;
}

.custom-intro .container {
  display: flex;
  flex-direction: column;
  gap: var(--spacer-s);
  padding-top: calc(96px + var(--spacer-2xs));
  padding-bottom: var(--spacer-xs);
}

.custom-row {
  display: grid;
  gap: var(--grid-gutter);
  grid-template-columns: repeat(12, 1fr);
  align-items: stretch;
}

.custom-row__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.custom-row__headline {
  flex-shrink: 0;
  font-family: var(--font-secondary);
  font-weight: var(--fw-headline);
  font-size: var(--fs-hl-l);
  line-height: 0.90;
  letter-spacing: var(--ls-hl-l);
  text-align: right;
  text-transform: uppercase;
  color: var(--color-custom-accent);
}

.custom-row__subline {
  display: flex;
  flex-direction: column;
  flex: 1 0 0;
  gap: var(--spacer-2xs);
  justify-content: center;
  width: 100%;
}

@media (min-width: 768px) {
  .custom-row--1 .custom-row__subline { padding-left: var(--custom-row-1-subline-offset); }
  .custom-row--2 .custom-row__subline { padding-left: var(--custom-row-2-subline-offset); }
  .custom-row--3 .custom-row__subline { padding-left: var(--custom-row-3-subline-offset); }
}

.custom-row__text {
  font-family: var(--font-tertiary);
  font-size: var(--step-minus-2);
  line-height: var(--lh-body-s);
  letter-spacing: var(--ls-body-s);
  text-indent: var(--indent-custom-text);
  color: var(--color-custom-ink);
}

/* ─── Onepager: Column-Span Filler (Spaltenraster-Spacer) ───── */

.custom-row__col-1 { grid-column: span 1; }
.custom-row__col-2 { grid-column: span 2; }
.custom-row__col-3 { grid-column: span 3; }
.custom-row__col-4 { grid-column: span 4; }
.custom-row__col-5 { grid-column: span 5; }
.custom-row__col-6 { grid-column: span 6; }
.custom-row__col-7 { grid-column: span 7; }

@media (min-width: 768px) and (max-width: 1279px) {
  .custom-row              { grid-template-columns: repeat(8, 1fr); }
  .custom-row__filler      { display: none; }
  .custom-row--1 .custom-row__content { grid-column: 1 / 5; }
  .custom-row--2 .custom-row__content { grid-column: 5 / 9; }
  .custom-row--3 .custom-row__content { grid-column: 3 / 7; }
  .custom-intro .container { gap: var(--spacer-m); }
}

@media (max-width: 767px) {
  .custom-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-block: var(--spacer-m);
    padding-inline: var(--spacer-m);
  }

  .custom-row__filler {
    display: none;
  }

  .custom-row__content {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: var(--spacer-2xs);
  }

  .custom-row__headline {
    font-size: var(--step-6);
    text-align: left;
  }

  .custom-row__subline {
    flex: none;
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: 0;
    text-align: left;
  }

  .custom-row__text {
    text-indent: 40px;
  }
}

/* ─── Legal: Intro Headline ───────────────────────────────── */

.legal-intro {
  padding-block: var(--spacer-s);
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--color-custom-accent);
  border-radius: var(--radius-pill);
  font-family: var(--font-tertiary);
  font-size: var(--fs-micro);
  line-height: 16px;
  color: var(--color-custom-accent);
  transition: var(--transition);
}

.legal-back-link:hover {
  background: var(--color-custom-accent);
  color: var(--color-white);
}

.legal-intro__headline {
  display: flex;
  flex-direction: column;
  gap: var(--spacer-2xs);
}

.legal-intro__title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--fs-hl-s);
  line-height: var(--lh-hl-s);
  letter-spacing: var(--ls-hl-s);
}

.legal-intro__subtitle {
  font-family: var(--font-secondary);
  font-weight: var(--fw-body);
  font-size: var(--fs-hl-s);
  line-height: var(--lh-hl-s);
  letter-spacing: var(--ls-hl-s);
  text-transform: uppercase;
  color: var(--color-grey-500);
}

/* ─── Legal: Text Column ──────────────────────────────────── */

.legal-content {
  grid-column: 1 / -1;
}

@media (min-width: 1280px) {
  .legal-content {
    grid-column: 4 / 9;
  }
}

.legal-text {
  font-family: var(--font-tertiary);
  font-weight: var(--fw-body);
  font-size: var(--fs-micro);
  line-height: var(--lh-body-s);
  letter-spacing: var(--ls-body-s);
}

.legal-text p + p {
  margin-top: var(--spacer-2xs);
}

.legal-text__heading {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--fs-body-s);
  line-height: var(--lh-body-s);
}

.legal-text__heading + p {
  margin-top: 0;
}

/* ─── Debug: Grid Overlay ─────────────────────────────────── */

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  padding-inline: var(--grid-margin);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gutter);
}

@media (min-width: 768px)  { .grid-overlay { grid-template-columns: repeat(8,  1fr); } }
@media (min-width: 1280px) { .grid-overlay { grid-template-columns: repeat(12, 1fr); } }

.grid-overlay .col {
  background: rgba(30, 80, 255, 0.035);
  border-left:  1px solid rgba(30, 80, 255, 0.10);
  border-right: 1px solid rgba(30, 80, 255, 0.10);
  height: 100%;
}

.grid-overlay.hidden { display: none; }

/* ─── Debug: Hint Bar ─────────────────────────────────────── */

.hint {
  position: fixed;
  bottom: 20px;
  left: 24px;
  font-size: 11px;
  font-weight: 500;
  font-family: monospace;
  color: var(--color-grey-400);
  background: var(--color-grey-50);
  border: 1px solid var(--color-grey-200);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  z-index: 9998;
  pointer-events: none;
  display: flex;
  gap: 12px;
}

.hint.hidden { display: none; }

.hint-vp { color: var(--color-grey-700); }

.debug-bar__toggle.is-active .debug-bar__toggle-dot {
  background: var(--color-debug);
}

/* ─── Trail FX: Grid Hover Invert ─────────────────────────── */

.trail-fx__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.trail-fx__inversion {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.trail-fx__inversion--header { mask: url(#trail-mask-header); -webkit-mask: url(#trail-mask-header); }
.trail-fx__inversion--intro  { mask: url(#trail-mask-intro);  -webkit-mask: url(#trail-mask-intro); }

.trail-fx__inversion-fill {
  position: absolute;
  inset: 0;
  background: var(--color-trail-bg);
}

.trail-fx__inversion .container {
  position: relative;
  z-index: 1;
}

.trail-fx__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.trail-fx__canvas-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trail-fx__inversion .custom-header__name,
.trail-fx__inversion .custom-header__role,
.trail-fx__inversion .custom-header__tag,
.trail-fx__inversion .custom-header__version,
.trail-fx__inversion .custom-header__location-text,
.trail-fx__inversion .custom-row__headline,
.trail-fx__inversion .custom-row__text {
  color: var(--color-off-white);
}

.trail-fx__inversion .custom-header__clock-analog {
  border-color: var(--color-off-white);
}

.trail-fx__inversion .custom-header__clock-hand {
  background: var(--color-off-white);
}
