/* Soft shapes and finite, accessible motion across Sua's portfolio. */
.midnight .site-brand {
  order: 1;
}
.midnight .site-nav {
  order: 2;
  margin-left: auto;
}
.midnight .motion-toggle {
  order: 3;
}
.midnight .menu-toggle {
  order: 4;
}
.midnight .motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-shrink: 0;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #765064;
  border-radius: 999px;
  color: #dfb8cf;
  background: #23151f;
  font-size: 9px;
  white-space: nowrap;
  line-height: 1.4;
  cursor: pointer;
}
.midnight .motion-toggle .motion-symbol {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid #d19cb9;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #23151f;
  background: #d19cb9;
}
.midnight .motion-toggle[aria-pressed="false"] .motion-symbol {
  background: none;
}
.midnight .motion-state {
  font-size: 8px;
  color: #a7849a;
}
.midnight .motion-toggle:hover {
  background: #382031;
  border-color: #c886ac;
}
.midnight .motion-toggle:disabled {
  opacity: 0.55;
  cursor: default;
}
.midnight .site-header {
  gap: 24px;
}
.midnight .site-nav {
  gap: 22px;
}
.midnight .site-nav > a,
.midnight .nav-more > summary {
  border-radius: 999px;
}
.midnight .nav-dropdown {
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 22px 70px #0007;
}
.midnight .nav-dropdown a {
  border-radius: 13px;
  padding: 10px 13px;
}
.midnight .nav-dropdown .back-to-orbit {
  color: #e1b7cf;
  font-size: 10px;
  padding-bottom: 13px;
  margin-bottom: 5px;
  border-bottom: 1px solid #5a354a;
}
.midnight .site-nav .nav-oj {
  border-radius: 999px;
}
.midnight .primary-link,
.midnight .board-btn,
.midnight .board-pager a,
.midnight .blog-tab,
.midnight .filter-group button,
.midnight .tag-list > span,
.midnight .blog-cat,
.midnight .board-badge {
  border-radius: 999px;
}
.midnight .primary-link {
  padding-inline: 25px;
}
.midnight .filter-group button {
  padding-inline: 19px;
}
.midnight .project-art {
  border-radius: 30px;
  overflow: hidden;
}
.midnight .selected-work .project-art {
  border-radius: 28px;
}
.midnight .about-portrait {
  border-radius: 24px;
  padding: 16px 16px 12px;
}
.midnight .about-portrait img {
  border-radius: 16px;
}
.midnight .about-portrait::before {
  border-radius: 5px;
}
.midnight .board-card,
.midnight .board-form,
.midnight .board-empty {
  border-radius: 25px;
}
.midnight .board-item.is-pinned a {
  border-radius: 20px;
}
.midnight .board-item a {
  border-radius: 0;
}
.midnight .board-notice {
  border-radius: 18px;
}
.midnight .board-article {
  padding: 34px;
}
.midnight .board-field input,
.midnight .board-field textarea,
.midnight .board-field select,
.midnight .board-comment-form textarea,
.midnight .board-page select {
  border-radius: 16px;
  padding: 14px 17px;
}
.midnight .board-field textarea {
  line-height: 1.9;
}
.midnight .blog-files li > a,
.midnight .blog-files-edit li {
  border-radius: 14px;
}
.midnight .blog-gallery a {
  border-radius: 20px;
  overflow: hidden;
}
.midnight .profile-card-x {
  border-radius: 26px;
}
.midnight .profile-badge,
.midnight .profile-uid code {
  border-radius: 999px;
}
.midnight .profile-uid code {
  padding: 5px 12px;
}
.midnight .profile-admin {
  border-radius: 24px;
}
.midnight .settings-media {
  border-radius: 20px;
  overflow: hidden;
}
.midnight .settings-banner {
  border-radius: 20px;
}
.midnight .board-comment {
  border-radius: 0;
}
.midnight .now-label {
  border-radius: 999px;
  padding-inline: 15px;
}
.midnight .letter-gate {
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 100% 0, #61334955, transparent 70%),
    linear-gradient(145deg, #2f1926, #1c1119);
  box-shadow: 0 24px 80px #0004;
}
.midnight .letter-stamp {
  border-radius: 9px;
  outline-offset: 0;
}
.midnight .code-field {
  border-radius: 999px;
  outline-offset: 5px;
}
.midnight .code-input {
  border-radius: 999px 0 0 999px;
  padding-left: 19px;
}
.midnight .code-submit {
  border-radius: 0 999px 999px 0;
  padding-inline: 23px;
}
.midnight .letter-paper {
  border-radius: 28px;
  box-shadow: 8px 12px 0 #4d293833;
}
.midnight .letter-reset {
  border-radius: 999px;
  background: #d9bcc8;
  padding: 10px 18px;
  border: 1px solid #bc94a6;
}
.midnight .partner-portrait {
  border-radius: 28px 28px 55px 28px;
  box-shadow: 0 12px 40px #0003;
}
.midnight .people-search {
  border: 1px solid #69465b;
  border-radius: 999px;
  padding: 2px 12px;
  background: #190f16;
}
.midnight .people-search input {
  outline-offset: 0;
  border-radius: 999px;
}
.midnight .people-empty {
  border-radius: 22px;
}
.midnight .footer-bottom .back-top {
  border: 1px solid #5e3b50;
  padding: 6px 12px;
  border-radius: 999px;
  margin-top: -6px;
}
.midnight .site-footer {
  border-radius: 42px 42px 0 0;
}
.midnight .diary-strip {
  border-radius: 32px;
  margin-inline: 20px;
  border: 1px solid #613047;
}
.midnight .legal-document .hero-actions a {
  border-radius: 999px;
}
.midnight .ai-side {
  border-radius: 0 28px 28px 0;
}
.midnight .side-new,
.midnight .chat-row,
.midnight .chat-rename {
  border-radius: 14px;
}
.midnight .ai-models,
.midnight .ai-modes {
  border-radius: 999px;
  padding: 4px;
}
.midnight .ai-model,
.midnight .ai-mode {
  border-radius: 999px;
}
.midnight .ai-chip {
  border-radius: 20px;
  transition:
    background 0.25s,
    border-color 0.25s,
    translate 0.3s;
}
.midnight .ai-chip:hover {
  translate: 0 -3px;
}
.midnight .ai-composer {
  border-radius: 28px;
}
.midnight .ai-send {
  border-radius: 50%;
  width: 38px;
  height: 38px;
}
.midnight .ai-gate .gate-card {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 120px #0005;
}
.midnight .gate-btn,
.midnight .style-chip {
  border-radius: 999px;
}
.midnight .gate-editorial {
  border-radius: 30px 0 0 30px;
}
.midnight .msg-bubble {
  border-radius: 20px;
}
.midnight.page-admin .card,
.midnight.page-admin .kpi {
  border-radius: 24px;
}
.midnight.page-admin .btn,
.midnight.page-admin .adm-range,
.midnight.page-admin .adm-range button {
  border-radius: 999px;
}
.midnight.page-admin .ban-form input,
.midnight.page-admin .ban-form select,
.midnight.page-admin .settings input {
  border-radius: 14px;
}
.midnight.page-admin .table-wrap {
  border-radius: 16px;
}
.midnight.page-admin .adm-toast {
  border-radius: 16px;
}
/* Yeoul application surfaces; previews of purchased cosmetics keep their own artwork. */
.midnight.page-oj .hero,
.midnight.page-oj .yeoul-hero {
  border-radius: 28px;
}
.midnight.page-oj .yeoul-hero-art {
  border-radius: 22px;
}
.midnight.page-oj .panel,
.midnight.page-oj .profile-card,
.midnight.page-oj .shop-item,
.midnight.page-oj .badge-tile,
.midnight.page-oj .guide,
.midnight.page-oj .detail-panel,
.midnight.page-oj .submission-card,
.midnight.page-oj .admin-form,
.midnight.page-oj .stat {
  border-radius: 23px;
}
.midnight.page-oj .sidebar nav a {
  border-radius: 14px;
}
.midnight.page-oj .button,
.midnight.page-oj .status,
.midnight.page-oj .tag,
.midnight.page-oj .problem-token {
  border-radius: 999px;
}
.midnight.page-oj .filter-bar {
  border-radius: 22px 22px 0 0;
}
.midnight.page-oj .filter-bar input,
.midnight.page-oj .filter-bar select {
  border-radius: 999px;
}
.midnight.page-oj .table-wrap {
  border-radius: 22px;
  overflow: hidden;
}
.midnight.page-oj .sample {
  border-radius: 16px;
}
.midnight.page-oj .editor {
  border-radius: 23px;
}
.midnight.page-oj .editor-toolbar select,
.midnight.page-oj .editor-font {
  border-radius: 999px;
}
.midnight.page-oj .editor-tool,
.midnight.page-oj .editor-key {
  border-radius: 9px;
}
.midnight.page-oj .notice {
  border-radius: 17px;
}
.midnight.page-oj .form-field input,
.midnight.page-oj .form-field select,
.midnight.page-oj .form-field textarea {
  border-radius: 15px;
}
.midnight.page-oj .auth-dialog {
  border-radius: 30px;
  overflow: hidden;
}
.midnight.page-oj .auth-shell {
  border-radius: 29px;
}
.midnight.page-oj .auth-mode-switch,
.midnight.page-oj .auth-mode-switch button,
.midnight.page-oj .auth-dialog .auth-form input,
.midnight.page-oj .auth-dialog .auth-input-wrap,
.midnight.page-oj .auth-dialog .auth-primary,
.midnight.page-oj .auth-dialog .auth-provider {
  border-radius: 999px;
}
.midnight.page-oj .auth-dialog .auth-step .auth-form .button {
  border-radius: 999px;
}
.midnight.page-oj .auth-dialog .auth-error {
  border-radius: 17px;
}
.midnight.page-oj #toast {
  border-radius: 999px;
}
.midnight.page-oj .brand-story {
  border-radius: 28px;
  overflow: hidden;
}
.midnight.page-oj .item-art {
  border-radius: 15px;
}
.midnight.page-oj .submission-card pre {
  border-radius: 15px;
}
.midnight.page-oj .app-footer > a {
  border-radius: 999px;
  padding: 5px 12px;
  border: 1px solid #59374d;
}
.midnight.page-oj .sidebar .motion-toggle {
  width: 100%;
  margin-top: 25px;
  font-size: 10px;
  min-height: 38px;
  order: unset;
}
.midnight.page-admin .motion-toggle {
  order: unset;
  margin-left: auto;
}
/* Hover feedback is small and stops immediately when motion is disabled. */
.midnight .primary-link,
.midnight .board-btn,
.midnight .round-arrow,
.midnight .selected-work,
.midnight .person-entry,
.midnight .experience-row {
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s,
    translate 0.3s,
    box-shadow 0.3s;
}
.midnight .primary-link:hover,
.midnight .board-btn:hover {
  translate: 0 -2px;
  box-shadow: 0 8px 30px #be5b8820;
}
.midnight .round-arrow:hover {
  rotate: 8deg;
}
.midnight .person-entry:hover .person-initial {
  box-shadow: 0 0 0 6px #9f507820;
  transition: box-shadow 0.3s;
}
.midnight .selected-work:hover .project-art {
  box-shadow: 0 15px 50px #8c36541c;
}
.midnight .case-visual:hover .art-spark {
  rotate: 90deg;
  transition: rotate 0.8s;
}
.midnight .footer-mail > span {
  transition: translate 0.3s;
}
.midnight .footer-mail:hover > span {
  translate: 6px -6px;
}
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: page-leave 0.15s ease both;
}
::view-transition-new(root) {
  animation: page-arrive 0.32s ease both;
}
@keyframes page-leave {
  to {
    opacity: 0;
    filter: blur(2px);
  }
}
@keyframes page-arrive {
  from {
    opacity: 0;
    translate: 0 8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
html.sua-motion-off {
  scroll-behavior: auto;
}
html.sua-motion-off *:not(.sua-ambient, .sua-ambient *),
html.sua-motion-off *:not(.sua-ambient, .sua-ambient *)::before,
html.sua-motion-off *:not(.sua-ambient, .sua-ambient *)::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (max-width: 1200px) {
  .midnight .site-header {
    gap: 17px;
  }
  .midnight .site-nav {
    gap: 16px;
  }
  .midnight .brand-caption {
    display: none;
  }
  .midnight .motion-toggle {
    padding-inline: 11px;
  }
  .midnight .motion-state {
    display: none;
  }
}
@media (max-width: 1000px) {
  .midnight .site-nav {
    margin-left: 0;
    gap: 5px 30px;
  }
  .midnight .site-brand {
    margin-right: auto;
  }
  .midnight .site-header {
    gap: 16px;
  }
  .midnight .site-nav.is-open {
    border-radius: 0 0 28px 28px;
  }
  .midnight .nav-dropdown {
    border-radius: 0;
    box-shadow: none;
  }
  .midnight .nav-dropdown a {
    border-radius: 12px;
  }
  .midnight .motion-toggle {
    min-height: 33px;
  }
  .midnight .nav-more {
    grid-row: 3/7;
  }
}
@media (max-width: 760px) {
  .midnight .site-header {
    gap: 12px;
  }
  .midnight .site-nav {
    gap: 5px 25px;
  }
  .midnight .brand-caption {
    display: none;
  }
  .midnight .motion-toggle {
    font-size: 8px;
    padding: 7px 10px;
    gap: 6px;
  }
  .midnight .menu-toggle {
    width: 64px;
  }
  .midnight .project-art,
  .midnight .selected-work .project-art {
    border-radius: 23px;
  }
  .midnight .about-portrait {
    padding: 12px 12px 10px;
    border-radius: 20px;
  }
  .midnight .about-portrait img {
    border-radius: 13px;
  }
  .midnight .board-card,
  .midnight .board-form,
  .midnight .board-empty {
    border-radius: 21px;
  }
  .midnight .board-article {
    padding: 25px 20px;
  }
  .midnight .letter-gate {
    border-radius: 27px;
  }
  .midnight .letter-paper {
    border-radius: 23px;
  }
  .midnight .partner-portrait {
    border-radius: 21px 21px 38px 21px;
  }
  .midnight .people-search {
    padding-inline: 10px;
  }
  .midnight .site-footer {
    border-radius: 28px 28px 0 0;
  }
  .midnight .footer-bottom {
    row-gap: 20px;
  }
  .midnight .footer-bottom > div {
    flex-wrap: wrap;
    gap: 14px;
  }
  .midnight .diary-strip {
    margin-inline: 10px;
    border-radius: 26px;
  }
  .midnight .diary-strip .section-wrap {
    width: calc(100% - 38px);
  }
  .midnight .ai-gate .gate-card {
    border-radius: 27px;
  }
  .midnight .gate-editorial {
    border-radius: 25px 25px 0 0;
  }
  .midnight .ai-chip {
    border-radius: 17px;
  }
  .midnight.page-admin .card,
  .midnight.page-admin .kpi {
    border-radius: 20px;
  }
  .midnight.page-oj .hero,
  .midnight.page-oj .yeoul-hero {
    border-radius: 23px;
  }
  .midnight.page-oj .stat {
    border-radius: 17px;
  }
  .midnight.page-oj .sidebar .motion-toggle {
    width: auto;
    position: absolute;
    right: 20px;
    top: 22px;
    margin: 0;
  }
  .midnight.page-oj .sidebar {
    position: relative;
  }
  .midnight.page-oj .wordmark {
    max-width: calc(100% - 100px);
  }
  .midnight.page-oj .sidebar nav {
    padding-top: 5px;
  }
  .midnight.page-oj .auth-dialog {
    border-radius: 24px;
  }
  .midnight.page-oj .auth-shell {
    border-radius: 23px;
  }
  .midnight.page-oj .table-wrap {
    border-radius: 18px;
  }
  .midnight.page-oj .filter-bar {
    border-radius: 18px 18px 0 0;
  }
}
@media (max-width: 480px) {
  .midnight .site-header {
    gap: 10px;
  }
  .midnight .motion-toggle {
    font-size: 8px;
    padding-inline: 9px;
  }
  .midnight .motion-toggle .motion-symbol {
    width: 9px;
    height: 9px;
  }
  .midnight .menu-toggle {
    width: 59px;
    font-size: 10px;
  }
  .midnight .code-submit {
    padding-inline: 17px;
  }
  .midnight .code-input {
    padding-left: 15px;
  }
  .midnight .people-search input {
    width: 146px;
  }
  .midnight .footer-bottom .back-top {
    margin-left: 0;
  }
  .midnight .primary-link {
    padding-inline: 21px;
  }
  .midnight .filter-group button {
    padding-inline: 13px;
  }
  .midnight.page-oj .sidebar .motion-toggle {
    right: 16px;
    top: 22px;
    font-size: 8px;
    min-height: 31px;
  }
  .midnight.page-oj .sidebar .motion-state {
    display: none;
  }
  .midnight.page-oj .panel,
  .midnight.page-oj .shop-item,
  .midnight.page-oj .badge-tile,
  .midnight.page-oj .guide,
  .midnight.page-oj .detail-panel {
    border-radius: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}
/* The opening banner is also a soft, rounded surface. */
.midnight .home-hero {
  width: min(1440px, calc(100% - 80px));
  margin: 24px auto 0;
  border: 1px solid #5c2b43;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 30px 100px #0004;
}
.midnight .hero-meta {
  padding-top: 27px;
}
.midnight .hero-banner {
  border-radius: 0;
}
.midnight .hero-bottom {
  background: #110b10;
}
.midnight .hero-bottom .text-link {
  border-radius: 999px;
  padding: 8px 17px;
  border: 1px solid #6f4259;
  gap: 25px;
  background: #21121d;
}
.midnight .hero-bottom .text-link:hover {
  background: #3b2030;
}
@media (max-width: 760px) {
  .midnight .home-hero {
    width: calc(100% - 28px);
    margin-top: 17px;
    border-radius: 28px;
  }
  .midnight .hero-meta {
    padding-top: 23px;
  }
  .midnight .hero-bottom {
    padding: 18px 17px;
  }
  .midnight .hero-bottom .text-link {
    font-size: 9px;
    padding: 8px 12px;
    gap: 14px;
  }
}
@media (max-width: 480px) {
  .midnight .home-hero {
    width: calc(100% - 22px);
    border-radius: 25px;
  }
  .midnight .hero-banner {
    height: 310px;
  }
  .midnight .hero-bottom > div {
    font-size: 10px;
    gap: 8px;
  }
  .midnight .hero-bottom .text-link {
    padding: 7px 10px;
    font-size: 8px;
  }
  .midnight .hero-meta {
    font-size: 6px;
  }
}
