:root {
  color-scheme: dark;
  --bg: #0e1117;
  --ink: #f8fafc;
  --muted: #a8b3c7;
  --line: rgba(255, 255, 255, 0.14);
  --button: rgba(255, 255, 255, 0.075);
  --button-hover: rgba(255, 255, 255, 0.12);
  --blue: #2f80ed;
  --blue-hover: #1f6fd8;
  --blue-soft: rgba(47, 128, 237, 0.16);
  --orange: #f28c28;
  --orange-hover: #d97706;
  --orange-soft: rgba(242, 140, 40, 0.14);
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.36);
  font-family:
    "Google Sans Flex", "Segoe UI Variable Display", Inter, ui-sans-serif,
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@view-transition {
  navigation: auto;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

html:lang(ko) {
  font-family:
    "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic",
    "Segoe UI Variable Display", "Segoe UI", sans-serif;
}

html:lang(en) {
  font-family:
    "Google Sans Flex", "Segoe UI Variable Display", Inter, ui-sans-serif,
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html:lang(ja) {
  font-family:
    "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo",
    "Segoe UI Variable Display", "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(47, 128, 237, 0.16), transparent 28%),
    radial-gradient(circle at 14% 22%, rgba(47, 128, 237, 0.2), transparent 30%),
    radial-gradient(circle at 84% 76%, rgba(242, 140, 40, 0.16), transparent 34%),
    linear-gradient(135deg, #121826 0%, var(--bg) 56%, #0b0d12 100%);
  color: var(--ink);
}

body.portfolio-page {
  overflow: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-position: center;
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.74), transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

.top-tabs {
  --tab-indicator-width: 136px;
  --tab-indicator-x: 6px;
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 14, 20, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  view-transition-name: top-tabs;
}

.top-tabs::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  z-index: -1;
  width: var(--tab-indicator-width);
  height: calc(100% - 12px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(var(--tab-indicator-x));
  transition:
    width 260ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page--home .transition-source {
  view-transition-name: action-stage;
}

.top-tab {
  display: inline-flex;
  min-width: 136px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 780;
  letter-spacing: 0.06em;
  padding: 0 18px;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.top-tab:hover {
  color: var(--ink);
}

.top-tab:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.32);
  outline-offset: 3px;
}

.top-tab--active {
  color: var(--ink);
}

.language-switcher {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 4;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(11, 14, 20, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.language-switcher__button {
  display: inline-flex;
  min-width: 42px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.language-switcher__button:link,
.language-switcher__button:visited,
.language-switcher__button:active {
  color: var(--muted);
}

.language-switcher__button:hover {
  color: var(--ink);
}

.language-switcher__button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.3);
  outline-offset: 2px;
}

.language-switcher__button--active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

.page {
  display: grid;
  min-height: 100dvh;
  padding: 96px 32px 32px;
  place-items: center;
}

.page--home {
  position: relative;
  min-height: 100dvh;
  grid-template-rows: 1fr auto 1fr;
}

.link-hub {
  z-index: 1;
  display: grid;
  grid-row: 2;
  width: min(100%, 980px);
  justify-items: center;
  gap: 0;
  padding: 40px 0;
  text-align: center;
}

.link-hub::before,
.link-hub::after {
  content: "";
  width: min(100%, 620px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.link-hub::before {
  margin-bottom: 22px;
}

.home-kicker {
  margin: 0 0 28px;
  color: #c9d4e8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  display: flex;
  max-width: 100%;
  align-items: baseline;
  justify-content: center;
  gap: 0.24em;
  margin: 0;
  color: var(--ink);
  font-family: "Sora", "Plus Jakarta Sans", "Segoe UI Variable Display", Inter, ui-sans-serif,
    system-ui, sans-serif;
  font-size: 4.7rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
  white-space: nowrap;
}

.link-hub h1 {
  font-family: "Sora", "Plus Jakarta Sans", "Segoe UI Variable Display", "Segoe UI",
    ui-sans-serif, system-ui, sans-serif;
  font-size: 7.9rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  line-height: 0.94;
  transform: translateY(-4px);
}

.slash {
  color: var(--muted);
  font-weight: 420;
}

.role {
  margin: 28px 0 34px;
  color: #d9e2f3;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.link-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.contact-links {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.contact-chip {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  color: #ffffff;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.contact-chip:hover {
  transform: translateY(-2px);
}

.contact-chip:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.32);
  outline-offset: 3px;
}

.contact-chip--discord {
  border-color: rgba(88, 101, 242, 0.26);
  background: rgba(88, 101, 242, 0.14);
  color: #eef1ff;
}

.contact-chip--discord:hover {
  background: #5865f2;
  border-color: transparent;
  box-shadow: 0 18px 44px rgba(88, 101, 242, 0.28);
}

.contact-chip--x:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.contact-chip svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #d7e0ef;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.88;
  transform: translateX(-50%);
  transition:
    color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.scroll-cue:hover {
  color: #ffffff;
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}

.scroll-cue:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.32);
  outline-offset: 6px;
  border-radius: 999px;
}

.scroll-cue span:last-child {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
  line-height: 1;
}

.link-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--button);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 740;
  letter-spacing: 0;
  padding: 0 16px;
  backdrop-filter: blur(16px);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.link-button:link,
.link-button:visited,
.link-button:active {
  color: var(--ink);
}

.link-button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: currentColor;
}

.link-button:hover {
  background: var(--button-hover);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.link-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.32);
  outline-offset: 3px;
}

.link-button--blue {
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent),
    var(--blue);
  color: #ffffff;
}

.link-button--blue:link,
.link-button--blue:visited,
.link-button--blue:active,
.link-button--blue:hover {
  color: #ffffff;
}

.link-button--blue:hover {
  background: var(--blue-hover);
  border-color: transparent;
  box-shadow: 0 18px 44px rgba(47, 128, 237, 0.28);
}

.link-button--wiki {
  border-color: rgba(121, 166, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent),
    rgba(77, 114, 197, 0.24);
  color: #eef3ff;
}

.link-button--wiki:link,
.link-button--wiki:visited,
.link-button--wiki:active,
.link-button--wiki:hover {
  color: #eef3ff;
}

.link-button--wiki:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent),
    rgba(77, 114, 197, 0.38);
  border-color: rgba(141, 182, 255, 0.34);
  box-shadow: 0 18px 44px rgba(77, 114, 197, 0.24);
}

.link-button--booth {
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent),
    var(--orange);
  color: #111111;
}

.link-button--booth:link,
.link-button--booth:visited,
.link-button--booth:active {
  color: #111111;
}

.link-button--booth:hover {
  background: var(--orange-hover);
  border-color: transparent;
  box-shadow: 0 18px 44px rgba(242, 140, 40, 0.28);
  color: #ffffff;
}

.mail-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 12;
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  color: #ffffff;
  font-size: 1.42rem;
  font-weight: 780;
  line-height: 1;
  backdrop-filter: blur(16px);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.mail-button:hover {
  background: var(--blue);
  border-color: transparent;
  box-shadow: 0 18px 44px rgba(47, 128, 237, 0.28);
  transform: translateY(-2px);
}

.mail-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.32);
  outline-offset: 3px;
}

.wiki-body {
  min-width: 320px;
}

.wiki-shell {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
}

.wiki-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  align-content: start;
  gap: 26px;
  height: 100dvh;
  padding: 28px 22px 28px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 12, 18, 0.74);
  backdrop-filter: blur(20px);
}

.wiki-sidebar__brand {
  display: grid;
  gap: 12px;
}

.wiki-sidebar__eyebrow {
  margin: 0;
  color: #8fb9ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wiki-sidebar__title {
  margin: 0;
  font-family: "Sora", "Plus Jakarta Sans", "Segoe UI Variable Display", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.9rem;
  line-height: 1.06;
}

.wiki-sidebar__copy {
  margin: 0;
  color: #c3cfdf;
  font-size: 0.93rem;
  line-height: 1.7;
}

.wiki-home-link {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #e7eefb;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.wiki-home-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.wiki-home-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.28);
  outline-offset: 3px;
}

.wiki-nav {
  display: grid;
  gap: 8px;
}

.wiki-nav__group {
  display: grid;
  gap: 8px;
}

.wiki-nav__label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wiki-nav__button {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #d9e2f3;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.wiki-nav__button:link,
.wiki-nav__button:visited,
.wiki-nav__button:active {
  color: #d9e2f3;
}

.wiki-nav__button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateX(2px);
}

.wiki-nav__button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.28);
  outline-offset: 3px;
}

.wiki-nav__button--group {
  position: relative;
  padding-right: 40px;
}

.wiki-nav__button--group::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 9px;
  height: 9px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-62%) rotate(45deg);
  transition: transform 180ms ease;
}

.wiki-nav__button--group[aria-expanded="true"]::after {
  transform: translateY(-38%) rotate(225deg);
}

.wiki-nav__button--active {
  border-color: rgba(47, 128, 237, 0.24);
  background: rgba(47, 128, 237, 0.16);
  color: #f4f8ff;
  box-shadow: 0 12px 28px rgba(47, 128, 237, 0.14);
}

.wiki-nav__subgroup {
  display: grid;
  gap: 6px;
  padding-left: 10px;
}

.wiki-nav__subgroup[hidden] {
  display: none !important;
}

.wiki-nav__subbutton {
  display: inline-flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: #c7d4e9;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.wiki-nav__subbutton:link,
.wiki-nav__subbutton:visited,
.wiki-nav__subbutton:active {
  color: #c7d4e9;
}

.wiki-nav__subbutton:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: translateX(2px);
}

.wiki-nav__subbutton:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.24);
  outline-offset: 3px;
}

.wiki-nav__subbutton--active {
  border-color: rgba(47, 128, 237, 0.22);
  background: rgba(47, 128, 237, 0.12);
  color: #f4f8ff;
  box-shadow: 0 10px 24px rgba(47, 128, 237, 0.1);
}

.wiki-main {
  display: grid;
  justify-content: center;
  padding: 34px 36px 48px;
}

.wiki-article {
  display: grid;
  align-content: start;
  gap: 26px;
  width: min(100%, 1120px);
  justify-self: center;
}

.wiki-panel {
  display: none;
  gap: 22px;
}

.wiki-panel.is-active {
  display: grid;
}

.wiki-markdown {
  display: grid;
  gap: 22px;
}

.wiki-markdown h1,
.wiki-markdown h2,
.wiki-markdown h3 {
  margin: 0;
  font-family: "Sora", "Plus Jakarta Sans", "Segoe UI Variable Display", Inter, ui-sans-serif, system-ui, sans-serif;
}

.wiki-markdown h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.wiki-markdown h2 {
  margin-top: 8px;
  color: #eff4ff;
  font-size: 1.28rem;
  line-height: 1.2;
}

.wiki-markdown h3 {
  color: #e8eef9;
  font-size: 1.02rem;
  line-height: 1.24;
}

.wiki-markdown p,
.wiki-markdown li {
  color: #d6deec;
  font-size: 0.98rem;
  line-height: 1.8;
}

.wiki-markdown p {
  margin: 0;
}

.wiki-markdown ul,
.wiki-markdown ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.wiki-markdown li {
  padding-left: 2px;
}

.wiki-markdown a {
  color: #9ec2ff;
  text-decoration: underline;
  text-decoration-color: rgba(158, 194, 255, 0.4);
  text-underline-offset: 3px;
}

.wiki-markdown strong {
  color: #f4f8ff;
}

.wiki-markdown code {
  padding: 0.1em 0.42em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #f4f8ff;
  font-family: "Cascadia Code", "Consolas", "SFMono-Regular", Menlo, monospace;
  font-size: 0.92em;
}

.wiki-markdown pre {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(12, 16, 24, 0.78);
  overflow-x: auto;
}

.wiki-markdown pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

.wiki-panel__header {
  display: grid;
  gap: 10px;
}

.wiki-panel__eyebrow {
  margin: 0;
  color: #8fb9ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wiki-panel__title {
  margin: 0;
  font-family: "Sora", "Plus Jakarta Sans", "Segoe UI Variable Display", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.wiki-panel__copy {
  max-width: 760px;
  margin: 0;
  color: #d5deee;
  font-size: 1.02rem;
  line-height: 1.8;
}

.wiki-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(12, 16, 24, 0.66);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.wiki-card--media,
.wiki-card--section {
  gap: 18px;
}

.wiki-lead {
  display: grid;
  gap: 20px;
}

.wiki-lead--with-media {
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  align-items: start;
}

.wiki-lead--wide-media {
  grid-template-columns: 1fr;
  gap: 24px;
}

.wiki-lead__media,
.wiki-lead__content {
  min-width: 0;
}

.wiki-lead__media .wiki-media {
  max-width: 380px;
}

.wiki-lead--wide-media .wiki-lead__media .wiki-media {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

.wiki-lead--wide-media .wiki-lead__media {
  width: 100%;
  display: grid;
  justify-items: center;
  justify-self: center;
}

.wiki-lead--wide-media .wiki-lead__content {
  width: 100%;
}

.wiki-lead__content {
  display: grid;
  gap: 18px;
}

.wiki-card__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 760;
}

.wiki-card__body {
  margin: 0;
  color: #d6deec;
  font-size: 0.98rem;
  line-height: 1.8;
  white-space: pre-line;
}

.wiki-panel__copy code,
.wiki-card__body code,
.wiki-list code,
.wiki-entry__body code,
.wiki-media__caption code {
  display: inline;
  padding: 0.12em 0.42em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #f4f8ff;
  font-family: "Cascadia Code", "Consolas", "SFMono-Regular", Menlo, monospace;
  font-size: 0.92em;
  line-height: 1.35;
  white-space: normal;
  word-break: keep-all;
}

.wiki-media {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 34px rgba(0, 0, 0, 0.18);
}

.wiki-media img {
  display: block;
  width: 100%;
  height: auto;
}

.wiki-media--landscape {
  border-radius: 18px;
}

.wiki-media__caption {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.wiki-section {
  display: grid;
  gap: 16px;
}

.wiki-section__title {
  margin: 0;
  color: #f4f8ff;
  font-size: 1.12rem;
  font-weight: 780;
  line-height: 1.28;
}

.wiki-entry-list {
  display: grid;
  gap: 14px;
}

.wiki-entry {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.wiki-entry + .wiki-entry {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wiki-entry__title {
  margin: 0;
  color: #eff4ff;
  font-size: 0.98rem;
  font-weight: 730;
  line-height: 1.4;
}

.wiki-entry__body {
  margin: 0;
  color: #d6deec;
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: pre-line;
}

.wiki-card--cta {
  padding: 0;
  overflow: hidden;
}

.wiki-card--cta-compact {
  padding: 0;
}

.wiki-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
}

.wiki-card--cta-compact .wiki-cta {
  padding: 18px;
}

.wiki-cta__copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.wiki-cta__button {
  min-width: 188px;
  color: #ffffff !important;
}

.wiki-cta__button:link,
.wiki-cta__button:visited,
.wiki-cta__button:active,
.wiki-cta__button:hover,
.wiki-cta__button span {
  color: #ffffff !important;
}

.wiki-cta__button svg {
  fill: #ffffff !important;
}

.wiki-card--cta-compact .wiki-cta__button {
  min-width: 172px;
}

.wiki-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wiki-list--ordered {
  padding-left: 20px;
  list-style: decimal;
}

.wiki-list--ordered li {
  padding-left: 0;
}

.wiki-list li {
  display: list-item;
  padding-left: 18px;
  position: relative;
  color: #d6deec;
  line-height: 1.75;
}

.wiki-list li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(143, 185, 255, 0.92);
}

.wiki-list--ordered li {
  padding-left: 0;
}

.wiki-list--ordered li::before {
  content: none;
}

.wiki-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.wiki-grid--lead {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wiki-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wiki-meta__chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #eff4ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page--portfolio {
  min-height: 100dvh;
  align-items: start;
  padding-bottom: 96px;
  padding-top: 132px;
}

.portfolio-view {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 1380px);
  gap: 26px;
}

.js .portfolio-view > .section-kicker,
.js .portfolio-view > .portfolio-title,
.js .portfolio-view > .portfolio-copy,
.js .portfolio-view > .product-grid {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 520ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .page--portfolio.is-visible .portfolio-view > .section-kicker,
.js .page--portfolio.is-visible .portfolio-view > .portfolio-title,
.js .page--portfolio.is-visible .portfolio-view > .portfolio-copy,
.js .page--portfolio.is-visible .portfolio-view > .product-grid {
  opacity: 1;
  transform: translateY(0);
}

.js .page--portfolio.is-visible .portfolio-title {
  transition-delay: 70ms;
}

.js .page--portfolio.is-visible .portfolio-copy {
  transition-delay: 120ms;
}

.js .page--portfolio.is-visible .product-grid {
  transition-delay: 170ms;
}

.section-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 2.08rem;
  font-weight: 880;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.portfolio-title {
  display: block;
  max-width: 100%;
  font-size: 4.45rem;
  text-align: center;
  white-space: normal;
}

.portfolio-copy {
  max-width: 720px;
  margin: -4px auto 14px;
  color: #d9e2f3;
  font-size: 1.08rem;
  line-height: 1.7;
  text-align: center;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: -2px auto 8px;
}

.filter-chip {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d9e2f3;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.filter-chip:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.28);
  outline-offset: 3px;
}

.filter-chip--active {
  border-color: rgba(47, 128, 237, 0.28);
  background: rgba(47, 128, 237, 0.18);
  color: #f4f8ff;
  box-shadow: 0 12px 28px rgba(47, 128, 237, 0.14);
}

.portfolio-status {
  margin: -2px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: center;
}

.portfolio-status--error {
  color: #ffb4b4;
}

.portfolio-more {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.portfolio-more__button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 168px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(12, 16, 24, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 34px rgba(0, 0, 0, 0.18);
  color: #eff4ff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.portfolio-more__button:hover {
  border-color: rgba(47, 128, 237, 0.26);
  background:
    linear-gradient(180deg, rgba(47, 128, 237, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(12, 16, 24, 0.8);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 38px rgba(0, 0, 0, 0.22);
}

.portfolio-more__button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.28);
  outline-offset: 3px;
}

.portfolio-more__button span[aria-hidden="true"] {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(47, 128, 237, 0.16);
  color: #8fb9ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 1rem;
  line-height: 1;
}

.portfolio-more__button span[aria-hidden="true"] svg {
  width: 14px;
  height: 14px;
  transition: transform 180ms ease;
}

.portfolio-more__button[aria-expanded="true"] span[aria-hidden="true"] svg {
  transform: rotate(180deg);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.product-card {
  --card-accent: #ffbb8a;
  --card-accent-soft: rgba(242, 140, 40, 0.22);
  --card-accent-border: rgba(242, 140, 40, 0.3);
  display: grid;
  position: relative;
  gap: 10px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--card-accent-border);
  border-radius: 10px;
  background:
    linear-gradient(180deg, var(--card-accent-soft), rgba(255, 255, 255, 0.075)),
    rgba(255, 255, 255, 0.075);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.product-card[hidden] {
  display: none;
}

.product-card.is-filtering-out {
  pointer-events: none;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--card-accent), transparent 78%);
  opacity: 0.72;
}

.js .product-card {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.js .page--portfolio.is-visible .product-card {
  opacity: 1;
  transform: translateY(0);
}

.js .page--portfolio.is-visible .product-card:nth-child(1) {
  transition-delay: 190ms;
}

.js .page--portfolio.is-visible .product-card:nth-child(2) {
  transition-delay: 220ms;
}

.js .page--portfolio.is-visible .product-card:nth-child(3) {
  transition-delay: 250ms;
}

.js .page--portfolio.is-visible .product-card:nth-child(4) {
  transition-delay: 280ms;
}

.js .page--portfolio.is-visible .product-card:nth-child(n + 5) {
  transition-delay: 310ms;
}

.product-card:hover {
  background:
    linear-gradient(180deg, var(--card-accent-soft), rgba(255, 255, 255, 0.105)),
    rgba(255, 255, 255, 0.105);
  border-color: var(--card-accent-border);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: translateY(-3px);
}

.product-card:active {
  transform: translateY(-1px) scale(0.988);
}

.js .page--portfolio.is-visible .product-card:hover {
  transform: translateY(-3px);
  transition-delay: 0ms;
}

.product-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.32);
  outline-offset: 3px;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.js .product-card {
  cursor: pointer;
}

.product-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(104, 169, 255, 0.28);
  border-radius: 999px;
  background: rgba(10, 16, 26, 0.78);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  color: #dceaff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.2;
  padding: 0 4px;
}

.product-card h2 {
  min-height: 2.45em;
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.16;
  padding: 0 4px;
}

.product-type {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin: 0 4px 2px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--card-accent-soft);
  color: var(--card-accent);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.product-card--tool {
  --card-accent: #8bbdff;
  --card-accent-soft: rgba(80, 150, 255, 0.18);
  --card-accent-border: rgba(80, 150, 255, 0.28);
}

.product-card--unity-shader {
  --card-accent: #b997ff;
  --card-accent-soft: rgba(149, 107, 255, 0.18);
  --card-accent-border: rgba(149, 107, 255, 0.28);
}

.product-card--game-mods {
  --card-accent: #74d7b2;
  --card-accent-soft: rgba(70, 192, 145, 0.18);
  --card-accent-border: rgba(70, 192, 145, 0.28);
}

body.modal-open {
  overflow: hidden;
}

.project-modal[hidden] {
  display: none;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 8, 0.78);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.project-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 28px;
  width: min(920px, calc(100vw - 48px));
  max-height: min(720px, calc(100dvh - 48px));
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.98), rgba(10, 13, 18, 0.98));
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition:
    opacity 240ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-modal.is-open .project-modal__backdrop {
  opacity: 1;
}

.project-modal.is-open .project-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font: inherit;
  font-size: 1.4rem;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.project-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.project-modal__close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.28);
  outline-offset: 3px;
}

.project-modal__media {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  aspect-ratio: 1;
  padding: 0;
}

.project-modal__media-frame {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 44px rgba(0, 0, 0, 0.22);
}

.project-modal__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.project-modal__content {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 10px 12px 10px 0;
  overflow-y: auto;
}

.project-modal__eyebrow {
  margin: 0;
  color: #d8e2f3;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-modal__date {
  margin: -8px 0 2px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.project-modal__title {
  margin: 0;
  font-family: "Sora", "Plus Jakarta Sans", "Segoe UI Variable Display", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 700;
  line-height: 1.02;
}

.project-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-modal__meta-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: #f0f4fb;
}

.project-modal__summary {
  margin: 0;
  color: #dbe3f2;
  font-size: 0.98rem;
  line-height: 1.85;
}

.project-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-modal__link,
.project-modal__ghost {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.project-modal__link {
  border-color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent), var(--blue);
}

.project-modal__link:hover,
.project-modal__ghost:hover {
  transform: translateY(-1px);
}

.project-modal__ghost {
  background: rgba(255, 255, 255, 0.05);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 420ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(main-stage) {
  animation: stage-out 260ms ease both;
}

::view-transition-new(main-stage) {
  animation: stage-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

::view-transition-old(action-stage) {
  animation: action-out 280ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

::view-transition-new(action-stage) {
  animation: action-in 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

::view-transition-old(top-tabs),
::view-transition-new(top-tabs) {
  animation-duration: 360ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes stage-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  to {
    opacity: 0;
    transform: translateY(-14px) scale(0.985);
    filter: blur(6px);
  }
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    filter: blur(8px);
  }

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

@keyframes action-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-26px) scale(0.96);
  }
}

@keyframes action-in {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.94);
  }

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


@media (max-width: 920px) {
  .wiki-shell {
    grid-template-columns: 1fr;
  }

  .wiki-sidebar {
    position: static;
    height: auto;
    padding: 92px 22px 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .wiki-main {
    padding: 26px 22px 42px;
  }

  .wiki-article {
    width: min(100%, 860px);
  }

  .wiki-grid {
    grid-template-columns: 1fr;
  }

  .wiki-lead--with-media {
    grid-template-columns: 1fr;
  }

  .wiki-lead__media .wiki-media {
    max-width: none;
  }

  .wiki-lead--wide-media {
    grid-template-columns: 1fr;
  }

  .wiki-cta {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .wiki-cta__button {
    width: 100%;
  }

  .link-hub {
    padding-bottom: 36px;
    padding-top: 36px;
  }

  h1 {
    font-size: 3.55rem;
  }

  .link-hub h1 {
    font-size: 5rem;
  }

  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-title {
    font-size: 3.35rem;
  }

  .project-modal__dialog {
    grid-template-columns: 1fr;
    gap: 16px;
    width: min(760px, calc(100vw - 36px));
    max-height: calc(100dvh - 36px);
    padding: 20px;
  }

  .project-modal__media {
    width: min(100%, 360px);
    margin: 0 auto;
  }

  .project-modal__content {
    padding: 0 6px 6px;
  }
}

@media (max-width: 560px) {
  .wiki-sidebar {
    gap: 22px;
    padding: 88px 18px 20px;
  }

  .wiki-sidebar__title {
    font-size: 1.56rem;
  }

  .wiki-nav {
    gap: 8px;
    overflow-x: visible;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    padding-bottom: 4px;
  }

  .wiki-nav__group {
    gap: 8px;
  }

  .wiki-nav__button {
    min-height: 44px;
    font-size: 0.88rem;
  }

  .wiki-nav__subgroup {
    padding-left: 8px;
  }

  .wiki-nav__subbutton {
    min-height: 38px;
    font-size: 0.82rem;
  }

  .wiki-main {
    padding: 22px 18px 34px;
  }

  .wiki-article {
    width: 100%;
  }

  .wiki-panel__title {
    font-size: 2rem;
  }

  .wiki-card {
    padding: 18px;
    border-radius: 16px;
  }

  .page {
    padding: 92px 22px 22px;
  }

  .top-tabs {
    top: 16px;
    width: calc(100% - 32px);
  }

  .language-switcher {
    top: 68px;
    right: 16px;
  }

  .top-tab {
    min-width: 0;
    flex: 1;
    min-height: 42px;
    font-size: 0.82rem;
    padding: 0 10px;
  }

  .link-hub {
    padding-bottom: 28px;
    padding-top: 28px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .link-hub h1 {
    font-size: 3.22rem;
    letter-spacing: 0.01em;
    transform: translateY(-3px);
  }

  .role {
    margin: 22px 0 24px;
    font-size: 0.84rem;
    letter-spacing: 0.14em;
  }

  .home-kicker {
    margin-bottom: 22px;
    font-size: 0.72rem;
  }

  .scroll-cue {
    gap: 10px;
    bottom: 24px;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
  }

  .link-hub::before {
    margin-bottom: 16px;
  }

  .link-grid {
      grid-template-columns: 1fr;
      gap: 10px;
      padding: 7px;
    }

  .contact-links {
    right: 18px;
    bottom: 78px;
    gap: 8px;
  }

  .contact-chip {
    width: 50px;
    height: 50px;
  }

  .contact-chip svg {
    width: 22px;
    height: 22px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-filters {
    gap: 8px;
    margin-top: 2px;
  }

  .filter-chip {
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.8rem;
  }

  .link-button {
    min-height: 52px;
    gap: 8px;
  }

  .mail-button {
    right: 18px;
    bottom: 18px;
    width: 50px;
    height: 50px;
    font-size: 1.24rem;
  }

  .portfolio-title {
    font-size: 2.38rem;
  }

  .product-card {
    padding: 10px;
  }

  .section-kicker {
    font-size: 0.92rem;
  }

  .product-card h2 {
    font-size: 1.05rem;
  }

  .project-modal__dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
  }

  .project-modal__media {
    width: min(100%, 280px);
  }

  .project-modal__media-frame {
    border-radius: 16px;
  }

  .project-modal__content {
    gap: 16px;
    padding: 0 2px 2px;
  }

  .project-modal__close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .project-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 1.95rem;
  }

  .link-hub h1 {
    font-size: 2.56rem;
  }
}

@media (max-height: 520px) {
  .top-tabs {
    top: 10px;
  }

  .page {
    padding-top: 74px;
  }

  .link-hub {
    padding-bottom: 16px;
    padding-top: 16px;
  }

  h1 {
    font-size: 2.25rem;
  }

  .link-hub h1 {
    font-size: 3rem;
    transform: translateY(-2px);
  }

  .home-kicker {
    margin-bottom: 14px;
  }

  .link-hub::before {
    margin-bottom: 10px;
  }

  .role {
    margin: 14px 0 16px;
  }

  .scroll-cue {
    bottom: 14px;
  }

  .link-button {
    min-height: 44px;
  }

}

@media (max-width: 380px) and (max-height: 520px) {
  h1 {
    font-size: 1.78rem;
  }

  .link-hub h1 {
    font-size: 2.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: 0.01ms !important;
  }
}
