﻿@font-face {
  font-family: "NekoPuraLogo";
  src: url("assets/fonts/myt.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #f5f7fb;
  --panel: rgba(255, 255, 255, 0.88);
  --text: #17213a;
  --muted: #7a849b;
  --line: #e3e8f2;
  --blue: #1f61f2;
  --blue-dark: #174fca;
  --shadow: 0 18px 45px rgba(38, 67, 118, 0.14);
}


body.dark-mode {
  --bg: #000;
  --panel: rgba(0, 0, 0, 0.92);
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --line: rgba(255, 255, 255, 0.16);
  --blue: #6ea8ff;
  --blue-dark: #4d8ff0;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.72);
  background: #000;
}

body.dark-mode .topbar,
body.dark-mode .content-grid article,
body.dark-mode .profile-panel,
body.dark-mode .dropdown-menu,
body.dark-mode .contact-modal {
  border-color: rgba(255, 255, 255, 0.16);
  background: #000;
}

body.dark-mode .dropdown-menu a,
body.dark-mode .dropdown-menu .contact-action,
body.dark-mode .profile-panel strong,
body.dark-mode .secondary-action,
body.dark-mode .modal-actions a,
body.dark-mode .contact-modal h2 {
  color: #f5f5f5;
}

body.dark-mode .intro,
body.dark-mode .content-grid p,
body.dark-mode .profile-panel p {
  color: #a3a3a3;
}

body.dark-mode .secondary-action,
body.dark-mode .modal-actions a,
body.dark-mode .modal-close {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .theme-toggle {
  color: #f5f5f5;
}

body.dark-mode .primary-action {
  color: #000;
  background: #f5f5f5;
}

body.dark-mode .modal-backdrop {
  background: rgba(0, 0, 0, 0.72);
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.dark-mode {
  color-scheme: dark;
  background: #000;
}

::view-transition-old(root),
::view-transition-new(root) {
  mix-blend-mode: normal;
  animation-duration: 480ms;
  animation-timing-function: ease-in-out;
}

::view-transition-old(root) {
  animation-name: theme-fade-out;
}

::view-transition-new(root) {
  animation-name: theme-fade-in;
}

@keyframes theme-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes theme-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

html.theme-transitioning,
html.theme-transitioning body,
html.theme-transitioning .topbar,
html.theme-transitioning .dropdown-menu,
html.theme-transitioning .mobile-nav,
html.theme-transitioning .contact-modal,
html.theme-transitioning .site-footer,
html.theme-transitioning .primary-action,
html.theme-transitioning .secondary-action,
html.theme-transitioning .modal-close,
html.theme-transitioning .modal-actions a,
html.theme-transitioning .footer-contact {
  transition: background-color 480ms ease, color 480ms ease, border-color 480ms ease, box-shadow 480ms ease;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 16%, rgba(31, 97, 242, 0.12), transparent 28%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 48%, #eef3fb 100%);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 480ms ease, visibility 480ms ease;
}

html.dark-mode body::after,
body.dark-mode::after {
  opacity: 1;
  visibility: visible;
}

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

button {
  font: inherit;
}

.action-loading-content {
  display: contents;
}

.action-loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: action-loading-spin 620ms linear infinite;
}

.is-action-loading {
  position: relative;
  cursor: wait;
  pointer-events: none;
}

.is-action-loading .action-loading-content {
  visibility: hidden;
}

.is-action-loading .action-loading-spinner {
  opacity: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 18px 8px;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 590px);
  min-height: 64px;
  margin: 0 auto;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

body.is-loading .topbar {
  clip-path: inset(0 calc(100% - 250px) 0 0 round 24px);
}

body.is-ready .topbar {
  animation: topbar-expand 720ms cubic-bezier(0.16, 1, 0.3, 1) 520ms both;
}

body.is-ready .brand {
  animation: topbar-brand-in 300ms ease-out 300ms both;
}

body.is-ready .topbar > .divider {
  animation: topbar-content-in 360ms ease-out 820ms both;
}

body.is-ready .topbar > .nav-item {
  animation: topbar-content-in 360ms ease-out 900ms both;
}

body.is-ready .theme-toggle {
  animation: topbar-content-in 360ms ease-out 980ms both;
}

body.is-ready .mobile-menu-toggle {
  animation: topbar-content-in 360ms ease-out 900ms both;
}

@keyframes topbar-expand {
  from {
    clip-path: inset(0 calc(100% - 250px) 0 0 round 24px);
  }

  99% {
    clip-path: inset(0 0 0 0 round 24px);
  }

  to {
    clip-path: none;
  }
}

@keyframes topbar-brand-in {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }

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

@keyframes topbar-content-in {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }

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

@keyframes topbar-expand-mobile {
  from {
    clip-path: inset(0 calc(50% - 105px) 0 calc(50% - 105px) round 20px);
  }

  99% {
    clip-path: inset(0 0 0 0 round 20px);
  }

  to {
    clip-path: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 1ms;
  }

  body.is-ready .topbar,
  body.is-ready .brand,
  body.is-ready .topbar > .divider,
  body.is-ready .topbar > .nav-item,
  body.is-ready .theme-toggle,
  body.is-ready .mobile-menu-toggle {
    animation-duration: 1ms;
    animation-delay: 0ms;
  }
}

.mobile-menu-toggle,
.mobile-nav {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 226px;
}

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, #d8efff 0%, #fff3c8 56%, #ffb7a9 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}


.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.sun {
  position: absolute;
  right: 11px;
  top: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffcf66;
}

.wave {
  position: absolute;
  left: -8px;
  right: -8px;
  height: 17px;
  border-radius: 50%;
  background: rgba(57, 152, 230, 0.72);
}

.wave-one {
  bottom: 7px;
  transform: rotate(-8deg);
}

.wave-two {
  bottom: -5px;
  background: rgba(32, 96, 197, 0.78);
  transform: rotate(8deg);
}

.mast {
  position: absolute;
  left: 27px;
  bottom: 18px;
  width: 4px;
  height: 28px;
  border-radius: 999px;
  background: #ffffff;
}

.mast::before,
.mast::after {
  content: "";
  position: absolute;
  left: 4px;
  border-style: solid;
}

.mast::before {
  top: 3px;
  border-width: 8px 0 8px 17px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.94);
}

.mast::after {
  top: 16px;
  border-width: 5px 0 5px 12px;
  border-color: transparent transparent transparent rgba(255, 120, 116, 0.9);
}


.brand-image-wrap {
  display: flex;
  align-items: center;
  width: 178px;
  height: 42px;
  overflow: hidden;
}

.brand-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.brand-text {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-name {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.brand-name.wordmark {
  color: #17213a;
  font-family: "NekoPuraLogo", Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  -webkit-text-stroke: 0.35px currentColor;
  text-shadow: none;
  white-space: nowrap;
}

.divider {
  width: 1px;
  height: 32px;
  flex: 0 0 1px;
  background: var(--line);
}

.nav-link,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease;
}

.nav-link {
  gap: 7px;
  min-width: 98px;
  padding: 10px 0;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.theme-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: #12203a;
}

.theme-toggle svg {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  transform: translate(-50%, -50%);
}

.nav-link:hover,

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  transition: opacity 260ms ease, transform 260ms ease;
}

.theme-toggle .moon-icon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72) rotate(-18deg);
}

.theme-toggle .sun-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

body.dark-mode .theme-toggle .sun-icon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72) rotate(18deg);
}

body.dark-mode .theme-toggle .moon-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}
.theme-toggle:hover {
  color: #24334f;
  transform: translateY(-1px);
}


.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-toggle svg {
  transition: transform 180ms ease;
}

.dropdown:hover .dropdown-toggle,
.dropdown.is-open .dropdown-toggle {
  color: #24334f;
}

.dropdown:hover .dropdown-toggle svg,
.dropdown.is-open .dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 30;
  display: grid;
  width: 276px;
  padding: 8px;
  border: 1px solid rgba(226, 232, 243, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(38, 67, 118, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 170ms ease, transform 170ms ease, visibility 170ms ease;
  backdrop-filter: blur(18px);
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 14px;
}

.dropdown:hover .dropdown-menu,
.dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-menu a,
.dropdown-menu .contact-action {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: #24334f;
  font-size: 14px;
  font-weight: 800;
  white-space: normal;
  line-height: 1.35;
  transition: background 150ms ease, color 150ms ease;
}


.contact-menu a {
  gap: 10px;
}
.dropdown-menu a:hover,
.dropdown-menu .contact-action:hover {
  color: #1f61f2;
  background: rgba(31, 97, 242, 0.08);
}
main {
  flex: 1 0 auto;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
}

.works-page {
  display: flex;
  align-items: flex-start;
  padding: 48px 0 64px;
}

.works-list {
  width: 100%;
}

.works-title {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 36px;
  line-height: 1.2;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.work-card img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.work-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 24px;
}

.work-card-body p {
  flex: 1;
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
}

.work-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 160ms ease, transform 160ms ease;
}

.work-card-link:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

body.dark-mode .work-card-link {
  color: #000;
  background: #f5f5f5;
}

body.dark-mode .work-card {
  background: #000;
}

.works-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

.works-more p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.works-home-link {
  min-width: 104px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: end;
  gap: 28px;
  min-height: 470px;
  padding: 54px 0 48px;
}

.hero-copy {
  transform: translateY(clamp(52px, 6vh, 72px));
}

.hero-visual {
  position: relative;
  align-self: center;
  width: 100%;
  aspect-ratio: 1;
  transform: translateY(clamp(62px, 8vh, 88px));
}

.hero-visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 480ms ease;
}

.hero-visual-dark {
  opacity: 0;
}

html.dark-mode .hero-visual-light,
body.dark-mode .hero-visual-light {
  opacity: 0;
}

html.dark-mode .hero-visual-dark,
body.dark-mode .hero-visual-dark {
  opacity: 1;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.typewriter-title {
  position: relative;
}

.typewriter-placeholder {
  visibility: hidden;
}

.typewriter-text {
  position: absolute;
  inset: 0;
}

.typewriter-text::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.86em;
  margin-left: 0.08em;
  border-radius: 2px;
  background: currentColor;
  opacity: 0;
  vertical-align: -0.03em;
}

.typewriter-title.is-typing .typewriter-text::after,
.typewriter-title.is-typed .typewriter-text::after {
  opacity: 1;
  animation: typewriter-caret 720ms steps(1, end) infinite;
}

.typewriter-title.is-finished .typewriter-text::after {
  opacity: 1;
  animation: typewriter-caret-out 360ms ease forwards;
}

@keyframes typewriter-caret {
  0%, 48% {
    opacity: 1;
  }

  49%, 100% {
    opacity: 0;
  }
}

@keyframes typewriter-caret-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.intro {
  max-width: 560px;
  margin: 20px 0 0;
  color: #586276;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.site-footer {
  width: 100%;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  line-height: 1.5;
}

.footer-inner {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  width: min(100% - 48px, 1560px);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  width: 190px;
  height: 52px;
  overflow: hidden;
}

.footer-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  min-width: 0;
}

.footer-meta a {
  transition: color 160ms ease;
}

.footer-meta a:hover {
  color: var(--blue);
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  color: var(--blue);
  background: rgba(31, 97, 242, 0.09);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.footer-contact:hover {
  color: #fff;
  background: var(--blue);
}

.footer-contact svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

body.dark-mode .site-footer {
  background: transparent;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 800;
}

.primary-action {
  color: #fff;
  background: #17213a;
}

.secondary-action {
  border: 0;
  color: #17213a;
  background: #fff;
  box-shadow: 0 10px 28px rgba(38, 67, 118, 0.1);
  cursor: pointer;
}

.profile-panel {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(38, 67, 118, 0.12);
}

.status-dot {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: #24c78e;
  box-shadow: 0 0 0 8px rgba(36, 199, 142, 0.13);
}

.profile-panel p {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 800;
}

.profile-panel strong {
  display: block;
  font-size: 23px;
  line-height: 1.25;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 0 56px;
}

.content-grid article {
  min-height: 180px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 34px rgba(38, 67, 118, 0.08);
}

.content-grid span {
  color: var(--blue);
  font-weight: 800;
}

.content-grid h2 {
  margin: 34px 0 10px;
  font-size: 18px;
}

.content-grid p {
  margin: 0;
  color: #616b7d;
  line-height: 1.75;
}


body.is-loading {
  overflow: hidden;
}

.site-header,
main,
.site-footer {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms ease, transform 700ms ease;
}

body.is-ready .site-header,
body.is-ready main,
body.is-ready .site-footer {
  opacity: 1;
  transform: translateY(0);
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(31, 97, 242, 0.10), transparent 28%),
    linear-gradient(180deg, #fbfcff 0%, #f3f6fb 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 620ms ease, visibility 620ms ease;
}

html.dark-mode .boot-screen,
body.dark-mode .boot-screen {
  background: #000;
}

html.dark-mode .boot-spinner,
body.dark-mode .boot-spinner {
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: var(--blue);
}

html.dark-mode .boot-content p,
body.dark-mode .boot-content p {
  color: #a3a3a3;
}

body.is-ready .boot-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-content {
  display: grid;
  justify-items: center;
  gap: 22px;
  transform: translateY(-10px);
}

.boot-logo {
  width: 76px;
  height: 76px;
  flex-basis: 76px;
  box-shadow: 0 18px 42px rgba(38, 67, 118, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  transform: scale(1);
}

.boot-logo 
.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.sun {
  right: 15px;
  top: 14px;
  width: 18px;
  height: 18px;
}

.boot-logo .wave {
  height: 26px;
}

.boot-logo .wave-one {
  bottom: 12px;
}

.boot-logo .wave-two {
  bottom: -3px;
}

.boot-logo .mast {
  left: 37px;
  bottom: 25px;
  width: 5px;
  height: 36px;
}

.boot-logo .mast::before {
  top: 4px;
  border-width: 10px 0 10px 22px;
}

.boot-logo .mast::after {
  top: 21px;
  border-width: 6px 0 6px 15px;
}

.boot-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(23, 33, 58, 0.14);
  border-top-color: #1f61f2;
  animation: boot-spin 1150ms cubic-bezier(0.55, 0.05, 0.35, 1) 1 forwards;
}

.boot-content p {
  margin: -8px 0 0;
  color: #6f7b91;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.dropdown-menu .contact-action {
  width: 100%;
  border: 0;
  background: transparent;
  color: #24334f;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(18, 28, 48, 0.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 260ms ease;
  backdrop-filter: blur(10px);
}
.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop.is-closing {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
}

.contact-modal {
  position: relative;
  width: min(100%, 420px);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(24, 38, 68, 0.24);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.modal-backdrop.is-closing .contact-modal {
  animation: modal-exit-up 360ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modal-exit-up {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

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

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #667085;
  background: #eef2f8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}


.modal-close:hover {
  color: #17213a;
  background: #e4eaf3;
}

.modal-close:hover {
  animation: close-spin 420ms ease-in-out;
}

@keyframes close-spin {
  to {
    transform: rotate(360deg);
  }
}
.modal-kicker {
  margin: 0 0 10px;
  color: #1f61f2;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-modal h2 {
  margin: 0;
  color: #17213a;
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.about-modal-copy {
  margin: 18px 0 0;
  color: #5f6b82;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.85;
}

body.dark-mode .about-modal-copy {
  color: #b5b5b5;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.modal-actions button,
.modal-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.copy-contact {
  color: #fff;
  background: #1f61f2;
}

.modal-actions a {
  color: #17213a;
  background: #eef2f8;
}

.modal-actions .about-detail-link {
  color: #fff;
  background: #1f61f2;
}

body.dark-mode .modal-actions .about-detail-link {
  color: #000;
  background: #f5f5f5;
}

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

@media (max-width: 820px) {
  body.is-loading .topbar {
    clip-path: inset(0 calc(50% - 105px) 0 calc(50% - 105px) round 20px);
  }

  body.is-ready .topbar {
    animation-name: topbar-expand-mobile;
  }

  .site-footer {
    padding: 22px 0 26px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    width: calc(100% - 32px);
  }

  .footer-brand {
    width: 176px;
    height: 46px;
  }

  .footer-meta {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .footer-contact {
    min-height: 46px;
  }

  .works-page {
    padding: 30px 0 44px;
  }

  .works-title {
    margin-bottom: 18px;
    font-size: 30px;
    text-align: center;
  }

  .work-card-body {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
  }

  .work-card-body p {
    font-size: 15px;
  }

  .work-card-link {
    width: 100%;
    min-height: 46px;
  }

  .works-more {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
  }

  .works-more p {
    font-size: 15px;
  }

  .site-header {
    padding: 10px 10px 6px;
  }

  .topbar {
    justify-content: center;
    gap: 6px;
    min-height: 60px;
    padding: 8px;
    border-radius: 20px;
  }

  .brand {
    min-width: 0;
    flex: 0 1 auto;
  }

  .brand-image-wrap {
    width: 138px;
    height: 34px;
  }

  .avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-name {
    font-size: 30px;
  }

  .divider,
  .nav-item,
  .nav-link {
    display: none;
  }

  .compact {
    display: none;
  }

  .mobile-menu-toggle {
    position: absolute;
    left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 0;
    border-radius: 10px;
    color: var(--text);
    background: transparent;
    cursor: pointer;
  }

  .mobile-menu-toggle svg {
    position: absolute;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2.3;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .mobile-menu-toggle .close-icon {
    opacity: 0;
    transform: rotate(-45deg) scale(0.8);
  }

  .topbar.is-mobile-open .mobile-menu-toggle .menu-icon {
    opacity: 0;
    transform: rotate(45deg) scale(0.8);
  }

  .topbar.is-mobile-open .mobile-menu-toggle .close-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
  }

  .mobile-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 40;
    display: grid;
    gap: 16px;
    max-height: calc(100vh - 96px);
    padding: 14px;
    overflow-y: auto;
    border: 1px solid rgba(226, 232, 243, 0.92);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 42px rgba(38, 67, 118, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    backdrop-filter: blur(18px);
  }

  body.dark-mode .mobile-nav {
    border-color: rgba(255, 255, 255, 0.16);
    background: #000;
  }

  .topbar.is-mobile-open .mobile-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav-section {
    display: grid;
    gap: 4px;
  }

  .mobile-nav-section + .mobile-nav-section {
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .mobile-nav-section > p {
    margin: 0 8px 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-nav a,
  .mobile-nav .contact-action {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    color: var(--text);
    background: transparent;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
  }

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

  .theme-toggle {
    position: absolute;
    right: 8px;
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  main {
    width: calc(100% - 28px);
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: center;
    gap: 24px;
    min-height: calc(100svh - 84px);
    padding: 24px 0;
  }

  .hero-copy {
    width: 100%;
    text-align: center;
    transform: none;
  }

  .hero-visual {
    display: none;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 13px;
  }

  h1 {
    margin-inline: auto;
    font-size: 46px;
    line-height: 1.06;
  }

  .intro {
    margin-inline: auto;
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-actions {
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
  }

  .primary-action,
  .secondary-action {
    min-height: 46px;
    padding: 0 18px;
  }

  .modal-actions button,
  .modal-actions a {
    min-height: 46px;
  }

  .profile-panel {
    max-width: 420px;
  }

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

@media (max-width: 430px) {
  .site-header {
    padding-inline: 8px;
  }

  .brand {
    gap: 6px;
  }

  .brand-image-wrap {
    width: min(34vw, 126px);
  }

  .topbar {
    gap: 4px;
  }

  h1 {
    font-size: 38px;
  }

  .hero {
    padding-block: 20px;
  }

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

  .primary-action,
  .secondary-action {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
  }

  .modal-backdrop {
    padding: 14px;
  }

  .contact-modal {
    padding: 24px 18px 18px;
    border-radius: 14px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .contact-modal h2 {
    padding-right: 32px;
    font-size: 22px;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .modal-actions button,
  .modal-actions a {
    width: 100%;
    min-height: 46px;
  }
}





































