@font-face {
  font-family: "Taipei Sans TC";
  src: url("/fonts/Taipei-Sans-TC-Beta-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Taipei Sans TC";
  src: url("/fonts/Taipei-Sans-TC-Beta-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

:root {
  --sky-custom: #4bb3dd;
  --sky-top: #4eb7df;
  --sky-mid: #48b4dd;
  --sky-bottom: #55bee3;
  --ink: #05070a;
  --cloud: #ffffff;
  --cloud-shadow: rgba(35, 119, 160, 0.12);
  --font-main: "Taipei Sans TC", Arial, Helvetica, sans-serif;
  --border-thin: 0.75px;
  --radius-control: 8px;
  --home-nav-font-size: clamp(1.18rem, 2.45vw, 2.05rem);
  --interface-backdrop: transparent;
}

* {
  box-sizing: border-box;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  font-family: var(--font-main);
}

button,
input,
select,
textarea,
option,
optgroup {
  font-family: var(--font-main) !important;
}

body {
  overflow: hidden;
  font-family: var(--font-main);
  color: var(--ink);
  background: var(--sky-custom);
}

.sky-stage {
  position: relative;
  width: 100vw;
  min-height: 100svh;
  overflow: hidden;
  touch-action: manipulation;
  display: grid;
  place-items: center;
  border: var(--border-thin) solid #060606;
  isolation: isolate;
}

.sky-gradient {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: var(--sky-custom);
}

body.light-interface-view,
body.light-interface-view .sky-gradient {
  background: #fff;
}

body.portfolio-view .portfolio-filter {
  background: #fff;
  color: #05070a;
  text-shadow: none;
  box-shadow: none;
  backdrop-filter: none;
}

body.portfolio-view .portfolio-filter.active {
  background: #05070a;
  color: #fff;
}

body.portfolio-view .fullscreen-back-button,
body.portfolio-view .portfolio-language-switch .language-toggle {
  background: rgba(5, 7, 10, 0.04);
  color: #05070a;
  text-shadow: none;
  box-shadow: none;
  filter: none;
}

body.light-interface-view .fullscreen-back-button {
  background: rgba(5, 7, 10, 0.04);
  color: #05070a;
  text-shadow: none;
  box-shadow: none;
  filter: none;
}

body.light-interface-view .portfolio-language-switch .language-toggle {
  background: rgba(5, 7, 10, 0.04);
  color: #05070a;
  text-shadow: none;
  box-shadow: none;
  filter: none;
}

body.light-interface-view .portfolio-language-switch .language-toggle:hover,
body.light-interface-view .portfolio-language-switch .language-toggle:focus-visible,
body.light-interface-view .portfolio-language-switch:has(.language-menu:not([hidden])) .language-toggle {
  background: rgba(5, 7, 10, 0.08);
  filter: none;
}

body.light-interface-view .portfolio-language-switch .language-toggle:focus-visible {
  outline-color: rgba(5, 7, 10, 0.72);
}

body.light-interface-view .fullscreen-back-button .return-icon {
  filter: none;
}

body.portfolio-view .fullscreen-back-button:hover,
body.portfolio-view .portfolio-language-switch .language-toggle:hover,
body.portfolio-view .portfolio-language-switch .language-toggle:focus-visible,
body.portfolio-view .portfolio-language-switch:has(.language-menu:not([hidden])) .language-toggle {
  background: rgba(5, 7, 10, 0.08);
  filter: none;
}

body.portfolio-view .fullscreen-back-button .return-icon {
  filter: none;
}

body.portfolio-view .portfolio-language-switch .language-toggle:focus-visible {
  outline-color: rgba(5, 7, 10, 0.72);
}

.top-tools {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.language-switch {
  position: relative;
  pointer-events: auto;
}

.top-tools-left {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  pointer-events: auto;
}

.cloud-visibility-toggle {
  appearance: none;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, filter 180ms ease;
}

.cloud-visibility-toggle:hover,
.cloud-visibility-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  filter: drop-shadow(0 0.35rem 0.75rem rgba(22, 101, 135, 0.16));
}

.cloud-visibility-toggle:active {
  transform: translateY(1px);
}

.cloud-visibility-toggle svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cloud-toggle-slash {
  opacity: 1;
  transition: opacity 180ms ease;
}

.cloud-visibility-toggle[aria-pressed="true"] .cloud-toggle-slash {
  opacity: 0;
}

.home-admin-entry {
  pointer-events: auto;
  text-transform: none;
}

.language-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 2.55rem;
  padding: 0.34rem 0.78rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  font: 700 1.16rem/1 var(--font-main);
  letter-spacing: 0;
  text-transform: lowercase;
  text-shadow: 0 0.08rem 0.32rem rgba(0, 0, 0, 0.22);
  transition:
    background 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

.language-toggle:hover,
.language-toggle:focus-visible,
.language-switch:has(.language-menu:not([hidden])) .language-toggle {
  background: rgba(255, 255, 255, 0.16);
  filter: drop-shadow(0 0.35rem 0.75rem rgba(22, 101, 135, 0.16));
}

.language-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 2px;
}

.language-toggle:active {
  transform: translateY(1px);
}

.order-save-action:disabled {
  cursor: default;
  opacity: 0.38;
}

.language-globe {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.language-caret {
  width: 0;
  height: 0;
  border-left: 0.34rem solid transparent;
  border-right: 0.34rem solid transparent;
  border-top: 0.42rem solid currentColor;
  margin-left: 0.12rem;
  transform-origin: 50% 35%;
  transition: transform 180ms ease;
}

.language-toggle[aria-expanded="true"] .language-caret {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 0.52rem);
  left: 1.7rem;
  display: grid;
  min-width: 5.85rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0.75rem 1.9rem rgba(17, 85, 119, 0.22);
  backdrop-filter: blur(10px);
}

.language-menu[hidden] {
  display: none;
}

.language-menu button {
  appearance: none;
  border: 0;
  min-height: 3.25rem;
  padding: 0.5rem 1.1rem;
  background: transparent;
  cursor: pointer;
  color: #05070a;
  font: 700 1.16rem/1 var(--font-main);
  letter-spacing: 0;
  text-transform: lowercase;
}

.language-menu button + button {
  border-top: 1px solid rgba(5, 7, 10, 0.08);
}

.language-menu button:hover,
.language-menu button:focus-visible {
  background: rgba(78, 183, 223, 0.12);
}

.hero {
  position: relative;
  z-index: 4;
  width: min(92vw, 1040px);
  text-align: center;
  transform: translateY(-1.2vh);
  animation: hero-settle 1800ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow,
h1,
.hero-actions {
  opacity: 0;
  animation: title-bloom 2200ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.eyebrow {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 5vw, 4.15rem);
  font-weight: 400;
  animation-delay: 500ms;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 7.4vw, 5.85rem);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: 0;
  text-wrap: balance;
  background: linear-gradient(90deg, #000 0%, #000 35%, #203a46 54%, #000 78%, #000 100%);
  background-size: 240% 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation:
    title-bloom 2400ms cubic-bezier(0.2, 0.8, 0.2, 1) 900ms forwards,
    title-shimmer 5200ms ease-in-out 1200ms infinite;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: clamp(1.1rem, 3.3vw, 3rem);
  align-items: center;
  margin-top: clamp(2.6rem, 7vh, 5rem);
  animation-delay: 1900ms;
  flex-wrap: wrap;
}

.hero-link {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  font-size: var(--home-nav-font-size, clamp(1.18rem, 2.45vw, 2.05rem));
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-control);
  padding: 0.18rem 0.22rem;
  outline-offset: 0.35rem;
  transition: transform 220ms ease, color 220ms ease, text-shadow 220ms ease;
}

.hero-link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -0.22rem;
  height: 1.5px;
  background: #fff;
  box-shadow: 0 0.18rem 0.45rem rgba(0, 0, 0, 0.18);
  transition: left 320ms cubic-bezier(0.2, 0.8, 0.2, 1), right 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-link:hover,
.hero-link:focus-visible,
.hero-link.guide-hover {
  color: #fff;
  text-shadow: 0 0.16rem 0.45rem rgba(0, 0, 0, 0.2);
  transform: translateY(-0.2rem);
}

.hero-link:hover::after,
.hero-link:focus-visible::after,
.hero-link.guide-hover::after {
  left: 0.2rem;
  right: 0.2rem;
}

.cloud-lane {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  transform: translateX(115vw);
  will-change: transform;
  transition: opacity 420ms ease, filter 420ms ease, scale 420ms ease;
}

.cloud-under {
  z-index: 2;
}

.cloud-over {
  z-index: 5;
}

.lane-a {
  top: 42%;
  animation: drift-left 34s linear -24s infinite;
}

.lane-b {
  top: 21%;
  animation: drift-left 32s linear -8s infinite;
}

.lane-c {
  top: 57%;
  animation: drift-left 36s linear -12s infinite;
}

.lane-d {
  top: 76%;
  animation: drift-left 44s linear -31s infinite;
}

.lane-e {
  top: 8%;
  animation: drift-left 50s linear -40s infinite;
}

.lane-f {
  top: 29%;
  animation: drift-left 38s linear -20s infinite;
}

.lane-g {
  top: 61%;
  animation: drift-left 46s linear -2s infinite;
}

.lane-h {
  top: 13%;
  animation: drift-left 58s linear -16s infinite;
}

.lane-j {
  top: 49%;
  animation: drift-left 52s linear -35s infinite;
}

.lane-k {
  top: 68%;
  animation: drift-left 48s linear -18s infinite;
}

.lane-l {
  top: 24%;
  animation: drift-left 56s linear -45s infinite;
}

.lane-m {
  top: 38%;
  animation: drift-left 41s linear -15s infinite;
}

.lane-n {
  top: 84%;
  animation: drift-left 47s linear -9s infinite;
}

.lane-o {
  top: 17%;
  animation: drift-left 35s linear -27s infinite;
}

.cloud-button {
  appearance: none;
  display: block;
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.custom-cloud {
  position: absolute;
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  translate: -50% -50%;
  transform: scale(0.12);
  animation: cloud-birth 920ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.custom-cloud.cloud-under {
  z-index: 2;
}

.custom-cloud.cloud-over {
  z-index: 5;
}

.custom-cloud .cloud {
  margin-left: 0;
  transform: scale(var(--custom-scale, 1));
  transform-origin: center;
}

.custom-cloud-drift {
  animation:
    cloud-birth 920ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
    custom-drift var(--custom-duration, 42s) linear 900ms forwards;
}

.cloud-vanish {
  pointer-events: none !important;
  animation: cloud-pop 520ms ease forwards !important;
}

.cloud,
.cloud::before,
.cloud::after {
  background: var(--cloud);
}

.cloud.cloud-svg-replaced {
  background: transparent;
}

.cloud.cloud-svg-replaced::before {
  left: 0;
  right: auto;
  bottom: 0;
  width: 100%;
  height: var(--cloud-svg-height, 132%);
  border-radius: 0;
  background: var(--cloud-svg) center / 100% 100% no-repeat;
}

.cloud.cloud-svg-replaced::after {
  display: none;
}

.cloud {
  display: block;
  position: relative;
  width: var(--cloud-w, 22rem);
  height: var(--cloud-h, 7.5rem);
  border-radius: 999px;
  filter: drop-shadow(0 1.2rem 0 var(--cloud-shadow));
  animation: cloud-breathe 5.5s ease-in-out infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.cloud::before {
  width: 44%;
  height: 112%;
  left: 12%;
  bottom: 19%;
}

.cloud::after {
  width: 38%;
  height: 104%;
  right: 10%;
  bottom: 15%;
}

.cloud-soft {
  --cloud-w: clamp(16rem, 24vw, 22rem);
  --cloud-h: clamp(6.6rem, 10vw, 9.4rem);
  margin-left: 5vw;
}

.cloud-front {
  --cloud-w: clamp(16rem, 24vw, 20.4rem);
  --cloud-h: clamp(5.4rem, 8.2vw, 7.9rem);
  z-index: 2;
}

.cloud-front::before {
  width: 35%;
  height: 106%;
  left: 8%;
}

.cloud-front::after {
  width: 32%;
  height: 96%;
  right: 5%;
}

.cloud-wide {
  --cloud-w: clamp(19rem, 28vw, 29rem);
  --cloud-h: clamp(6rem, 8vw, 7.5rem);
  margin-left: 88vw;
}

.cloud-wide::before {
  width: 42%;
  height: 104%;
  left: 23%;
}

.cloud-wide::after {
  width: 36%;
  height: 96%;
  right: 4%;
}

.cloud-flat {
  --cloud-w: clamp(23rem, 34vw, 33rem);
  --cloud-h: clamp(4.6rem, 6.5vw, 6.2rem);
  margin-left: 34vw;
}

.cloud-flat::before {
  width: 34%;
  height: 92%;
  left: 19%;
}

.cloud-flat::after {
  width: 38%;
  height: 96%;
  right: 13%;
}

.cloud-small {
  --cloud-w: clamp(12rem, 18vw, 16rem);
  --cloud-h: clamp(4.5rem, 6vw, 5.8rem);
  margin-left: 70vw;
  opacity: 0.82;
}

.peekaboo {
  position: relative;
  width: max-content;
  margin-left: 76vw;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  animation: peek-sway 6.5s ease-in-out infinite;
  pointer-events: auto;
  overflow: visible;
}

.peekaboo .cloud {
  margin-left: 0;
  position: relative;
  z-index: 3;
  opacity: 1;
}

.personal-icon {
  position: absolute;
  width: clamp(7.4rem, 11vw, 10rem);
  left: 50%;
  bottom: 35%;
  translate: -50% 0;
  z-index: 1;
  transform-origin: 50% 85%;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 420ms ease;
  pointer-events: none;
}

.peekaboo:hover .personal-icon,
.peekaboo:focus-visible .personal-icon,
body.cloud-peek-paused .peekaboo:hover .personal-icon {
  transform: translateY(-0.78rem) scale(1.045);
  filter: drop-shadow(0 0.55rem 0.55rem rgba(0, 0, 0, 0.12));
}

body.cloud-peek-paused .cloud-lane,
body.cloud-peek-paused .custom-cloud,
body.cloud-peek-paused .cloud,
body.cloud-peek-paused .peekaboo {
  animation-play-state: paused;
}

body.clouds-background .cloud-lane,
body.clouds-background .custom-cloud {
  z-index: 1 !important;
  pointer-events: none !important;
}

body.clouds-background .cloud-lane {
  filter: blur(12px);
  opacity: 0.24;
  transition: filter 420ms ease, opacity 420ms ease;
}

body.clouds-background .custom-cloud .cloud {
  filter: blur(12px);
  opacity: 0.24;
  transition: filter 420ms ease, opacity 420ms ease;
}

body.clouds-background .cloud-button,
body.clouds-background .peekaboo,
body.clouds-background .custom-cloud {
  pointer-events: none !important;
}

body.modal-open .cloud-lane,
body.modal-open .hero,
body.modal-open .ground-peek,
body.modal-open .site-footer,
body.modal-open .top-tools {
  filter: blur(12px);
  opacity: 0.62;
  transition: filter 360ms ease, opacity 360ms ease;
}

body.modal-open .custom-cloud {
  pointer-events: none !important;
}

body.modal-open .custom-cloud .cloud {
  filter: blur(12px);
  opacity: 0.62;
  transition: filter 360ms ease, opacity 360ms ease;
}

body.clouds-background.modal-open .cloud-lane,
body.clouds-background.modal-open .custom-cloud .cloud {
  filter: blur(14px);
  opacity: 0.24;
}

body.about-view .cloud-lane {
  filter: blur(12px);
  opacity: 0.28;
  pointer-events: none !important;
}

body.about-view .custom-cloud .cloud {
  filter: blur(12px);
  opacity: 0.28;
}

body.about-view .lane-b {
  visibility: hidden;
  opacity: 0;
  filter: blur(18px);
}

body.about-view .hero,
body.about-view .site-footer {
  pointer-events: none;
  animation: about-home-dissolve 620ms cubic-bezier(0.22, 0.72, 0.2, 1) both;
}

body.public-interface-view .ground-peek {
  pointer-events: none;
  opacity: 1;
  filter: none;
  animation: none;
}

body.about-view .top-tools {
  z-index: 30;
  filter: none;
  opacity: 1;
}

.ground-peek {
  position: absolute;
  left: 50%;
  bottom: -1.5rem;
  z-index: 4;
  width: clamp(28rem, 52vw, 50rem);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  translate: -50% 0;
  transform: translateY(86%);
  transform-origin: 50% 100%;
  transition: filter 420ms ease;
  will-change: transform;
}

.ground-peek img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 1rem 0 rgba(35, 119, 160, 0.12));
  transition: opacity 180ms ease;
}

.ground-peek.ground-concealed img {
  visibility: hidden;
  opacity: 0;
}

.ground-peek:hover {
  transform: translateY(83.5%);
}

.ground-peek:focus {
  outline: none;
}

.ground-peek:focus-visible {
  filter: drop-shadow(0 0 0.4rem rgba(255, 255, 255, 0.72));
}

.ground-peek.ground-wiggle {
  animation: ground-hair-wiggle 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ground-peek.ground-rising {
  animation: ground-rise 1550ms cubic-bezier(0.16, 0.92, 0.2, 1) both;
}

.ground-peek.ground-raised {
  transform: translateY(50%);
  animation: ground-face-breathe 3.2s ease-in-out 980ms infinite;
}

.ground-peek.ground-lowering {
  animation: ground-lower 1850ms cubic-bezier(0.42, 0, 0.22, 1) both;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: var(--interface-backdrop);
  backdrop-filter: none;
}

.modal-layer[hidden],
.info-modal[hidden] {
  display: none;
}

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

.info-modal {
  --modal-padding: clamp(1.45rem, 4vw, 2.2rem);
  --modal-control-inset: var(--modal-padding);
  --window-brand-content-gap: clamp(1.8rem, 3vw, 2.35rem);
  position: relative;
  width: min(88vw, 31rem);
  max-height: min(82svh, 46rem);
  overflow: auto;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: var(--border-thin) solid rgba(0, 0, 0, 0.84);
  border-radius: var(--radius-control);
  padding: var(--modal-padding);
  box-shadow: 0 1.6rem 4rem rgba(16, 88, 125, 0.32);
  animation: modal-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: rgba(52, 63, 69, 0.62) rgba(52, 63, 69, 0.12);
}

.info-modal::-webkit-scrollbar {
  width: 0.72rem;
}

.info-modal::-webkit-scrollbar-track {
  background: rgba(52, 63, 69, 0.12);
}

.info-modal::-webkit-scrollbar-thumb {
  background: rgba(52, 63, 69, 0.62);
  border: var(--border-thin) solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
}

.info-modal h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0;
}

.page-brand {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 4rem);
  min-height: 3.4rem;
  gap: clamp(0.65rem, 1.5vw, 1rem);
  margin: 0 0 clamp(1.35rem, 3vw, 2rem);
}

.page-brand > :is(img, .brand-home-link) {
  display: block;
  width: clamp(9.5rem, 22vw, 13.5rem);
  flex: 0 1 auto;
  min-width: 0;
}

.brand-home-link {
  appearance: none;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.brand-home-link img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-home-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.28rem;
}

.page-brand-divider {
  align-self: stretch;
  width: var(--border-thin);
  min-height: 3.2rem;
  background: currentColor;
  opacity: 0.72;
  flex: 0 0 auto;
}

.page-brand h2,
.page-brand-name {
  margin: 0;
  font-size: var(--home-nav-font-size);
  font-weight: 400;
  line-height: 1.05;
  white-space: nowrap;
  flex: 0 0 auto;
}

.window-brand {
  width: max-content;
  max-width: calc(100% - 5.5rem);
  flex: 0 0 auto;
  min-height: 3.4rem;
  gap: clamp(0.65rem, 1.5vw, 1rem);
  margin: 0 0 var(--window-brand-content-gap);
}

.window-brand > :is(img, .brand-home-link) {
  width: clamp(9.5rem, 22vw, 13.5rem);
}

.window-brand > .page-brand-divider {
  align-self: center;
  height: 3.2rem;
  min-height: 0;
}

.window-brand > h2,
.window-brand > .page-brand-name {
  font-size: var(--home-nav-font-size);
  line-height: 1.05;
}

.page-brand img,
#wechat-qr-image {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.info-modal p {
  margin: 0 0 0.9rem;
  font-size: clamp(1rem, 2.5vw, 1.22rem);
  line-height: 1.55;
}

.contact-lines,
.modal-lines {
  display: grid;
  gap: 0.75rem;
  font-size: clamp(1rem, 2.8vw, 1.25rem);
}

.contact-intro {
  max-width: 39rem;
  margin: -0.15rem 0 1.25rem !important;
  color: rgba(5, 7, 10, 0.56);
  font-size: clamp(0.86rem, 1.8vw, 0.98rem) !important;
  line-height: 1.55 !important;
}

.contact-lines p {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: var(--border-thin) solid rgba(0, 0, 0, 0.78);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
}

.contact-icon img {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
}

.contact-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.contact-social-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}

.contact-social-link:hover span:last-child {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.contact-form label,
.admin-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.contact-form label:last-of-type {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: var(--border-thin) solid rgba(0, 0, 0, 0.78);
  border-radius: var(--radius-control);
  min-height: 3.25rem;
  padding: 0.68rem 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  width: 100%;
  min-height: 9.4rem;
  border: var(--border-thin) solid rgba(0, 0, 0, 0.78);
  border-radius: var(--radius-control);
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
}

.contact-form select,
.admin-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #05070a 50%),
    linear-gradient(135deg, #05070a 50%, transparent 50%);
  background-position:
    calc(100% - 1.05rem) 50%,
    calc(100% - 0.65rem) 50%;
  background-size: 0.42rem 0.42rem, 0.42rem 0.42rem;
  background-repeat: no-repeat;
  padding-right: 2.1rem;
}

.contact-form .solid-action,
.contact-form .form-note,
.contact-result {
  grid-column: 1 / -1;
}

.contact-result {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.2rem;
  padding: 0.95rem;
  border: var(--border-thin) solid rgba(0, 0, 0, 0.78);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.62);
}

.contact-result[hidden] {
  display: none;
}

.contact-result-title {
  margin-bottom: 0;
  font-weight: 700;
}

.submit-loader {
  width: 2rem;
  height: 2rem;
  border: 0.22rem solid rgba(5, 7, 10, 0.16);
  border-top-color: #05070a;
  border-radius: 50%;
  animation: submit-spin 820ms linear infinite;
}

.contact-result.done .submit-loader {
  animation: none;
  border-color: #05070a;
  border-top-color: #05070a;
}

.email-draft {
  width: 100%;
  min-height: 9.5rem;
  resize: vertical;
  border: var(--border-thin) solid rgba(0, 0, 0, 0.72);
  border-radius: var(--radius-control);
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: 0.92rem/1.45 var(--font-main);
}

.contact-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.modal-lines a {
  color: var(--ink);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.modal-heading {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-right: 2.7rem;
}

.modal-heading h2 {
  margin-bottom: 0;
}

.portfolio-modal {
  --modal-padding: 1rem;
  width: min(95vw, 68rem);
  height: min(96svh, 56rem);
  padding: 1rem 1.2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#blog-modal .portfolio-grid {
  align-content: start;
}

.modal-layer:has(.fullscreen-page:not([hidden])) {
  place-items: stretch;
  padding: 0;
  background: var(--interface-backdrop);
  backdrop-filter: none;
}

.info-modal.fullscreen-page {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  max-height: none;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  background: var(--interface-backdrop);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: portfolio-page-in 520ms cubic-bezier(0.16, 0.86, 0.24, 1) both;
}

.portfolio-fullscreen {
  display: block;
  padding: 6.9rem clamp(1.25rem, 4vw, 4.5rem) 4rem;
}

.content-detail-fullscreen {
  display: block;
  padding: clamp(8rem, 14vh, 9.25rem) clamp(1.25rem, 6vw, 6rem) 5rem;
}

.detail-content-column {
  width: min(100%, 62rem);
  margin: 0 auto;
  text-align: left;
}

.detail-content-column > h2 {
  margin-bottom: 1rem;
}

.detail-content-column > .detail-lead {
  margin-bottom: max(1.8rem, 1lh);
}

body.modal-exiting .fullscreen-page {
  animation: portfolio-page-out 280ms ease both;
}

.fullscreen-page .fullscreen-back-button {
  position: fixed;
  z-index: 30;
  top: 1rem;
  left: 1rem;
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 700 1.45rem/1 var(--font-main);
  cursor: pointer;
  backdrop-filter: blur(10px);
  text-shadow: 0 0.08rem 0.32rem rgba(0, 0, 0, 0.22);
  transition: background 180ms ease, transform 180ms ease, filter 180ms ease;
}

.fullscreen-page .fullscreen-back-button:hover {
  background: rgba(255, 255, 255, 0.16);
  filter: drop-shadow(0 0.35rem 0.75rem rgba(22, 101, 135, 0.16));
}

.return-icon {
  display: block;
  width: 1.15rem;
  height: auto;
  pointer-events: none;
}

.fullscreen-page .fullscreen-back-button .return-icon {
  width: 1.25rem;
  filter: invert(1) drop-shadow(0 0.08rem 0.2rem rgba(0, 0, 0, 0.2));
}

.portfolio-fullscreen .modal-heading,
.content-detail-fullscreen > .modal-heading {
  position: fixed;
  z-index: 25;
  top: 0.75rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
}

.portfolio-fullscreen .portfolio-brand-title {
  justify-content: center;
}

.top-page-brand {
  justify-content: center;
  max-width: min(72vw, 34rem);
  min-height: 2.75rem;
  margin: 0;
  gap: clamp(0.45rem, 1.2vw, 0.75rem);
}

.top-page-brand > :is(img, .brand-home-link) {
  width: clamp(8.5rem, 17vw, 12.5rem);
}

.top-page-brand .page-brand-divider {
  min-height: 2.75rem;
}

.portfolio-language-switch {
  position: fixed;
  z-index: 31;
  top: 1rem;
  right: 1rem;
}

.portfolio-language-switch .language-menu {
  left: auto;
  right: 0;
}

.portfolio-fullscreen .portfolio-filters,
.portfolio-fullscreen .portfolio-grid,
.portfolio-fullscreen .portfolio-loading,
.portfolio-fullscreen .portfolio-load-error {
  width: min(100%, 92rem);
  margin-left: auto;
  margin-right: auto;
}

.portfolio-fullscreen .portfolio-grid {
  overflow: visible;
  padding: 0 0 5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portfolio-brand-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.portfolio-brand-title h2 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}

.blog-fullscreen .portfolio-brand-title h2 {
  font-size: var(--home-nav-font-size, clamp(1.18rem, 2.45vw, 2.05rem));
}

.portfolio-brand-title img {
  display: block;
  width: clamp(2.5rem, 4.2vw, 3.5rem);
  height: clamp(2.5rem, 4.2vw, 3.5rem);
  object-fit: contain;
  flex: 0 0 auto;
}

.contact-modal {
  width: min(92vw, 44rem);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: scroll;
  padding-right: 0.5rem;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: rgba(52, 63, 69, 0.58) rgba(52, 63, 69, 0.12);
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0.1rem 0 0.2rem;
  overflow: visible;
}

.portfolio-filter {
  appearance: none;
  flex: 0 0 auto;
  min-height: 2.15rem;
  padding: 0.34rem 0.72rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font: 700 0.88rem/1 var(--font-main);
  text-shadow: 0 0.08rem 0.3rem rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
  box-shadow: 0 0.3rem 0.8rem rgba(22, 101, 135, 0.09);
}

.portfolio-filter.active {
  background: #05070a;
  color: #fff;
  text-shadow: none;
}

.portfolio-loading {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.8rem;
  color: rgba(5, 7, 10, 0.58);
  font-size: 0.95rem;
}

.portfolio-grid[hidden] {
  display: none;
}

.portfolio-loading[hidden] {
  display: none;
}

.portfolio-spinner {
  width: 2.35rem;
  height: 2.35rem;
  border: 0.22rem solid rgba(5, 7, 10, 0.16);
  border-top-color: rgba(5, 7, 10, 0.78);
  border-radius: 50%;
  animation: submit-spin 760ms linear infinite;
}

.portfolio-grid::-webkit-scrollbar {
  width: 0.7rem;
}

.portfolio-grid::-webkit-scrollbar-thumb {
  min-height: 3.5rem;
  background: rgba(52, 63, 69, 0.58);
  border-radius: 999px;
  border: var(--border-thin) solid rgba(255, 255, 255, 0.72);
}

.portfolio-grid::-webkit-scrollbar-track {
  background: rgba(52, 63, 69, 0.12);
  border-radius: 999px;
}

.portfolio-footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  margin-top: 1.1rem;
  transform: translateY(0.2rem);
}

.portfolio-load-error {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding: 0.85rem;
  border: var(--border-thin) solid rgba(138, 31, 31, 0.38);
  border-radius: var(--radius-control);
  background: rgba(255, 248, 248, 0.82);
  text-align: center;
}

.portfolio-load-error[hidden] {
  display: none;
}

.portfolio-load-error p {
  margin: 0;
  font-size: 0.92rem;
}

.portfolio-card {
  appearance: none;
  display: grid;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  border: var(--border-thin) solid rgba(92, 101, 106, 0.62);
  border-radius: var(--radius-control);
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 180ms ease, box-shadow 180ms ease;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  transform: translateY(-0.16rem);
  box-shadow: 0 0.75rem 1.7rem rgba(35, 119, 160, 0.18);
}

.portfolio-thumb {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  border: var(--border-thin) solid rgba(0, 0, 0, 0.18);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.portfolio-card .portfolio-thumb {
  aspect-ratio: 2 / 1;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.portfolio-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
}

.portfolio-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  border: var(--border-thin) dashed rgba(0, 0, 0, 0.34);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.54);
}

.mini-action,
.solid-action,
.danger-action {
  appearance: none;
  border: var(--border-thin) solid rgba(0, 0, 0, 0.82);
  border-radius: var(--radius-control);
  cursor: pointer;
  font: inherit;
}

.mini-action {
  flex: 0 0 auto;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.mini-action:disabled,
.solid-action:disabled,
.danger-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.solid-action {
  width: max-content;
  padding: 0.6rem 0.95rem;
  background: #05070a;
  color: #fff;
}

.danger-action {
  padding: 0.35rem 0.65rem;
  background: #fff;
  color: #8a1f1f;
  border-color: #8a1f1f;
}

.admin-modal {
  width: min(92vw, 52rem);
}

.admin-form {
  display: grid;
  gap: 0.85rem;
}

.admin-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.detail-modal {
  width: min(92vw, 62rem);
}

.detail-lead {
  color: rgba(5, 7, 10, 0.62);
}

.detail-blocks,
.blog-body {
  display: grid;
  gap: 1.15rem;
  white-space: pre-wrap;
}

#blog-detail-modal .blog-body {
  line-height: 2;
}

#project-detail-modal .detail-blocks {
  line-height: 2;
}

#blog-detail-modal .blog-body p,
#project-detail-modal .detail-blocks p {
  line-height: 2;
}

.blog-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.related-reading {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.25rem;
  border-top: var(--border-thin) solid rgba(5, 7, 10, 0.2);
}

.related-reading h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1rem, 2.5vw, 1.22rem);
  font-weight: 700;
  line-height: 2;
}

.related-reading-list {
  display: grid;
  gap: 0;
}

.related-reading-list button {
  appearance: none;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: clamp(1rem, 2.5vw, 1.22rem);
  font-weight: 400;
  line-height: 2;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: var(--border-thin);
  text-underline-offset: 0.2em;
}

.detail-blocks img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

#blog-detail-title {
  margin-bottom: 0.75rem;
}

#blog-detail-excerpt {
  margin: 2rem 0 1.8rem;
}

.blog-author {
  margin: 0 !important;
  color: rgba(5, 7, 10, 0.58);
  font-size: clamp(0.9rem, 1.8vw, 1.02rem) !important;
}

.blog-card-excerpt {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.3 !important;
  color: rgba(5, 7, 10, 0.62);
}

.blog-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  min-width: 0;
}

.blog-read-more {
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.custom-svg-float {
  position: absolute;
  z-index: 2;
  top: var(--float-top);
  left: 0;
  width: var(--float-width);
  pointer-events: none;
  animation: drift-left var(--float-duration) linear infinite;
  will-change: transform;
}

.custom-svg-float img {
  display: block;
  width: 100%;
  height: auto;
}

.floating-elements-list {
  display: grid;
  gap: 0.5rem;
}

.floating-element-row {
  display: grid;
  grid-template-columns: 3rem minmax(8rem, 1fr) auto auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem;
  border: var(--border-thin) solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.floating-element-row.built-in {
  grid-template-columns: 4.5rem minmax(9rem, 1fr) auto auto auto;
}

.floating-element-row.cloud-asset-row > img {
  width: 4.5rem;
  height: 3rem;
  max-height: 3rem;
}

.upload-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.floating-element-row img {
  width: 3rem;
  max-height: 2.4rem;
  object-fit: contain;
}

.floating-element-row div {
  display: grid;
  gap: 0.1rem;
}

.floating-element-row span {
  font-size: 0.8rem;
  color: rgba(5, 7, 10, 0.58);
}

.floating-upload-fieldset {
  margin: 1rem 0;
  border: var(--border-thin) solid rgba(0, 0, 0, 0.24);
  border-radius: 6px;
}

.floating-parameter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (max-width: 720px) {
  :root {
    --home-nav-font-size: clamp(1.2rem, 6.4vw, 1.75rem);
  }

  .page-brand {
    max-width: calc(100% - 3.25rem);
    min-height: 2.7rem;
    gap: 0.55rem;
    margin-bottom: 1.35rem;
  }

  .page-brand > :is(img, .brand-home-link) {
    width: clamp(7.2rem, 35vw, 9.4rem);
  }

  .page-brand-divider {
    min-height: 2.45rem;
  }

  .window-brand > .page-brand-divider {
    height: 2.45rem;
    min-height: 0;
  }

  .page-brand h2,
  .page-brand-name {
    font-size: clamp(1.05rem, 5.1vw, 1.45rem);
  }

  .top-page-brand {
    max-width: calc(100vw - 9rem);
    gap: 0.45rem;
    min-height: 2.2rem;
  }

  .top-page-brand > :is(img, .brand-home-link) {
    width: clamp(6.25rem, 28vw, 8.3rem);
  }

  .top-page-brand .page-brand-divider {
    min-height: 2.2rem;
  }

  .floating-parameter-grid {
    grid-template-columns: 1fr;
  }

  .floating-element-row,
  .floating-element-row.built-in {
    grid-template-columns: 2.6rem minmax(0, 1fr);
  }

}

.detail-end-cta {
  display: block;
  margin: 1.6rem auto 0;
  text-align: center;
  text-decoration: none;
}

.detail-end-cta[hidden] {
  display: none;
}

.inline-detail-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 8rem;
  color: rgba(5, 7, 10, 0.58);
}

.detail-blocks p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.65;
  white-space: pre-wrap;
}

.detail-pdf-link {
  display: inline-block;
  margin-top: 1.25rem;
  text-decoration: none;
}

.detail-pdf-link[hidden] {
  display: none;
}

.block-add-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.file-action {
  cursor: pointer;
}

.file-action input {
  display: none;
}

.block-editor-list {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.content-block-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem;
  border: 1px solid rgba(5, 7, 10, 0.2);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.58);
}

.content-block-row textarea {
  width: 100%;
  margin-bottom: 0.45rem;
  border: var(--border-thin) solid rgba(0, 0, 0, 0.62);
  border-radius: var(--radius-control);
  padding: 0.65rem;
  font: inherit;
}

.content-block-row img {
  display: block;
  width: min(100%, 28rem);
  border-radius: 6px;
}

.editor-project-name {
  color: rgba(5, 7, 10, 0.62);
}

.module-card {
  appearance: none;
  display: grid;
  gap: 0.4rem;
  min-height: 8rem;
  text-align: left;
  border: var(--border-thin) solid rgba(0, 0, 0, 0.78);
  border-radius: var(--radius-control);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.module-card:hover,
.module-card:focus-visible {
  box-shadow: 0 0.75rem 1.7rem rgba(35, 119, 160, 0.18);
  transform: translateY(-0.12rem);
}

.module-card strong {
  font-size: 1.25rem;
}

.module-card span {
  color: rgba(0, 0, 0, 0.66);
  line-height: 1.35;
}

.admin-tabs {
  display: flex;
  gap: 0.45rem;
}

.admin-tab {
  appearance: none;
  border: var(--border-thin) solid rgba(0, 0, 0, 0.72);
  border-radius: var(--radius-control);
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
}

.admin-tab.active {
  background: #05070a;
  color: #fff;
}

.admin-language-panel {
  display: grid;
  gap: 0.85rem;
}

.admin-language-panel[hidden] {
  display: none;
}

.field-hint {
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.84rem;
  line-height: 1.3;
}

.blog-tag-manager {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: var(--border-thin) solid rgba(5, 7, 10, 0.2);
}

.blog-tag-manager h3,
.blog-tag-manager p {
  margin: 0;
}

.blog-tag-manager-list {
  display: grid;
  gap: 0.55rem;
}

.blog-tag-manager-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.blog-tag-manager-row input {
  width: 100%;
  min-width: 0;
  min-height: 2.55rem;
  padding: 0.55rem 0.65rem;
  border: var(--border-thin) solid rgba(5, 7, 10, 0.72);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.blog-tag-manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0.8rem;
  border: var(--border-thin) solid rgba(5, 7, 10, 0.34);
  border-radius: var(--radius-control);
}

.tag-fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.95rem;
}

.tag-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.tag-checkbox-grid label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 0.48rem;
  min-width: 0;
  cursor: pointer;
}

.tag-checkbox-grid input {
  width: 1.05rem;
  min-height: 1.05rem;
  flex: 0 0 auto;
  accent-color: #05070a;
}

.toggle-label {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
}

.toggle-label input {
  width: 1.1rem !important;
  min-height: 1.1rem !important;
  accent-color: #05070a;
}

.cta-fields {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.cta-fields[hidden] {
  display: none;
}

.admin-form input[type="file"] {
  padding: 0.55rem;
}

.form-note,
.form-error {
  margin: 0;
  font-size: 0.92rem;
}

.form-note {
  color: rgba(0, 0, 0, 0.62);
}

.form-error {
  color: #8a1f1f;
}

.admin-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.admin-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.16);
  padding-top: 0.7rem;
}

.admin-item.editing {
  margin-inline: -0.45rem;
  padding: 0.7rem 0.45rem 0.45rem;
  border: var(--border-thin) solid rgba(0, 0, 0, 0.72);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.62);
}

.admin-item-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: linear-gradient(135deg, #dff7ff, #58bfe5 52%, #fff);
  overflow: hidden;
}

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

.admin-item h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.admin-item p {
  margin: 0;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.modal-controls {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  width: 100%;
  height: 0;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.35rem;
  pointer-events: none;
}

.modal-controls > .modal-close,
.modal-controls > .modal-back {
  position: relative;
  top: auto;
  right: auto;
  flex: 0 0 auto;
  pointer-events: auto;
}

.modal-controls > .modal-back {
  order: 1;
}

.modal-controls > .modal-close {
  order: 2;
}

.modal-close {
  z-index: 40;
  display: grid;
  place-items: center;
  margin: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: var(--border-thin) solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  backdrop-filter: blur(9px);
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.15rem;
  height: 0.16rem;
  border-radius: 999px;
  background: var(--ink);
  transform-origin: center;
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-back {
  z-index: 40;
  margin: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: var(--border-thin) solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: 400 1.75rem/1 var(--font-main);
  cursor: pointer;
  backdrop-filter: blur(9px);
}

.admin-modal > .modal-heading {
  transform: translateY(calc(var(--modal-control-inset) - var(--modal-padding)));
  align-items: center;
  margin-bottom: calc(1rem + var(--modal-control-inset) - var(--modal-padding));
}

.info-modal > h2:first-of-type,
.info-modal > .modal-heading {
  padding-right: 5rem;
}

.info-modal:not(:has(.modal-back:not([hidden]))) > h2:first-of-type,
.info-modal:not(:has(.modal-back:not([hidden]))) > .modal-heading {
  padding-right: 2.6rem;
}

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

.modal-close:hover,
.modal-back:hover {
  background: rgba(5, 7, 10, 0.08);
}

.modal-close:focus-visible,
.modal-back:focus-visible,
.about-instagram:focus-visible,
.about-portfolio-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(5, 7, 10, 0.14);
}

.cloud-button:focus-visible,
.custom-cloud:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 0.35rem rgba(255, 255, 255, 0.7));
}

.about-instagram {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  border: var(--border-thin) solid rgba(5, 7, 10, 0.72);
  border-radius: 50%;
  color: var(--ink);
  transition: transform 180ms ease, background 180ms ease;
}

.about-modal {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-layer:has(.about-fullscreen:not([hidden])) {
  place-items: stretch;
  padding: 0;
  background: transparent;
}

.about-fullscreen {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100svh;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.about-scene {
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(24rem, 1.08fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  width: min(92vw, 92rem);
  height: 100%;
  margin: 0 auto;
  padding: clamp(5.5rem, 10vh, 7.5rem) clamp(1rem, 2vw, 2rem) clamp(2.25rem, 6vh, 4.5rem);
}

.about-portrait {
  display: grid;
  place-items: center;
  min-width: 0;
  opacity: 0;
  user-select: none;
  -webkit-touch-callout: none;
  transform-origin: 48% 65%;
  animation: about-portrait-in 980ms cubic-bezier(0.16, 0.9, 0.22, 1) 620ms both;
}

.about-portrait img {
  display: block;
  width: min(100%, 31rem);
  max-height: min(72svh, 34rem);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.about-copy-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: min(72svh, 43rem);
  opacity: 0;
  animation: about-copy-in 880ms cubic-bezier(0.16, 0.9, 0.22, 1) 820ms both;
}

.about-fullscreen .about-scroll-content {
  min-height: 0;
  overflow-y: auto;
  margin: 0;
  padding: 0 clamp(0.7rem, 1.4vw, 1.15rem) 0 0;
  scrollbar-gutter: stable;
}

.about-fullscreen .about-scroll-content p {
  margin: 0;
  font-size: clamp(1.22rem, 2vw, 2rem);
  line-height: 1.35;
}

.about-fullscreen .about-scroll-content p + p {
  margin-top: clamp(1.5rem, 3.5vh, 2.4rem);
}

.about-fullscreen .about-actions {
  margin-top: clamp(1.4rem, 4vh, 2.7rem);
  padding-right: clamp(0.7rem, 1.4vw, 1.15rem);
  padding-top: clamp(0.85rem, 2vh, 1.25rem);
  border-top-color: rgba(5, 7, 10, 0.2);
}

body.modal-exiting .about-portrait {
  animation: about-portrait-out 260ms ease both;
}

body.modal-exiting .about-copy-panel {
  animation: about-copy-out 260ms ease both;
}

.about-scroll-content {
  min-height: 0;
  overflow-y: auto;
  margin-right: calc(-1 * var(--modal-padding));
  padding-right: calc(var(--modal-padding) - 0.2rem);
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: rgba(52, 63, 69, 0.62) rgba(52, 63, 69, 0.12);
}

.about-scroll-content::-webkit-scrollbar {
  width: 0.72rem;
}

.about-scroll-content::-webkit-scrollbar-track {
  background: rgba(52, 63, 69, 0.12);
}

.about-scroll-content::-webkit-scrollbar-thumb {
  background: rgba(52, 63, 69, 0.62);
  border: var(--border-thin) solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
}

.about-actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(5, 7, 10, 0.12);
}

.about-social-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.about-primary-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.about-return-button .return-icon {
  width: 1.15rem;
  filter: none;
}

.about-portfolio-link {
  appearance: none;
  height: 2.5rem;
  padding: 0 0.8rem;
  border: var(--border-thin) solid rgba(5, 7, 10, 0.72);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 0.9rem/1 var(--font-main);
}

.about-instagram:hover,
.about-instagram:focus-visible {
  transform: translateY(-0.12rem);
  background: rgba(5, 7, 10, 0.08);
}

.about-instagram svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.about-instagram .wechat-icon {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
}

button.about-instagram {
  appearance: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.wechat-content {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.wechat-intro {
  color: rgba(5, 7, 10, 0.62);
  font-size: clamp(0.9rem, 2vw, 1rem) !important;
  line-height: 1.55 !important;
}

.wechat-qr-frame {
  width: min(100%, 21rem, max(9rem, calc(82svh - 12.5rem)));
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  align-self: center;
  overflow: hidden;
  margin-top: 0.8rem;
  border: var(--border-thin) solid rgba(5, 7, 10, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(5, 7, 10, 0.48);
  text-align: center;
}

.wechat-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 721px) and (max-height: 850px) {
  .ground-peek {
    width: clamp(28rem, min(52vw, 78svh), 42rem);
  }

  .info-modal:not(.fullscreen-page) {
    --modal-padding: clamp(1rem, 2.8vh, 1.45rem);
  }

  .info-modal:not(.fullscreen-page) .window-brand {
    min-height: 2.8rem;
  }

  .info-modal:not(.fullscreen-page) .window-brand > :is(img, .brand-home-link) {
    width: min(10rem, 32vw);
  }

  .info-modal:not(.fullscreen-page) .window-brand > .page-brand-divider {
    height: 2.8rem;
    min-height: 0;
  }

  .wechat-intro {
    margin-bottom: 0.35rem !important;
  }

  .wechat-qr-frame {
    width: min(100%, 18rem, max(9rem, calc(82svh - 10rem)));
    margin-top: 0.3rem;
  }
}

.wechat-qr-frame.has-image span {
  display: none;
}

.site-footer {
  position: fixed;
  left: 50%;
  bottom: 0.7rem;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  translate: -50% 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.66rem, 1.6vw, 0.78rem);
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 0.08rem 0.28rem rgba(0, 0, 0, 0.16);
}

@keyframes title-bloom {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(1.2rem);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes title-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes hero-settle {
  from {
    transform: translateY(0.6vh) scale(0.99);
  }
  to {
    transform: translateY(-1.2vh) scale(1);
  }
}

@keyframes drift-left {
  from {
    transform: translateX(125vw);
  }
  to {
    transform: translateX(-165vw);
  }
}

@keyframes cloud-breathe {
  0%,
  100% {
    transform: translateY(0) scaleX(1);
  }
  50% {
    transform: translateY(-0.45rem) scaleX(1.015);
  }
}

@keyframes cloud-birth {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.12);
  }
  to {
    opacity: 0.92;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes custom-drift {
  from {
    translate: -50% -50%;
  }
  to {
    translate: -185vw -50%;
  }
}

@keyframes cloud-pop {
  to {
    opacity: 0;
    filter: blur(16px);
    scale: 1.1;
  }
}

@keyframes peek-sway {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(0.5rem) rotate(1deg);
  }
}

@keyframes ground-hair-wiggle {
  0%,
  100% {
    transform: translateY(86%) rotate(0deg) scale(1);
  }
  18% {
    transform: translateY(84.8%) rotate(-1.4deg) scale(1.006);
  }
  36% {
    transform: translateY(85.5%) rotate(1.25deg) scale(1.004);
  }
  54% {
    transform: translateY(84.9%) rotate(-0.8deg) scale(1.005);
  }
  72% {
    transform: translateY(85.8%) rotate(0.45deg) scale(1.002);
  }
}

@keyframes ground-rise {
  0% {
    transform: translateY(86%) rotate(0deg) scale(1);
  }
  18% {
    transform: translateY(83.8%) rotate(-0.45deg) scale(1.002);
  }
  62% {
    transform: translateY(47.8%) rotate(0.2deg) scale(1.004);
  }
  78% {
    transform: translateY(51.4%) rotate(-0.12deg) scale(1.001);
  }
  100% {
    transform: translateY(50%) rotate(0deg) scale(1);
  }
}

@keyframes ground-face-breathe {
  0%,
  100% {
    transform: translateY(50%) rotate(0deg) scale(1);
  }
  40% {
    transform: translateY(49.25%) rotate(-0.35deg) scale(1.002);
  }
  72% {
    transform: translateY(50.45%) rotate(0.25deg) scale(1);
  }
}

@keyframes ground-lower {
  0% {
    transform: translateY(50%) rotate(0deg) scale(1);
  }
  18% {
    transform: translateY(48.8%) rotate(0.16deg) scale(1.001);
  }
  46% {
    transform: translateY(63.5%) rotate(-0.12deg) scale(0.999);
  }
  78% {
    transform: translateY(83.9%) rotate(0.06deg) scale(1);
  }
  100% {
    transform: translateY(86%) rotate(0deg) scale(1);
  }
}

@keyframes submit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes about-home-dissolve {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
  46% {
    opacity: 0.32;
    filter: blur(5px);
    transform: scale(1.008);
  }
  100% {
    opacity: 0;
    filter: blur(16px);
    transform: scale(1.018);
  }
}

@keyframes about-portrait-in {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform: translate3d(-3.5rem, 1.5rem, 0) scale(0.92);
  }
  66% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0.3rem, -0.18rem, 0) scale(1.008);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes about-copy-in {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translate3d(3.5rem, 0.8rem, 0);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes about-portrait-out {
  from { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0; filter: blur(10px); transform: translate3d(-1.5rem, 0.7rem, 0) scale(0.97); }
}

@keyframes about-copy-out {
  from { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
  to { opacity: 0; filter: blur(9px); transform: translate3d(1.8rem, 0, 0); }
}

@keyframes portfolio-page-in {
  from { opacity: 0; filter: blur(12px); transform: scale(1.015); }
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}

@keyframes portfolio-page-out {
  from { opacity: 1; filter: blur(0); transform: scale(1); }
  to { opacity: 0; filter: blur(10px); transform: scale(1.008); }
}

@media (max-width: 720px) {
  .about-scene {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(8rem, 30svh) minmax(0, 1fr);
    gap: clamp(0.45rem, 1.5vh, 0.9rem);
    width: 100%;
    padding: 4.15rem 1.4rem 1.25rem;
  }

  .about-portrait {
    align-self: stretch;
  }

  .about-portrait img {
    width: min(54vw, 15rem);
    max-height: 29svh;
  }

  .about-copy-panel {
    max-height: none;
    height: 100%;
  }

  .about-fullscreen .about-scroll-content p {
    font-size: clamp(1rem, 4.35vw, 1.24rem);
    line-height: 1.42;
  }

  .about-fullscreen .about-scroll-content p + p {
    margin-top: 1rem;
  }

  .about-fullscreen .about-actions {
    margin-top: 0.7rem;
    padding-top: 0.65rem;
  }

  .about-primary-actions {
    gap: 0.55rem;
  }

  .about-social-actions {
    gap: 0.42rem;
  }

  .hero {
    width: min(88vw, 34rem);
    transform: translateY(-4vh);
  }

  .portfolio-modal {
    width: min(94vw, 38rem);
    height: min(88svh, 46rem);
  }

  .portfolio-fullscreen {
    width: 100vw;
    height: 100svh;
    padding: 6.2rem 0.9rem 3rem;
  }

  .content-detail-fullscreen {
    width: 100vw;
    height: 100svh;
    padding: 7.2rem 1.25rem 3.5rem;
  }

  .portfolio-fullscreen .modal-heading,
  .content-detail-fullscreen > .modal-heading {
    top: 1.15rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: calc(100vw - 5rem);
  }

  .portfolio-language-switch {
    top: 1rem;
    right: 0.65rem;
  }

  .portfolio-language-switch .language-toggle {
    gap: 0.38rem;
    padding-inline: 0.55rem;
  }

  .portfolio-language-switch .language-globe {
    width: 1.2rem;
    height: 1.2rem;
  }

  .portfolio-fullscreen .portfolio-brand-title {
    gap: 0.45rem;
  }

  .portfolio-fullscreen .portfolio-brand-title h2 {
    font-size: clamp(1.05rem, 5.1vw, 1.55rem);
  }

  .blog-fullscreen .portfolio-brand-title h2 {
    font-size: var(--home-nav-font-size, clamp(1.2rem, 6.4vw, 1.75rem));
  }

  .portfolio-fullscreen .portfolio-brand-title img {
    width: 1.85rem;
    height: 1.85rem;
  }

  .portfolio-fullscreen .portfolio-grid {
    grid-template-columns: 1fr;
    padding-bottom: 3rem;
  }

  .portfolio-fullscreen .portfolio-filters {
    scrollbar-width: thin;
  }

  .portfolio-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .portfolio-card .portfolio-thumb {
    aspect-ratio: 2 / 1;
  }

  .content-block-row {
    grid-template-columns: 1fr;
  }

  .content-block-row .admin-actions {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .eyebrow {
    margin-bottom: 0.8rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 1.9rem;
  }

  .hero-link {
    font-size: var(--home-nav-font-size, clamp(1.2rem, 6.4vw, 1.75rem));
  }

  .top-tools {
    top: 0.75rem;
    left: 0.75rem;
  }

  .language-toggle {
    min-height: 2.25rem;
    gap: 0.52rem;
    padding: 0.28rem 0.62rem;
    font-size: 1rem;
  }

  .language-globe {
    width: 1.24rem;
    height: 1.24rem;
    stroke-width: 2.35;
  }

  .language-caret {
    border-left-width: 0.28rem;
    border-right-width: 0.28rem;
    border-top-width: 0.36rem;
  }

  .language-menu {
    left: 1.35rem;
    min-width: 5rem;
  }

  .language-menu button {
    min-height: 2.85rem;
    font-size: 1rem;
  }

  .cloud-lane {
    transform: scale(0.74);
  }

  .lane-a,
  .lane-d,
  .lane-e,
  .lane-g,
  .lane-k,
  .lane-l,
  .lane-m,
  .lane-n,
  .lane-o {
    display: none;
  }

  .lane-b {
    top: 12%;
    animation-duration: 40s;
  }

  .lane-c {
    top: 72%;
    animation-duration: 50s;
  }

  .lane-f {
    top: 34%;
    animation-duration: 48s;
  }

  .lane-h {
    top: 22%;
    animation-duration: 64s;
  }

  .lane-j {
    top: 86%;
    animation-duration: 58s;
  }

  .peekaboo {
    margin-left: 74vw;
  }

  .ground-peek {
    bottom: -0.35rem;
    width: min(82vw, 21rem);
    transform: translateY(82%);
  }

  .ground-peek:hover {
    transform: translateY(80.9%);
  }

  .ground-peek.ground-wiggle {
    animation-name: ground-hair-wiggle-mobile;
  }

  .ground-peek.ground-rising {
    animation-name: ground-rise-mobile;
  }

  .ground-peek.ground-raised {
    transform: translateY(51%);
    animation-name: ground-face-breathe-mobile;
  }

  .ground-peek.ground-lowering {
    animation-name: ground-lower-mobile;
  }

  .contact-form,
  .admin-module-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    max-height: min(52svh, 32rem);
  }

  .modal-heading {
    gap: 1rem;
    padding-right: 2.2rem;
  }

  .admin-item {
    grid-template-columns: 4.2rem 1fr;
  }

  .admin-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .site-footer {
    max-width: 92vw;
    white-space: normal;
    justify-content: center;
    text-align: center;
  }

  @keyframes ground-hair-wiggle-mobile {
    0%,
    100% {
      transform: translateY(82%) rotate(0deg) scale(1);
    }
    24% {
      transform: translateY(81.3%) rotate(-1.1deg) scale(1.004);
    }
    48% {
      transform: translateY(81.8%) rotate(0.9deg) scale(1.003);
    }
    72% {
      transform: translateY(81.5%) rotate(-0.45deg) scale(1.002);
    }
  }

  @keyframes ground-rise-mobile {
    0% {
      transform: translateY(82%) rotate(0deg) scale(1);
    }
    20% {
      transform: translateY(80.8%) rotate(-0.35deg) scale(1.001);
    }
    64% {
      transform: translateY(49.5%) rotate(0.18deg) scale(1.003);
    }
    80% {
      transform: translateY(52.2%) rotate(-0.1deg) scale(1.001);
    }
    100% {
      transform: translateY(51%) rotate(0deg) scale(1);
    }
  }

  @keyframes ground-face-breathe-mobile {
    0%,
    100% {
      transform: translateY(51%) rotate(0deg) scale(1);
    }
    42% {
      transform: translateY(50.25%) rotate(-0.25deg) scale(1.0015);
    }
    74% {
      transform: translateY(51.35%) rotate(0.18deg) scale(1);
    }
  }

  @keyframes ground-lower-mobile {
    0% {
      transform: translateY(51%) rotate(0deg) scale(1);
    }
    20% {
      transform: translateY(50.3%) rotate(0.12deg) scale(1.001);
    }
    50% {
      transform: translateY(64%) rotate(-0.1deg) scale(0.999);
    }
    78% {
      transform: translateY(80.8%) rotate(0.05deg) scale(1);
    }
    100% {
      transform: translateY(82%) rotate(0deg) scale(1);
    }
  }
}

@media (max-width: 560px) {
  .blog-tag-manager-row {
    grid-template-columns: 1fr;
  }

  .blog-tag-manager-row .danger-action {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
