/* Cross-section visual polish: navigation anchors, density and readability. */

.hero .hero-data {
  width: min(100%, 560px);
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-tactical-visual {
  display: none;
}

.operation-cover-image {
  position: relative;
  overflow: hidden;
}

.operation-cover-image img {
  object-position: 50% 51%;
  filter: saturate(0.98) contrast(1.01) brightness(1.16);
  transform: none;
  transition: none;
}

.operation-cover-image::after {
  background: transparent;
}

.operation-cover:hover .operation-cover-image img {
  filter: saturate(1.02) contrast(1.01) brightness(1.18);
  transform: none;
}

.operation-cover {
  cursor: default;
}

@media (max-width: 720px) {
  html body .operation-cover-image {
    position: relative;
    height: 0;
    min-height: 0;
    padding-top: 56.25%;
    aspect-ratio: auto;
  }

  html body .operation-cover-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
  }
}

/* The poster is designed on a 16:9 canvas. A taller mobile crop keeps its
   embedded typography readable without changing desktop. */
@media (max-width: 720px) {
  html body .operation-record .operation-cover-image {
    height: 0;
    padding-top: 70%;
    aspect-ratio: auto;
  }

  html body .operation-record .operation-cover-image img {
    object-position: 50% 50%;
  }
}

.operation-cover-archive {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(17, 25, 35, 0.12);
  color: #27333c;
  background: rgba(248, 249, 247, 0.9);
  backdrop-filter: blur(14px) saturate(1.12);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  pointer-events: none;
}

.operation-cover-archive small {
  color: #6a7580;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
}

.join-row strong small {
  display: block;
  margin-top: 4px;
  color: #1c252c;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  background: transparent;
  white-space: nowrap;
}

.operation-records {
  display: grid;
  gap: 72px;
}

.operation-picker {
  display: grid;
  min-height: 88px;
  grid-template-columns: minmax(180px, 1fr) minmax(360px, 520px);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 36px;
  padding: 16px 18px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: #f1f4f4;
}

.operation-picker[hidden] {
  display: none;
}

.operation-picker > label {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  color: var(--ink);
  white-space: nowrap;
}

.operation-picker > label small,.operation-picker > label strong {
  display: block;
}

.operation-picker > label small {
  color: #7a858d;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.3;
}

.operation-picker > label strong {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.operation-select-control {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 0;
}

.operation-select-control select {
  width: 100%;
  min-height: 54px;
  padding: 0 50px 0 17px;
  border: 1px solid rgba(17, 25, 35, 0.22);
  border-radius: 2px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(25, 39, 50, 0.05);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  appearance: none;
  cursor: pointer;
}

.operation-select-control select:focus-visible {
  border-color: #315fae;
  outline: 2px solid rgba(49, 95, 174, 0.18);
  outline-offset: 1px;
}

.operation-select-arrow {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 8px;
  height: 8px;
  border-right: 1px solid #59656e;
  border-bottom: 1px solid #59656e;
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.operation-picker-count {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  margin-top: 4px;
  color: #76818a;
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}

.operation-picker + .operation-records .operation-record {
  border-top: 0;
}

.operation-records .operation-record {
  margin-top: 0;
}

.operation-loading {
  margin: 0;
  padding: 42px 0;
  border-top: 1px solid rgba(17, 25, 35, 0.16);
  border-bottom: 1px solid rgba(17, 25, 35, 0.1);
  color: #6d7881;
  font-size: 12px;
  text-align: center;
}

.operation-loading.is-error {
  color: #865454;
}

@media (min-width: 721px) {
  .section-description,.about-intro > .about-details,.about .principle p,.roster .section-description,.operations .section-description,.operation-summary,.directory .section-description,.recruit-v2-intro p {
    color: #4d5963;
  }

  .directory-overview span,.directory-status {
    color: #68747d;
  }

  .directory-member-role {
    color: #59656e;
  }
}

@media (max-width: 720px) {
  /* Keep the mobile header inside the hero until the page starts moving. */
  html body .navbar {
    border-bottom-color: rgba(255, 255, 255, 0.16);
    background: rgba(7, 14, 23, 0.28);
    box-shadow: none;
    backdrop-filter: blur(12px) saturate(0.86);
  }

  html body .navbar.is-scrolled {
    border-bottom-color: rgba(17, 25, 35, 0.1);
    background: rgba(248, 249, 248, 0.96);
    box-shadow: 0 8px 24px rgba(17, 25, 35, 0.08);
    backdrop-filter: blur(18px) saturate(1.04);
  }

  html body .nav-menu.open {
    background: #f8f9f8;
    backdrop-filter: none;
  }

  html body .navbar:not(.is-scrolled) .brand-symbol img {
    filter: none;
  }

  html body .navbar:not(.is-scrolled) .menu-button {
    border-color: rgba(255, 255, 255, 0.34);
    color: #ffffff;
    background: rgba(7, 14, 23, 0.2);
  }

  html body .navbar:not(.is-scrolled) .menu-button span {
    background: #ffffff;
  }

  html body .hero-backdrop::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(7, 14, 23, 0.08),
      rgba(7, 14, 23, 0.04) 42%,
      rgba(7, 14, 23, 0.42)
    );
    content: "";
    pointer-events: none;
  }

  html body .hero .hero-actions {
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(7, 14, 23, 0.34);
  }

  html body .hero .hero-actions .primary-button,html body .hero .hero-actions .secondary-link {
    min-height: 48px;
    border-radius: 0;
  }

  html body .hero .hero-actions .primary-button {
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.78);
    background: transparent;
  }

  html body .hero .hero-actions .secondary-link {
    padding-right: 16px;
    padding-left: 16px;
    color: rgba(255, 255, 255, 0.78);
  }

  html body .hero .hero-data {
    border-top-color: rgba(255, 255, 255, 0.22);
    border-bottom-color: rgba(255, 255, 255, 0.22);
    background: rgba(7, 14, 23, 0.3);
  }

  html body .hero .hero-data-item {
    border-right-color: rgba(255, 255, 255, 0.16);
  }

  html body .operation-records {
    gap: 44px;
  }

  html body .operation-picker {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding: 13px 0 15px;
    background: transparent;
  }

  html body .operation-picker > label {
    align-self: center;
  }

  html body .operation-picker > label small {
    display: none;
  }

  html body .operation-picker > label strong {
    margin-top: 0;
    color: #58646d;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
  }

  html body .operation-picker-count {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    margin-top: 0;
    font-size: 9px;
  }

  html body .operation-select-control {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  html body .operation-select-control select {
    min-height: 46px;
    padding-right: 42px;
    padding-left: 12px;
    font-size: 11px;
  }

  html body .about .principle {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    column-gap: 14px;
    height: 104px;
    min-height: 104px;
    padding: 20px 0 20px 12px;
    border-top-color: rgba(17, 25, 35, 0.12);
    border-left: 0;
  }

  html body .about .principle:first-of-type {
    border-top-color: rgba(17, 25, 35, 0.16);
  }

  html body .about .principle .principle-code {
    display: block;
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 5px;
    color: #315fae;
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.04em;
  }

  html body .about .principle h3 {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
  }

  html body .about .principle .principle-keywords {
    display: none;
  }

  html body .about .principle p {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0;
    font-size: 12px;
    line-height: 1.72;
  }

  /* Give the recruitment section a quieter, dossier-like mobile rhythm. */
  html body .recruitment.recruit-v2 {
    position: relative;
    overflow: hidden;
    padding-top: 72px;
    padding-bottom: 42px;
    background: #edf1f3;
    scroll-margin-top: var(--nav-height);
  }

  html body .recruit-v2-media {
    height: 360px;
    opacity: 0.74;
  }

  html body .recruit-v2-media img {
    object-position: 62% 34%;
    filter: grayscale(0.72) saturate(0.34) contrast(0.94) brightness(1.14);
    opacity: 0.26;
  }

  html body .recruit-v2-media::after {
    background:
      linear-gradient(90deg, rgba(237, 241, 243, 0.9), rgba(237, 241, 243, 0.58)),
      linear-gradient(to bottom, rgba(237, 241, 243, 0.2), rgba(237, 241, 243, 0.54) 58%, #edf1f3 100%);
  }

  html body .recruit-v2-heading,html body .recruit-v2-action {
    position: relative;
    z-index: 1;
  }

  html body .recruit-v2-intro h2 {
    max-width: 320px;
    font-size: 36px;
    line-height: 1.15;
  }

  html body .recruit-v2-intro p {
    max-width: 320px;
    margin-top: 21px;
    padding-top: 16px;
    font-size: 12px;
    line-height: 1.78;
  }

  html body .recruit-v2-action {
    gap: 14px;
    margin-top: 24px;
    padding-top: 18px;
  }

  html body .recruit-v2-process {
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.62);
  }

  html body .recruit-v2 .light-button {
    min-height: 54px;
    border-radius: 2px;
    box-shadow: 0 12px 26px rgba(25, 39, 50, 0.13);
  }

  .join-information {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .join-row-status {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0 !important;
    padding-left: 0 !important;
  }

  .join-row strong small {
    color: #1c252c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.03em;
    white-space: nowrap;
  }

  .join-modal .join-row strong {
    min-width: 0;
  }

  html body .join-modal .join-row {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    text-align: left;
  }

  html body .join-modal .join-row > span,html body .join-modal .join-row > strong,html body .join-modal .join-row > strong small {
    font-size: 13px;
    line-height: 1.3;
  }

  html body .join-modal .join-row > span {
    font-weight: 650;
  }

  html body .join-modal .join-row > strong,html body .join-modal .join-row > strong small {
    font-weight: 700;
  }

  html body .join-modal .join-row {
    padding-right: 10px;
    padding-left: 10px;
  }

  html body .join-modal {
    background: rgba(224, 230, 233, 0.78);
    backdrop-filter: blur(18px) saturate(1.06);
  }

  html body .join-modal .join-panel {
    display: flex;
    justify-content: center;
    padding: 56px 20px max(28px, env(safe-area-inset-bottom));
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 210px),
      repeating-linear-gradient(
        90deg,
        transparent,
        transparent 79px,
        rgba(17, 25, 35, 0.02) 80px
      ),
      #f7f8f6;
  }

  html body .join-modal .join-panel .modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-color: rgba(32, 42, 50, 0.24);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 6px 16px rgba(25, 39, 50, 0.08);
  }

  html body .join-modal .join-heading > span {
    color: #6d7e8e;
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  html body .join-modal .join-heading h2 {
    margin-top: 10px;
    font-size: 32px;
    line-height: 1.16;
  }

  html body .join-modal .join-heading p {
    max-width: 330px;
    margin-top: 16px;
  }

  html body .join-modal .join-checklist {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.42);
  }

  html body .join-modal .join-information {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 10px 22px rgba(25, 39, 50, 0.05);
  }

  html body .join-modal .join-note {
    max-width: 330px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(17, 25, 35, 0.09);
  }

  @media (max-height: 700px) {
    html body .join-modal .join-panel {
      justify-content: flex-start;
      padding-top: max(78px, calc(env(safe-area-inset-top) + 62px));
    }
  }

  .hero .hero-data {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero .hero-data-item,.hero .hero-data-item:not(:first-child) {
    min-width: 0;
    padding-right: 5px;
    padding-left: 5px;
  }

  .hero .hero-data-item span {
    font-size: 8px;
    letter-spacing: 0;
  }

  .hero .hero-data-item strong {
    font-size: 19px;
    letter-spacing: 0;
  }

  main section[id] {
    scroll-margin-top: 0 !important;
  }

  html body .roster {
    padding-top: 44px;
    padding-bottom: 54px;
  }

  html body .roster .section-heading {
    margin-bottom: 22px;
  }

  html body .roster .section-heading-row {
    gap: 14px;
  }

  html body .roster .section-heading h2 {
    font-size: 34px;
    line-height: 1.1;
  }

  html body .roster .section-description {
    padding-top: 12px;
    font-size: 12px;
    line-height: 1.65;
  }

  html body .directory {
    padding-top: 44px;
    padding-bottom: 48px;
  }

  html body .directory .section-heading {
    margin-bottom: 22px;
  }

  html body .directory .section-heading-row {
    gap: 14px;
  }

  html body .directory .section-heading h2 {
    font-size: 34px;
    line-height: 1.1;
  }

  html body .directory .section-description {
    padding-top: 12px;
    font-size: 12px;
    line-height: 1.65;
  }

  html body .directory-overview > div {
    min-height: 66px;
    padding: 10px 8px;
  }

  html body .directory-overview strong {
    margin-top: 5px;
    font-size: 24px;
  }

  html body .directory-panel {
    margin-top: 18px;
  }

  html body .directory-filters button {
    min-height: 44px;
  }

  html body .directory-status {
    min-height: 36px;
  }

  html body .directory-member,html body .directory-member:nth-child(3n),html body .directory-member:nth-child(4n) {
    min-height: 56px;
  }

  .operation-cover-archive {
    min-height: 36px;
    padding: 0 12px;
    font-size: 9px;
  }

  .operation-cover-archive small {
    font-size: 7px;
  }
}

/* Mobile scroll reveals: quiet depth instead of a flat fade or a hard jump. */
@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  html body main section[id] > .container > .reveal,html body main section[id] > .container > .section-heading.reveal,html body .about-intro.reveal,html body .about .principle.reveal,html body .about .about-quote-mobile.reveal,html body .roster-board.reveal,html body .operation-record.reveal,html body .directory-platform-row.reveal,html body .directory-overview.reveal,html body .directory-panel.reveal,html body .recruit-v2-action.reveal {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition:
      opacity 0.72s ease,
      transform 0.86s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }

  html body main section[id] > .container > .reveal.is-visible,html body main section[id] > .container > .section-heading.reveal.is-visible,html body .about-intro.reveal.is-visible,html body .about .principle.reveal.is-visible,html body .about .about-quote-mobile.reveal.is-visible,html body .roster-board.reveal.is-visible,html body .operation-record.reveal.is-visible,html body .directory-platform-row.reveal.is-visible,html body .directory-overview.reveal.is-visible,html body .directory-panel.reveal.is-visible,html body .recruit-v2-action.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
  }

  html body .about .principle.reveal:nth-child(1) {
    transition-delay: 0.04s;
  }

  html body .about .principle.reveal:nth-child(2) {
    transition-delay: 0.1s;
  }

  html body .about .principle.reveal:nth-child(3) {
    transition-delay: 0.16s;
  }

  html body .about .about-quote-mobile.reveal {
    transition-delay: 0.2s;
  }

  html body .recruit-v2-action.reveal {
    transition-delay: 0.08s;
  }
}

@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  /* A restrained, cinematic motion language for small screens. */
  @keyframes mobileHeroDrift {
    0% {
      transform: scale(1.035) translate3d(0.25%, 0, 0);
    }

    100% {
      transform: scale(1.065) translate3d(-0.8%, -0.35%, 0);
    }
  }

  @keyframes mobileHeroItemIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

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

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes mobileTabConfirm {
    0%,100% {
      box-shadow: inset 0 0 0 rgba(255, 255, 255, 0);
    }

    50% {
      box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.08);
    }
  }

  body.mobile-motion-ready .hero-copy > * {
    animation: mobileHeroItemIn 0.3s cubic-bezier(0.16, 0.72, 0.2, 1) both;
  }

  body.mobile-motion-ready .hero-copy > .hero-kicker {
    animation-delay: 0.01s;
  }

  body.mobile-motion-ready .hero-copy > .hero-title {
    animation-delay: 0.04s;
  }

  body.mobile-motion-ready .hero-copy > .hero-slogan {
    animation-delay: 0.07s;
  }

  body.mobile-motion-ready .hero-copy > .hero-description {
    animation-delay: 0.1s;
  }

  body.mobile-motion-ready .hero-copy > .hero-actions,body.mobile-motion-ready .hero-copy > .hero-data {
    animation: none;
    opacity: 1;
    transform: none;
  }

  body.mobile-motion-ready .hero-copy > .hero-actions {
    transition: opacity 0.18s ease;
  }

  .hero-backdrop picture {
    display: block;
    width: 100%;
    height: 100%;
    transform: translate3d(0, var(--hero-parallax, 0px), 0);
    transition: transform 0.55s cubic-bezier(0.2, 0.65, 0.2, 1);
    will-change: transform;
  }

  .hero-backdrop img {
    animation: mobileHeroDrift 26s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
    will-change: transform;
  }

  main section[id] > .container > .reveal,main section[id] > .container > .section-heading.reveal {
    transform: translateY(22px);
    transition:
      opacity 0.72s ease,
      transform 0.78s cubic-bezier(0.16, 0.72, 0.2, 1);
  }

  main section[id] > .container > .reveal.is-visible,main section[id] > .container > .section-heading.reveal.is-visible {
    transform: translateY(0);
  }

  .about .principle.reveal:nth-child(1) {
    transition-delay: 0.04s;
  }

  .about .principle.reveal:nth-child(2) {
    transition-delay: 0.1s;
  }

  .about .principle.reveal:nth-child(3) {
    transition-delay: 0.16s;
  }

  .about .about-quote-mobile.reveal {
    transition-delay: 0.24s;
  }

  .about .principle.reveal:nth-child(1) {
    transition-delay: 0.04s;
  }

  .about .principle.reveal:nth-child(2) {
    transition-delay: 0.1s;
  }

  .about .principle.reveal:nth-child(3) {
    transition-delay: 0.16s;
  }

  .operation-record .operation-cover-image img,.operation-record .operation-scoreboard img {
    transition: none;
  }

  .operation-record.is-visible .operation-cover-image img,.operation-record.is-visible .operation-scoreboard img {
    transform: none;
    filter: saturate(0.92) contrast(1.03);
  }

  .roster .member-register {
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity 0.28s ease,
      transform 0.44s cubic-bezier(0.16, 0.72, 0.2, 1);
  }

  .roster .member-register.switching {
    opacity: 0.22;
    transform: translateY(6px);
  }

  .roster .member-row:nth-child(2) { animation-delay: 0.04s; }
  .roster .member-row:nth-child(3) { animation-delay: 0.08s; }
  .roster .member-row:nth-child(4) { animation-delay: 0.12s; }
  .roster .member-row:nth-child(5) { animation-delay: 0.16s; }
  .roster .member-row:nth-child(6) { animation-delay: 0.2s; }

  .directory-grid {
    transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.16, 0.72, 0.2, 1);
  }

  .directory-grid.is-filtered {
    animation: mobileListItemIn 0.48s cubic-bezier(0.16, 0.72, 0.2, 1) both;
  }

  .roster .squad-tab {
    transition:
      color 0.24s ease,
      background-color 0.24s ease,
      transform 0.24s ease;
  }

  .roster .squad-tab:active,.directory-platform-switch button:active,.directory-filters button:active {
    transform: scale(0.97);
  }

  .roster .squad-tab.active,.directory-platform-switch button.active {
    animation: mobileTabConfirm 0.55s ease-out;
  }

  .directory-member,.member-row,.archive-pair .archive {
    animation: mobileListItemIn 0.48s cubic-bezier(0.2, 0.72, 0.2, 1) both;
  }

  .directory-member:nth-child(2),.member-row:nth-child(2),.archive-pair .archive:nth-child(2) {
    animation-delay: 0.04s;
  }

  .directory-member:nth-child(3),.member-row:nth-child(3) {
    animation-delay: 0.08s;
  }

  .directory-member:nth-child(4),.member-row:nth-child(4) {
    animation-delay: 0.12s;
  }

  .directory-member:nth-child(5),.member-row:nth-child(5) {
    animation-delay: 0.16s;
  }

  .directory-member:nth-child(6),.member-row:nth-child(6) {
    animation-delay: 0.2s;
  }

  .directory-member:nth-child(7),.member-row:nth-child(7) {
    animation-delay: 0.24s;
  }
}

/* Keep mobile copy on the browser's native text rasterization path.  Image
   motion can stay composited, but translating text-bearing elements makes
   glyphs look soft on iOS and some Android browsers. */
@media (max-width: 720px) {
  html body {
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
    text-rendering: auto;
  }

  html body .hero-title {
    filter: none;
  }

  @keyframes mobileCopyFadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  html body.mobile-motion-ready .hero-copy > *,html body .directory-member,html body .member-row,html body .archive-pair .archive,html body .directory-grid.is-filtered,html body .join-modal.open .join-panel {
    animation-name: mobileCopyFadeIn;
  }

  html body main section[id] > .container > .reveal,html body main section[id] > .container > .section-heading.reveal,html body .reveal,html body .reveal.is-visible,html body .roster .member-register,html body .directory-grid {
    transform: none;
  }

  html body .reveal,html body .reveal.is-visible {
    transition: opacity 0.72s ease;
  }

  html body main section[id] > .container > .reveal,html body main section[id] > .container > .section-heading.reveal {
    transition: opacity 0.72s ease;
  }

  html body .roster .member-register {
    transition: opacity 0.28s ease;
  }

  html body .roster .member-register.switching {
    transform: none;
  }

  html body .directory-grid {
    transition: opacity 0.3s ease;
  }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .hero-backdrop picture,.hero-backdrop img,.hero-copy > *,main section[id] > .container > .reveal,main section[id] > .container > .section-heading.reveal,.directory-member,.member-row,.archive-pair .archive {
    animation: none !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }

  .join-modal .join-panel {
    animation: none !important;
  }

  .hero-copy > *,main section[id] > .container > .reveal,main section[id] > .container > .section-heading.reveal {
    opacity: 1 !important;
  }
}

@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  @keyframes mobileJoinPanelIn {
    from {
      opacity: 0;
      transform: translateY(14px) scale(0.992);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  html body .join-modal.open .join-panel {
    animation: mobileCopyFadeIn 0.46s ease both;
  }
}

@media (min-width: 721px) {
  html body .join-information .join-row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: center;
    justify-content: initial;
    gap: 24px;
  }

  html body .join-information .join-row > strong {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 720px) {
  html body .join-modal .join-panel {
    justify-content: flex-start;
    padding-top: max(84px, calc(env(safe-area-inset-top) + 70px));
  }

  html body .join-modal .join-heading p {
    max-width: 332px;
    line-height: 1.78;
  }

  html body .join-modal .join-checklist {
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid rgba(17, 25, 35, 0.12);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 10px 24px rgba(25, 39, 50, 0.035);
  }

  html body .join-modal .join-checklist > li {
    justify-content: flex-start;
    min-height: 52px;
    padding-inline: 16px;
    gap: 0;
  }

  html body .join-modal .join-checklist > li::before {
    width: 3px;
    height: 3px;
    margin-right: 9px;
    border-radius: 50%;
    background: #7b858c;
    content: "";
  }

  html body .join-modal .join-information {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(17, 25, 35, 0.14);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(25, 39, 50, 0.035);
  }

  html body .join-modal .join-row {
    min-height: 82px;
    padding: 14px 15px;
    gap: 6px;
  }

  html body .join-modal .join-row + .join-row {
    border-left: 1px solid rgba(17, 25, 35, 0.1);
  }

  html body .join-modal .join-row > span {
    color: #6c777f;
    font-size: 10px;
    line-height: 1.3;
  }

  html body .join-modal .join-row > strong,html body .join-modal .join-row > strong small {
    font-size: 12px;
    line-height: 1.35;
  }

  html body .join-modal .join-row > strong small {
    margin-top: 3px;
    color: #26323a;
  }

  html body .join-modal .join-row.join-row-status {
    grid-column: 1 / -1;
    min-height: 52px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(17, 25, 35, 0.1);
    border-left: 0 !important;
  }

  html body .join-modal .join-row.join-row-status .open-status {
    gap: 7px;
    color: #40564b;
  }

  html body .join-modal .join-row.join-row-status .open-status::before {
    width: 5px;
    height: 5px;
    background: #6a8375;
  }

  html body .join-modal .join-note {
    max-width: 332px;
    margin-top: 16px;
    line-height: 1.7;
  }
}

@media (max-width: 720px) and (max-height: 650px) {
  html body .join-modal .join-panel {
    padding-top: max(72px, calc(env(safe-area-inset-top) + 62px));
  }
}

/* Final mobile recruitment sheet: less table-like, more intentional and balanced. */
@media (max-width: 720px) {
  html body .join-modal {
    place-items: end center;
    padding: var(--nav-height) 0 0;
    background: rgba(24, 33, 40, 0.28);
    backdrop-filter: blur(16px) saturate(0.92);
  }

  html body .join-modal .join-panel {
    position: relative;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - var(--nav-height) - 12px);
    justify-content: flex-start;
    padding: 29px 22px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 0;
    border-radius: 22px 22px 0 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(247, 249, 248, 0.98) 170px),
      #f7f9f8;
    box-shadow: 0 -18px 60px rgba(13, 24, 32, 0.2);
  }

  html body .join-modal .join-panel::before {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: rgba(41, 53, 61, 0.18);
    content: "";
    transform: translateX(-50%);
  }

  html body .join-modal .join-panel .modal-close {
    top: 22px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(31, 43, 51, 0.16);
    border-radius: 50%;
    color: #26333b;
    background: rgba(255, 255, 255, 0.64);
    box-shadow: 0 5px 16px rgba(25, 39, 50, 0.08);
  }

  html body .join-modal .join-heading {
    padding-right: 48px;
  }

  html body .join-modal .join-heading > span {
    color: #78838a;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
  }

  html body .join-modal .join-heading h2 {
    margin-top: 9px;
    color: #152129;
    font-size: 30px;
    font-weight: 780;
    line-height: 1.18;
  }

  html body .join-modal .join-heading p {
    max-width: 340px;
    margin-top: 14px;
    color: #5d6971;
    font-size: 12px;
    line-height: 1.72;
  }

  html body .join-modal .join-checklist {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    margin-top: 19px;
    padding: 9px 0;
    border: 0;
    border-top: 1px solid rgba(25, 37, 45, 0.12);
    border-bottom: 1px solid rgba(25, 37, 45, 0.12);
    background: transparent;
    box-shadow: none;
  }

  html body .join-modal .join-checklist > li,html body .join-modal .join-checklist > li:nth-child(-n + 2),html body .join-modal .join-checklist > li:nth-child(2n) {
    min-height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  html body .join-modal .join-checklist > li::before {
    width: 4px;
    height: 4px;
    margin-right: 8px;
    background: #72827b;
  }

  html body .join-modal .join-checklist strong {
    color: #35434b;
    font-size: 12px;
    font-weight: 650;
  }

  html body .join-modal .join-information {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
    margin-top: 20px;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  html body .join-modal .join-row,html body .join-modal .join-row + .join-row {
    min-height: 76px;
    align-items: flex-start;
    padding: 0 0 13px;
    border: 0;
    border-bottom: 0;
  }

  html body .join-modal .join-row > span {
    color: #7a858b;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.3;
  }

  html body .join-modal .join-row > strong,html body .join-modal .join-row > strong small {
    color: #1d2b33;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
  }

  html body .join-modal .join-row > strong small {
    display: block;
    margin-top: 3px;
    color: #53636b;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0;
  }

  html body .join-modal .join-row.join-row-status {
    position: relative;
    grid-column: 1;
    min-height: 58px;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 3px;
    padding: 12px 0 0;
    border-bottom: 0;
  }

  html body .join-modal .join-row.join-row-status::before,html body .join-modal .join-row.join-row-status::after {
    position: absolute;
    left: 0;
    width: calc(200% + 20px);
    height: 1px;
    background: rgba(25, 37, 45, 0.1);
    content: "";
  }

  html body .join-modal .join-row.join-row-status::before {
    top: 0;
  }

  html body .join-modal .join-row.join-row-status::after {
    bottom: 0;
  }

  html body .join-modal .join-row.join-row-status .open-status {
    gap: 7px;
    color: #466052;
    font-size: 13px;
    line-height: 1.35;
  }

  html body .join-modal .join-row.join-row-status .open-status::before {
    width: 5px;
    height: 5px;
    background: #718d7b;
    box-shadow: 0 0 0 4px rgba(113, 141, 123, 0.12);
  }

  html body .join-modal .join-note {
    max-width: 340px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 0;
    color: #78838a;
    font-size: 10px;
    line-height: 1.68;
  }
}

/* The About section is a continuous reading block on mobile. */
@media (max-width: 720px) {
  html body .about .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  html body .about .about-quote-mobile {
    padding-top: 20px;
  }

  html body .about .about-quote-mobile::before {
    display: none;
    content: none;
  }
}

@media (max-width: 360px) {
  html body .about .principle {
    grid-template-columns: 84px minmax(0, 1fr);
    column-gap: 12px;
    height: 128px;
    min-height: 128px;
  }
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

.footer-admin-link:hover,.footer-admin-link:focus-visible {
  color: var(--ink);
}

.footer-facts > span + span::before {
  display: none;
}

@media (max-width: 720px) {
  .footer-facts {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    white-space: nowrap;
    font-size: 9px;
  }

  .footer-facts > span,.footer-facts > .footer-admin-link {
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
  }

  .footer-facts > .footer-admin-link {
    font-size: inherit;
    line-height: inherit;
    font-weight: 400;
  }

  .footer-facts > span + span::before {
    display: none;
  }
}

@media (max-width: 340px) {
  .footer-facts {
    font-size: 8px;
  }
}
