/*
 * Human UI v9
 * A restrained final layer: fewer pills, fewer decorative circles, clearer
 * hierarchy and motion that explains state instead of advertising itself.
 */

:root {
  --human-radius-control: 11px;
  --human-radius-card: 18px;
  --human-radius-feature: 26px;
  --human-line-light: rgba(17, 57, 115, 0.14);
  --human-line-dark: rgba(197, 226, 247, 0.17);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Controls: shape follows purpose. Pills remain only for compact metadata. */

.button {
  min-height: 52px;
  padding: 14px 22px;
  border-radius: var(--human-radius-control);
  box-shadow: none;
  transition:
    color 180ms var(--ease),
    background-color 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.button:hover,
.button:active {
  transform: none;
}

.button--primary {
  background: #123a7a;
  box-shadow: 0 10px 24px rgba(8, 39, 96, 0.16);
}

.button--primary:hover {
  background: #0b2d67;
  box-shadow: 0 12px 28px rgba(8, 39, 96, 0.2);
}

.button--secondary {
  border-color: rgba(14, 54, 113, 0.3);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.button--secondary:hover {
  border-color: #123a7a;
  background: #ffffff;
}

.button--light {
  box-shadow: none;
}

.button__icon {
  transition: transform 180ms var(--ease);
}

.button:hover .button__icon {
  transform: translateX(3px);
}

.button__icon--leading,
.button:hover .button__icon--leading {
  transform: none;
}

.menu-button,
.icon-button,
.route-card__arrow,
.vacancy-card__object-action,
.city-panel__icon,
.support-tab__arrow,
.resume-add-button,
.hero-scene__motion-toggle {
  border-radius: var(--human-radius-control) !important;
}

.filter-row {
  border-radius: 14px !important;
}

.step-card__icon,
.vacancy-card__icon,
.process-rail li > img,
.resume-add-button > span,
.story-dialog__steps li::before {
  border-radius: 10px !important;
}

.hero-scene__trust span {
  border-radius: 8px !important;
}

.menu-button,
.icon-button {
  box-shadow: none !important;
}

.route-card__arrow,
.vacancy-card__object-action {
  border-color: rgba(255, 255, 255, 0.5) !important;
  background: rgba(3, 17, 49, 0.5) !important;
  box-shadow: none !important;
}

.route-card:hover .route-card__arrow,
.vacancy-card__object-action:hover {
  background: rgba(3, 17, 49, 0.78) !important;
  transform: none !important;
}

.filter-chip,
.vacancy-card__badge,
.students-panel__tag,
.story-message__tags i,
.story-dialog__tags span,
.sector-tag,
.support-detail__eyebrow {
  border-radius: 6px !important;
}

/* Transport: the supplied image is the visual, the UI stays quiet around it. */

.transport-section {
  padding: clamp(66px, 8vw, 112px) 0;
}

.transport-showcase {
  min-height: 0;
  grid-template-columns: minmax(270px, 0.56fr) minmax(0, 1.44fr);
  gap: clamp(26px, 3.2vw, 48px);
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid rgba(166, 207, 241, 0.14);
  border-radius: var(--human-radius-feature);
  background: #061430;
  box-shadow: 0 28px 72px rgba(2, 15, 43, 0.18);
}

.transport-showcase::before,
.transport-showcase::after {
  display: none;
}

.transport-showcase__copy {
  padding: clamp(8px, 1vw, 16px) 0;
}

.transport-showcase__copy h2 {
  font-size: clamp(48px, 4vw, 60px);
}

.transport-showcase__facts {
  display: grid;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
}

.transport-showcase__facts div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--human-line-dark);
}

.transport-showcase__facts dt,
.transport-showcase__facts dd {
  margin: 0;
}

.transport-showcase__facts dt {
  color: #ffffff;
  font-weight: 750;
}

.transport-showcase__facts dd {
  color: rgba(221, 236, 251, 0.64);
  font-size: 13px;
  line-height: 1.5;
}

.transport-showcase__note {
  margin-top: 22px;
  color: rgba(221, 236, 251, 0.48);
}

.transport-showcase__visual {
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.transport-showcase__visual picture {
  aspect-ratio: 3 / 2;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(177, 213, 240, 0.16);
  border-radius: var(--human-radius-card);
  background: #020817;
}

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

.transport-showcase__visual figcaption {
  position: static;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(222, 237, 250, 0.54);
  box-shadow: none;
  font-size: 10px;
}

.transport-showcase__visual figcaption strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 700;
}

/* Stories: stable slots, deliberate filter tabs and quiet motion control. */

.story-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.story-filters {
  min-width: 0;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.story-filter {
  min-height: 42px;
  padding: 8px 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  box-shadow: none;
}

.story-filter.is-active,
.story-filter[aria-pressed="true"] {
  border-color: #72dce7;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
}

.story-filter:hover {
  color: #ffffff;
  transform: none;
}

.story-rotation-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 8px 0 12px 18px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 720;
}

.story-rotation-toggle:hover {
  color: #ffffff;
}

.story-rotation-toggle:disabled {
  cursor: default;
  opacity: 0.55;
}

.story-rotation-toggle__mark {
  width: 8px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.story-rotation-toggle[aria-pressed="true"] .story-rotation-toggle__mark {
  width: 0;
  height: 0;
  border: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.story-feed {
  align-items: stretch;
}

.story-slot {
  min-width: 0;
  min-height: 344px;
  display: grid;
}

.story-slot:nth-child(2) {
  margin-top: 38px;
}

.story-slot:nth-child(3) {
  margin-top: 14px;
}

.story-slot > .story-message {
  grid-area: 1 / 1;
  height: 100%;
}

.story-message {
  transition: none;
}

.story-message__bubble {
  height: 100%;
  min-height: 304px;
  border-radius: 18px 18px 18px 5px;
  box-shadow: 0 18px 46px rgba(0, 7, 28, 0.21);
}

.story-message__bubble::after {
  width: 20px;
  height: 2px;
  border-radius: 0;
  box-shadow: none;
}

.story-message__tags i {
  padding: 5px 8px;
}

.story-message--entering,
.story-message--leaving {
  pointer-events: none;
  will-change: opacity, transform;
}

.story-message--entering {
  z-index: 2;
  opacity: 0;
  transform: translateY(14px) scale(0.986);
}

.story-message--entering.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.story-message--entering .story-message__avatar,
.story-message--entering .story-message__bubble {
  opacity: 0;
  transform: translateY(8px);
}

.story-message--entering.is-active .story-message__avatar,
.story-message--entering.is-active .story-message__bubble {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.story-message--entering.is-active .story-message__bubble {
  transition-delay: 70ms;
}

.story-message--leaving {
  z-index: 1;
  opacity: 0;
  transform: translateY(-8px) scale(0.988);
  transition:
    opacity 280ms ease,
    transform 320ms ease;
}

/* Footer: one plane, three concise groups, no decorative hero treatment. */

.site-footer {
  min-height: 0;
  margin: 0;
  padding: 36px 0 20px;
  overflow: hidden;
  border-radius: 0;
  background: #030b1e;
  box-shadow: none;
  color: rgba(222, 237, 255, 0.62);
}

.site-footer::before {
  z-index: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(121, 216, 228, 0.5), transparent);
  opacity: 0.7;
}

.site-footer::after,
.site-footer__brand::after {
  display: none;
}

.site-footer__top {
  grid-template-columns: minmax(280px, 1.2fr) minmax(220px, 0.9fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-bottom: 28px;
}

.site-footer__brand {
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-footer__brand > img {
  width: min(252px, 100%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-footer__brand p {
  max-width: 330px;
  margin: 14px 0 0;
  color: rgba(235, 244, 255, 0.7);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
}

.site-footer__contact {
  display: grid;
  gap: 7px;
  padding: 0;
  font-style: normal;
}

.site-footer__contact a,
.site-footer__contact span,
.site-footer__social a {
  width: auto;
  margin: 0;
  color: rgba(222, 237, 255, 0.66);
  font-size: 13px;
  line-height: 1.45;
}

.site-footer__contact a:first-child {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 650;
}

.site-footer__contact span {
  margin-top: 4px;
  color: rgba(222, 237, 255, 0.4);
  font-size: 11px;
}

.site-footer__social {
  display: grid;
  justify-items: start;
  gap: 9px;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid rgba(222, 237, 255, 0.18);
  border-radius: 0;
  background: transparent;
  font-weight: 650;
}

.site-footer__social a:hover {
  border-color: rgba(118, 221, 233, 0.7);
  background: transparent;
  transform: none;
}

.site-footer__bottom {
  padding-top: 17px;
  border-top-color: rgba(198, 226, 247, 0.1);
}

.site-footer__bottom,
.site-footer__bottom a {
  color: rgba(222, 237, 255, 0.38);
  font-size: 10px;
}

@media (max-width: 1180px) {
  .story-slot:nth-child(2),
  .story-slot:nth-child(3) {
    margin-top: 0;
  }

  .story-slot:nth-child(3) {
    grid-column: 1 / -1;
    width: calc(50% - 16px);
    justify-self: center;
  }
}

@media (max-width: 960px) {
  .transport-showcase {
    grid-template-columns: 1fr;
  }

  .transport-showcase__copy {
    padding: 0;
  }

  .story-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .story-rotation-toggle {
    align-self: flex-end;
    border-left: 0;
  }

  .story-slot,
  .story-slot:nth-child(3) {
    width: 100%;
    min-height: 300px;
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .button {
    min-height: 50px;
    padding: 13px 18px;
  }

  .transport-section {
    padding: 58px 0;
  }

  .transport-section .container {
    width: min(100%, calc(100% - 24px));
  }

  .transport-showcase {
    gap: 22px;
    padding: 20px 12px 14px;
    border-radius: 20px;
  }

  .transport-showcase__copy {
    padding: 0 8px;
  }

  .transport-showcase__copy h2 {
    font-size: clamp(42px, 15vw, 58px);
  }

  .transport-showcase__facts div {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
  }

  .transport-showcase__visual picture {
    border-radius: 12px;
  }

  .transport-showcase__visual figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding: 0 4px 2px;
  }

  .story-filters {
    gap: 20px;
  }

  .story-filter {
    min-height: 40px;
    font-size: 12px;
  }

  .story-message__bubble {
    min-height: 0;
    border-radius: 16px 16px 16px 4px;
  }

  .site-footer {
    padding: 28px 0 18px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 24px;
  }

  .site-footer__brand {
    margin: 0;
    padding: 0;
  }

  .site-footer__brand > img {
    width: min(224px, 76vw);
    padding: 0;
  }

  .site-footer__brand p {
    max-width: 280px;
    margin-top: 12px;
    font-size: 12px;
  }

  .site-footer__contact,
  .site-footer__social {
    padding: 0;
    border: 0;
  }

  .site-footer__bottom {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-message--entering,
  .story-message--entering.is-active,
  .story-message--leaving,
  .story-message--entering .story-message__avatar,
  .story-message--entering .story-message__bubble,
  .story-message--entering.is-active .story-message__avatar,
  .story-message--entering.is-active .story-message__bubble {
    transition: none !important;
  }
}
