:root {
  --ink: #0a0b0d;
  --muted: #60646c;
  --paper: #f8f8f6;
  --line: rgba(10, 11, 13, 0.12);
  --accent: #b89054;
  --soft: rgba(235, 231, 222, 0.62);
  --white: #fff;
}

body.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(184, 144, 84, 0.24), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.86), transparent 32%),
    linear-gradient(135deg, #f8f8f6 0%, #ece8df 100%);
}

.mp-admin {
  min-height: 100vh;
}

.mp-admin [hidden] {
  display: none !important;
}

.admin-login-view {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.mp-login {
  display: grid;
  gap: 14px;
  width: min(100%, 430px);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 34px 96px rgba(10, 11, 13, 0.14);
  backdrop-filter: blur(22px);
}

.mp-login img {
  width: 62px;
  height: 62px;
}

.mp-login h1 {
  margin: 0 0 8px;
  font-size: clamp(36px, 7vw, 58px);
  line-height: 0.92;
}

.mp-login input,
.mp-field input,
.mp-field textarea {
  width: 100%;
  border: 1px solid rgba(10, 11, 13, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.mp-login input {
  min-height: 52px;
  padding: 0 18px;
}

.mp-login input:focus,
.mp-field input:focus,
.mp-field textarea:focus {
  border-color: rgba(184, 144, 84, 0.72);
  box-shadow: 0 0 0 4px rgba(184, 144, 84, 0.12);
}

.admin-work-view {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(18px, 3vw, 34px);
}

.mp-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 34px;
  background: rgba(10, 11, 13, 0.86);
  color: white;
  box-shadow: 0 28px 80px rgba(10, 11, 13, 0.18);
  backdrop-filter: blur(22px);
}

.mp-sidebar .brand {
  color: white;
}

.mp-sidebar .btn.ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.mp-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px;
  border: 1px solid rgba(10, 11, 13, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.mp-lang button,
.mp-tabs button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.mp-lang button {
  min-width: 44px;
  min-height: 34px;
  border-radius: 999px;
  background: transparent;
  color: inherit;
}

.mp-lang button.active {
  background: var(--white);
  color: var(--ink);
}

.mp-tabs {
  display: grid;
  gap: 8px;
}

.mp-tabs button {
  min-height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  padding: 0 18px;
}

.mp-tabs button.active {
  background: var(--white);
  color: var(--ink);
}

.mp-editor {
  min-width: 0;
}

.mp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(10, 11, 13, 0.12);
}

.mp-head h1 {
  margin: 0 0 12px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.92;
}

.mp-head p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.mp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(10, 11, 13, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.mp-status {
  width: fit-content;
  margin: 0 0 20px;
  padding: 11px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  font-weight: 800;
}

.mp-section {
  display: none;
}

.mp-section.active {
  display: block;
}

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

.mp-group-title {
  grid-column: 1 / -1;
  margin: 18px 0 0;
  font-size: 24px;
}

.mp-field {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(14px);
}

.mp-field span {
  color: #3d3f43;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.mp-field input {
  min-height: 46px;
  padding: 0 16px;
}

.mp-field textarea {
  min-height: 126px;
  padding: 14px 16px;
  resize: vertical;
}

.mp-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.5);
}

.mp-list-head h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.mp-list-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.mp-posts {
  display: grid;
  gap: 14px;
}

.mp-post {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.54);
}

.mp-post > img,
.mp-post-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  object-fit: cover;
}

.mp-post-fields {
  display: grid;
  gap: 16px;
}

.mp-post-summary {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
}

.mp-post-summary span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mp-post-summary h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.02;
}

.mp-post-summary p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.mp-post-actions {
  display: grid;
  align-content: start;
  gap: 10px;
}

.mp-post-actions .btn {
  min-width: 128px;
}

.mp-post-editor-page[hidden] {
  display: none !important;
}

.mp-post-editor-page {
  display: grid;
  gap: 16px;
}

.mp-post-editor-card {
  grid-template-columns: 240px minmax(0, 1fr);
}

.mp-post-preview {
  display: grid;
  gap: 10px;
}

.mp-post-preview span,
.mp-post-group h3 {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mp-post-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(10, 11, 13, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
}

.mp-post-content .mp-field,
.mp-post-details .mp-field {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

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

.mp-post-details h3,
.mp-post-details .mp-field:last-child {
  grid-column: 1 / -1;
}

.btn.danger {
  border: 1px solid rgba(160, 32, 32, 0.16);
  background: rgba(160, 32, 32, 0.08);
  color: #8b1d1d;
}

@media (max-width: 980px) {
  .admin-work-view,
  .mp-fields,
  .mp-post,
  .mp-post-fields {
    grid-template-columns: 1fr;
  }

  .mp-sidebar {
    position: static;
  }

  .mp-head,
  .mp-list-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .mp-actions {
    width: 100%;
  }

  .mp-actions .btn,
  .mp-list-head .btn {
    flex: 1;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(184, 144, 84, 0.2), transparent 28%),
    radial-gradient(circle at 12% 48%, rgba(255, 255, 255, 0.9), transparent 34%),
    radial-gradient(circle at 74% 88%, rgba(10, 11, 13, 0.08), transparent 30%),
    linear-gradient(135deg, #fbfbfa 0%, #eeeeea 52%, #f9f9f7 100%);
  background-size: 140% 140%, 160% 160%, 150% 150%, 100% 100%;
  animation: pageGradientFlow 18s ease-in-out infinite alternate;
  overflow-x: hidden;
}

body.page-leaving {
  cursor: progress;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .site-header,
body.modal-open main,
body.modal-open footer {
  visibility: hidden;
}

.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

#architecture-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.animated-bg::before {
  content: "";
  position: absolute;
  inset: -32%;
  background:
    linear-gradient(118deg, transparent 0 38%, rgba(255, 255, 255, 0.78) 42%, transparent 48%),
    linear-gradient(118deg, transparent 0 54%, rgba(184, 144, 84, 0.16) 58%, transparent 63%),
    linear-gradient(28deg, transparent 0 62%, rgba(10, 11, 13, 0.07) 66%, transparent 68%);
  animation: driftSurface 13s ease-in-out infinite alternate;
}

.animated-bg::after {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.78), transparent 24%),
    radial-gradient(circle at 78% 70%, rgba(184, 144, 84, 0.22), transparent 30%),
    radial-gradient(circle at 44% 56%, rgba(255, 255, 255, 0.54), transparent 26%),
    linear-gradient(180deg, rgba(248, 248, 246, 0.12), rgba(248, 248, 246, 0.54));
  animation: backgroundBreath 16s ease-in-out infinite alternate;
}

.beam,
.line,
.pulse {
  position: absolute;
  display: block;
}

.beam {
  width: 56vw;
  height: 56vw;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.78;
  mix-blend-mode: multiply;
}

.beam-one {
  right: -14vw;
  top: 8vh;
  background: rgba(184, 144, 84, 0.24);
  animation: floatOne 14s ease-in-out infinite alternate;
}

.beam-two {
  left: -16vw;
  bottom: 2vh;
  background: rgba(16, 19, 24, 0.1);
  animation: floatTwo 16s ease-in-out infinite alternate;
}

.line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 11, 13, 0.28), rgba(184, 144, 84, 0.2), transparent);
  transform-origin: center;
}

.line-one {
  top: 22%;
  left: -10%;
  width: 72%;
  rotate: -13deg;
  animation: lineSlide 11s ease-in-out infinite alternate;
}

.line-two {
  right: -12%;
  bottom: 28%;
  width: 62%;
  rotate: -22deg;
  animation: lineSlide 13s ease-in-out infinite alternate-reverse;
}

.pulse {
  right: 26%;
  top: 28%;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(184, 144, 84, 0.28);
  border-radius: 999px;
  animation: pulseRing 8s ease-in-out infinite;
}

.pulse::before,
.pulse::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(10, 11, 13, 0.1);
  border-radius: inherit;
}

.pulse::after {
  inset: 66px;
  border-color: rgba(184, 144, 84, 0.18);
}

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

a,
button,
.btn,
.brand,
.work-item,
.services-grid article,
.timeline div,
.gallery img,
.three-d-grid img {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(94vw, 1520px);
  min-height: 88px;
  margin: 16px auto 0;
  padding: 10px 14px 10px 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow:
    0 28px 80px rgba(10, 11, 13, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(1.25);
  animation: headerDrop 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  padding-right: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  overflow: hidden;
  border-radius: 999px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.brand:hover {
  transform: translateX(3px);
}

.brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  padding: 7px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(10, 11, 13, 0.08);
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(10, 11, 13, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.brand:hover img {
  transform: rotate(-4deg) scale(1.05);
  box-shadow: 0 22px 48px rgba(10, 11, 13, 0.12);
}

.brand span {
  font-size: clamp(18px, 1.6vw, 25px);
  line-height: 1;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-inline: auto;
  padding: 6px;
  color: #313131;
  background: rgba(10, 11, 13, 0.045);
  border: 1px solid rgba(10, 11, 13, 0.06);
  border-radius: 999px;
  font-size: 14px;
}

nav a,
nav button {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

nav a:hover,
nav button:hover,
nav button.is-active {
  color: white;
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(10, 11, 13, 0.16);
}

nav a:active,
nav button:active,
.btn:active,
.header-call:active,
.lang-switch button:active {
  transform: translateY(1px) scale(0.98);
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  flex: 0 0 auto;
  padding: 5px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(10, 11, 13, 0.11);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.lang-switch button {
  position: relative;
  overflow: hidden;
  min-width: 48px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.lang-switch button:not(.active):hover {
  color: var(--ink);
  background: rgba(10, 11, 13, 0.06);
}

.lang-switch button.active {
  color: white;
  background: var(--ink);
  box-shadow: 0 8px 22px rgba(10, 11, 13, 0.22);
}

.menu-toggle {
  position: relative;
  display: none;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(10, 11, 13, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(10, 11, 13, 0.12);
}

.menu-toggle span {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
  transition: transform 0.24s ease;
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

body.menu-open .menu-toggle span:first-child {
  transform: rotate(45deg);
}

body.menu-open .menu-toggle span:last-child {
  transform: rotate(-45deg);
}

.header-call {
  position: relative;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  color: white;
  background:
    linear-gradient(135deg, #0a0b0d, #24201a),
    var(--ink);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(10, 11, 13, 0.24);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.header-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(10, 11, 13, 0.3);
  filter: brightness(1.08);
}

.hero {
  display: grid;
  min-height: calc(100vh - 120px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(26px, 5vw, 82px);
  padding: clamp(34px, 5vw, 70px) clamp(18px, 5vw, 72px) 46px;
  overflow: hidden;
}

.hero-copy {
  align-self: center;
  animation: riseIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7.2vw, 106px);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.lead {
  max-width: 690px;
  color: #2f3338;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  width: min(100%, 760px);
}

.contact-actions .btn {
  border-color: white;
  color: white;
  background: transparent;
  box-shadow: none;
}

.btn {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  font-weight: 700;
  border-radius: 999px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(10, 11, 13, 0.18);
}

.btn.primary {
  color: white;
  background:
    linear-gradient(135deg, #0a0b0d, #2a241c),
    var(--ink);
}

.btn.ghost {
  background: transparent;
}

.btn.ghost:hover {
  color: white;
  background: var(--ink);
}

.btn.dark {
  border-color: white;
  color: white;
}

.contact-actions .btn.primary {
  background: transparent;
}

.application-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  place-items: center;
  padding: 24px;
  border: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  isolation: isolate;
  transition: opacity 0.28s ease;
}

body.modal-open .application-modal,
body.modal-open .application-modal * {
  visibility: visible;
}

.application-modal[open] {
  display: grid;
}

.application-modal[open],
.application-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.application-modal::backdrop {
  background: rgba(244, 241, 233, 0.68);
  backdrop-filter: blur(16px);
}

.application-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 70% 18%, rgba(184, 144, 84, 0.18), transparent 32%),
    radial-gradient(circle at 18% 80%, rgba(12, 15, 18, 0.1), transparent 34%),
    rgba(244, 241, 233, 0.72);
  backdrop-filter: blur(12px);
}

.application-panel {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid rgba(5, 8, 10, 0.08);
  border-radius: 34px;
  background: linear-gradient(145deg, #fffdf8, #f4efe6);
  box-shadow: 0 34px 90px rgba(20, 18, 12, 0.22);
  color: #050708;
  transform: translate3d(0, 24px, 0) scale(0.98);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.application-modal[open] .application-panel,
.application-modal.is-open .application-panel {
  transform: translate3d(0, 0, 0) scale(1);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(184, 144, 84, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #050708;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease;
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.04);
  background: rgba(184, 144, 84, 0.12);
}

.application-panel h2 {
  max-width: 610px;
  margin-bottom: 16px;
  padding-right: 64px;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1;
}

.modal-lead {
  max-width: 560px;
  color: #5f6670;
  font-size: 19px;
  line-height: 1.6;
}

.application-form {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.application-form label {
  display: grid;
  gap: 9px;
  color: #050708;
  font-weight: 700;
}

.application-form input {
  width: 100%;
  min-height: 64px;
  border: 1px solid rgba(5, 8, 10, 0.12);
  border-radius: 24px;
  background: #eef4ff;
  color: #050708;
  font: inherit;
  font-size: 18px;
  outline: none;
  padding: 0 20px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.application-form input:focus {
  border-color: var(--accent);
  background: #eef4ff;
  box-shadow: 0 0 0 4px rgba(11, 124, 255, 0.16);
}

.application-form input::placeholder {
  color: rgba(5, 8, 10, 0.45);
}

.application-form input:-webkit-autofill,
.application-form input:-webkit-autofill:hover,
.application-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #050708;
  border-color: rgba(11, 124, 255, 0.45);
  box-shadow: 0 0 0 1000px #eef4ff inset, 0 0 0 4px rgba(11, 124, 255, 0.12);
  caret-color: #050708;
}

.application-form .btn {
  min-height: 62px;
  margin-top: 8px;
  border-color: #050708;
  background: #050708;
  color: #fff;
  box-shadow: 0 18px 40px rgba(5, 8, 10, 0.2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-close:focus-visible,
.application-form .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(184, 144, 84, 0.2), 0 18px 42px rgba(184, 144, 84, 0.2);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: #5f6670;
  font-weight: 700;
}

.application-thanks {
  display: none;
  min-height: 390px;
  place-items: center;
  text-align: center;
  border-radius: 28px;
  outline: none;
}

.application-thanks .thanks-mark {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
  border: 1px solid rgba(184, 144, 84, 0.42);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(145deg, #caa46a, #8f642d);
  color: white;
  font-size: 38px;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(184, 144, 84, 0.28);
}

.application-thanks h3 {
  max-width: 560px;
  margin: 0 auto 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.98;
}

.application-thanks p:last-child {
  max-width: 470px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.application-modal.is-success .application-panel > .eyebrow,
.application-modal.is-success .application-panel > h2,
.application-modal.is-success .modal-lead,
.application-modal.is-success .application-form {
  display: none;
}

.application-modal.is-success .modal-close {
  display: none;
}

.application-modal.is-success .application-thanks {
  display: grid;
  animation: thanksPop 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes thanksPop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.hero-stats > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 84px;
  padding: 18px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(10, 11, 13, 0.06);
  backdrop-filter: blur(14px);
  color: #555;
  line-height: 1.35;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.hero-stats > span:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 58px rgba(10, 11, 13, 0.1);
}

.hero-stats > span > span {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-stats strong {
  display: block;
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1;
}

.hero-visual {
  position: relative;
  min-height: 570px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 6% 2% 16%;
  border: 1px solid rgba(10, 11, 13, 0.1);
  border-radius: 42px;
  transform: skewY(-4deg);
  animation: frameMove 9s ease-in-out infinite alternate;
}

.logo-card {
  position: absolute;
  top: 0;
  right: 8%;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.09);
  backdrop-filter: blur(16px);
  animation: liftSmall 7s ease-in-out infinite alternate;
}

.logo-card img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.hero-card {
  position: absolute;
  overflow: hidden;
  background: #ddd;
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.15);
  transform: translateZ(0);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;
}

.hero-card.main {
  right: 10%;
  bottom: 12px;
  width: min(72%, 470px);
  aspect-ratio: 0.8;
  animation: liftMain 8s ease-in-out infinite alternate;
}

.hero-card.side {
  width: min(42%, 270px);
  aspect-ratio: 1;
  border: 8px solid rgba(255, 255, 255, 0.78);
  animation: liftSmall 7s ease-in-out infinite alternate;
}

.hero-card.side.top {
  top: 122px;
  left: 0;
}

.hero-card.side.bottom {
  right: 0;
  bottom: 78px;
}

.hero-card img,
.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-strip {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 32px);
  font-weight: 600;
}

.intro-strip p {
  margin: 0;
}

.section,
.process {
  position: relative;
  padding: clamp(58px, 8vw, 120px) clamp(18px, 5vw, 72px);
  scroll-margin-top: 132px;
}

.section-heading {
  display: grid;
  max-width: 900px;
  gap: 8px;
  margin-bottom: 34px;
}

h2 {
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  background: transparent;
}

.services-grid article {
  min-height: 270px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  box-shadow: 0 20px 54px rgba(10, 11, 13, 0.07);
  backdrop-filter: blur(14px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.services-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(10, 11, 13, 0.12);
}

.services-grid span {
  color: var(--accent);
  font-weight: 800;
}

.services-grid h3 {
  margin: 42px 0 14px;
  font-size: 24px;
  line-height: 1.12;
}

.services-grid p,
.showcase-copy p,
.timeline span,
.contact p {
  color: var(--muted);
  line-height: 1.6;
}

.project-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 0.66fr);
  gap: 34px;
  padding: clamp(58px, 8vw, 120px) clamp(18px, 5vw, 72px);
  scroll-margin-top: 132px;
}

.showcase-copy {
  align-self: end;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 310px;
  gap: 16px;
}

.gallery img {
  border-radius: 28px;
  box-shadow: 0 22px 64px rgba(10, 11, 13, 0.13);
  transition: transform 0.45s ease, box-shadow 0.45s ease, filter 0.45s ease;
}

.gallery img:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 32px 84px rgba(10, 11, 13, 0.19);
  filter: saturate(1.08) contrast(1.04);
}

.portfolio-link {
  margin-top: 22px;
}

.works-hero {
  position: relative;
  max-width: 1240px;
  padding: clamp(44px, 6vw, 82px) clamp(18px, 5vw, 72px) clamp(24px, 4vw, 44px);
  scroll-margin-top: 132px;
}

.works-hero h1 {
  max-width: 860px;
  font-size: clamp(48px, 7vw, 104px);
}

.works-hero .lead {
  max-width: 760px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(44px, 6vw, 82px);
}

.work-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 54px rgba(10, 11, 13, 0.09);
  backdrop-filter: blur(14px);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.work-item:hover {
  transform: translateY(-8px);
  border-color: rgba(184, 144, 84, 0.28);
  box-shadow: 0 30px 76px rgba(10, 11, 13, 0.14);
}

.work-item.large,
.work-item.wide {
  grid-column: auto;
}

.work-item img {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: 24px 24px 0 0;
  transition: transform 0.45s ease;
}

.work-item.large img,
.work-item.wide img {
  height: 270px;
}

.work-item:hover img {
  transform: scale(1.025);
}

.work-item div {
  display: grid;
  gap: 10px;
  padding: 22px;
  color: var(--ink);
}

.work-item span {
  display: block;
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.work-item h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.08;
}

.work-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.works-contact {
  margin-top: 0;
}

.blog-shell {
  display: grid;
  gap: 28px;
  width: min(94vw, 1520px);
  margin: 0 auto;
  padding: 0 0 clamp(58px, 8vw, 110px);
}

.blog-featured:empty {
  display: none;
}

.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(340px, 0.86fr);
  overflow: hidden;
  min-height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 80px rgba(10, 11, 13, 0.12);
  backdrop-filter: blur(16px);
}

.featured-post img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.featured-post div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(26px, 4vw, 54px);
}

.meta-line,
.blog-card span,
.blog-card small,
.post-meta span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.featured-post h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(36px, 4.2vw, 62px);
  line-height: 0.95;
}

.featured-post p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.featured-post strong {
  width: fit-content;
  margin-top: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  font-size: 18px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.blog-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 54px rgba(10, 11, 13, 0.09);
  backdrop-filter: blur(14px);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 76px rgba(10, 11, 13, 0.14);
}

.blog-card a {
  display: grid;
  grid-template-rows: 250px 1fr;
  height: 100%;
}

.blog-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card div {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: 24px;
}

.blog-card h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.05;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.blog-empty {
  color: var(--muted);
  font-size: 22px;
}

.post-page {
  padding: clamp(38px, 5vw, 72px) clamp(18px, 5vw, 72px) clamp(58px, 8vw, 110px);
}

.post-nav {
  max-width: 1180px;
  margin: 0 auto 28px;
}

.post-back {
  margin-bottom: 28px;
}

.post-hero {
  max-width: 1180px;
  margin: 0 auto 30px;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 24px 70px rgba(10, 11, 13, 0.09);
  backdrop-filter: blur(16px);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(184, 144, 84, 0.28);
  border-radius: 999px;
  background: rgba(184, 144, 84, 0.08);
}

.post-cover-wrap {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.post-cover {
  display: block;
  width: 100%;
  height: clamp(300px, 48vw, 620px);
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 26px 76px rgba(10, 11, 13, 0.14);
}

.post-body {
  max-width: 880px;
  margin: 38px auto 0;
  padding: clamp(24px, 4vw, 46px);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: 0 20px 54px rgba(10, 11, 13, 0.08);
  backdrop-filter: blur(14px);
}

.post-body p {
  color: #30343a;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.75;
}

.post-body p:last-child {
  margin-bottom: 0;
}

.post-missing {
  padding: clamp(34px, 5vw, 70px);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(280px, 1.05fr);
  gap: 24px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(58px, 8vw, 110px);
}

.admin-panel-grid {
  display: contents;
}

.admin-home-form {
  grid-column: 1 / -1;
}

.admin-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 54px rgba(10, 11, 13, 0.08);
  backdrop-filter: blur(14px);
}

.admin-card-head {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.admin-card-head h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
}

.admin-card-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.admin-editor-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(10, 11, 13, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.48);
}

.admin-editor-block h3 {
  margin: 0;
  font-size: 18px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid rgba(10, 11, 13, 0.12);
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
}

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

.admin-preview {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 18px;
}

.admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-status {
  color: var(--muted);
  font-weight: 800;
}

.admin-post {
  display: grid;
  grid-template-columns: 96px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.admin-post img {
  width: 96px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

.admin-post div {
  display: grid;
  gap: 4px;
}

.admin-post span {
  color: var(--muted);
  font-size: 13px;
}

.admin-post button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: white;
  background: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.admin-applications {
  grid-column: span 1;
}

.admin-application {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.admin-application a {
  color: var(--ink);
  font-weight: 800;
}

.admin-application span,
.admin-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.three-d-section {
  position: relative;
  padding: clamp(34px, 5vw, 70px) clamp(18px, 5vw, 72px) clamp(58px, 8vw, 110px);
  scroll-margin-top: 132px;
}

.three-d-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.three-d-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(10, 11, 13, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.three-d-grid img:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 26px 68px rgba(10, 11, 13, 0.17);
}

.gallery img:first-child {
  grid-row: span 2;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border-top: 0;
}

.timeline div {
  display: grid;
  gap: 14px;
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 48px rgba(10, 11, 13, 0.06);
  backdrop-filter: blur(14px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.timeline div:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 144, 84, 0.26);
  box-shadow: 0 24px 64px rgba(10, 11, 13, 0.11);
}

.timeline strong {
  font-size: 22px;
}

.contact {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 clamp(18px, 5vw, 72px) clamp(42px, 5vw, 72px);
  padding: clamp(34px, 5vw, 64px);
  color: white;
  background:
    linear-gradient(135deg, rgba(10, 11, 13, 0.96), rgba(38, 34, 28, 0.94)),
    var(--ink);
  border-radius: 36px;
  box-shadow: 0 30px 80px rgba(10, 11, 13, 0.2);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  scroll-margin-top: 132px;
}

.contact:hover {
  transform: translateY(-4px);
  box-shadow: 0 38px 96px rgba(10, 11, 13, 0.25);
}

.contact h2 {
  margin-bottom: 18px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: #777;
}

@keyframes pageGradientFlow {
  from {
    background-position: 0% 0%, 8% 34%, 92% 70%, 0 0;
  }
  to {
    background-position: 100% 38%, 62% 8%, 22% 100%, 0 0;
  }
}

@keyframes backgroundBreath {
  from {
    opacity: 0.72;
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    opacity: 0.98;
    transform: translate3d(2%, 2%, 0) scale(1.05);
  }
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.click-ripple {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: rippleOut 0.58s ease-out forwards;
}

.btn.ghost .click-ripple,
nav a .click-ripple,
.lang-switch button .click-ripple {
  background: rgba(184, 144, 84, 0.26);
}

.scroll-target-flash {
  animation: none;
}

.scroll-target-flash .section-heading,
.scroll-target-flash .showcase-copy,
.scroll-target-flash .services-grid article,
.scroll-target-flash .timeline div,
.scroll-target-flash .contact-actions,
.scroll-target-flash .works-grid,
.scroll-target-flash .three-d-grid {
  animation: targetContentPop 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.page-leaving main,
body.page-leaving footer {
  animation: pageLeave 0.28s ease both;
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translate3d(0, -22px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes rippleOut {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@keyframes targetContentPop {
  from {
    opacity: 0.45;
    transform: translate3d(0, 18px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes pageLeave {
  to {
    opacity: 0.74;
    transform: translate3d(0, 10px, 0);
  }
}

@keyframes driftSurface {
  from {
    transform: translate3d(-2%, -1%, 0) rotate(0deg);
  }
  to {
    transform: translate3d(2%, 1%, 0) rotate(1deg);
  }
}

@keyframes floatOne {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-5vw, 5vh, 0) scale(1.08);
  }
}

@keyframes floatTwo {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(6vw, -4vh, 0) scale(1.05);
  }
}

@keyframes lineSlide {
  from {
    transform: translateX(-3%);
    opacity: 0.35;
  }
  to {
    transform: translateX(7%);
    opacity: 0.7;
  }
}

@keyframes pulseRing {
  0%,
  100% {
    transform: scale(0.82);
    opacity: 0.12;
  }
  50% {
    transform: scale(1.22);
    opacity: 0.34;
  }
}

@keyframes liftMain {
  from {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }
  to {
    transform: translate3d(0, -14px, 0) rotate(1deg);
  }
}

@keyframes liftSmall {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes frameMove {
  from {
    transform: skewY(-4deg) translate3d(0, 0, 0);
  }
  to {
    transform: skewY(-2deg) translate3d(10px, -10px, 0);
  }
}

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

@media (max-width: 980px) {
  .site-header {
    display: flex;
    flex-wrap: wrap;
    border-radius: 34px;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .header-call {
    grid-column: 1 / -1;
    order: 4;
    width: 100%;
  }

  .hero,
  .project-showcase {
    grid-template-columns: 1fr;
  }

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

  .blog-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-post img {
    height: 360px;
    min-height: 0;
  }

  .work-item.large,
  .work-item.wide {
    grid-column: auto;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 620px;
  }

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

  .contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 104px;
  }

  .site-header {
    top: 8px;
    width: calc(100vw - 24px);
    margin-top: 8px;
    min-height: 76px;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 9px;
    border-radius: 30px;
  }

  .brand {
    gap: 10px;
    padding-right: 0;
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .brand span {
    max-width: none;
    font-size: clamp(13px, 4vw, 18px);
    line-height: 0.96;
    overflow: visible;
    text-overflow: clip;
  }

  .menu-toggle {
    display: grid;
  }

  .lang-switch {
    padding: 4px;
  }

  .lang-switch button {
    min-width: 38px;
    height: 38px;
    font-size: 12px;
  }

  nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 0;
    padding: 0;
    border-width: 0;
    opacity: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 48px rgba(10, 11, 13, 0.14);
    backdrop-filter: blur(18px);
    transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.22s ease, border-width 0.22s ease;
  }

  body.menu-open nav {
    max-height: 360px;
    padding: 6px;
    border-width: 1px;
    opacity: 1;
  }

  nav a {
    min-height: 44px;
    justify-content: center;
    padding: 10px 12px;
  }

  .header-call {
    display: none;
  }

  .hero {
    gap: 26px;
    padding: 30px 16px 34px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 58px);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .lead {
    font-size: 17px;
    line-height: 1.5;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .btn {
    width: 100%;
    min-height: 52px;
  }

  .works-hero h1 {
    font-size: clamp(42px, 13vw, 56px);
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 28px;
  }

  .hero-stats > span {
    min-height: 76px;
    padding: 14px;
    border-radius: 18px;
  }

  .hero-stats > span:last-child {
    grid-column: 1 / -1;
  }

  .hero-stats {
    position: relative;
    z-index: 4;
  }

  .timeline,
  .gallery {
    grid-template-columns: 1fr;
  }

  .three-d-section {
    display: block;
    padding: 34px 12px 48px;
    min-height: 0;
  }

  .three-d-section.reveal,
  .three-d-section .section-heading.reveal,
  .three-d-grid.reveal,
  .three-d-grid img.reveal {
    opacity: 1;
    transform: none;
  }

  .three-d-section .section-heading {
    margin-bottom: 18px;
  }

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

  .three-d-grid img {
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 0;
    border-radius: 18px;
    object-fit: cover;
  }

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

  .blog-shell {
    gap: 22px;
    width: calc(100vw - 24px);
    padding: 0 0 54px;
  }

  .featured-post {
    min-height: 0;
    border-radius: 28px;
  }

  .featured-post img {
    height: 190px;
    min-height: 0;
    border-radius: 28px 28px 0 0;
  }

  .featured-post div {
    gap: 12px;
    padding: 22px 18px 26px;
  }

  .featured-post h2 {
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1;
  }

  .featured-post p {
    font-size: 15px;
    line-height: 1.55;
  }

  .featured-post strong {
    font-size: 16px;
  }

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

  .blog-card {
    border-radius: 22px;
  }

  .blog-card a {
    grid-template-rows: 136px 1fr;
  }

  .blog-card img {
    height: 136px;
    border-radius: 22px 22px 0 0;
  }

  .blog-card div {
    gap: 9px;
    padding: 14px 12px 16px;
  }

  .blog-card span,
  .blog-card small {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .blog-card h2 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    font-size: clamp(18px, 6vw, 24px);
    line-height: 1.08;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .blog-card p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-inline: 12px;
  }

  .work-item {
    border-radius: 20px;
  }

  .work-item div {
    padding: 14px;
  }

  .work-item span {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .work-item h2 {
    font-size: 19px;
  }

  .work-item p {
    font-size: 13px;
  }

  .section,
  .project-showcase,
  .process {
    padding: 46px 16px;
  }

  .services-grid,
  .timeline {
    gap: 12px;
  }

  .services-grid article,
  .timeline div {
    min-height: 0;
    padding: 18px;
    border-radius: 20px;
  }

  .services-grid article {
    gap: 10px;
    padding: 16px 14px;
  }

  .services-grid article span {
    font-size: 18px;
  }

  .services-grid h3 {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.08;
  }

  .services-grid p {
    font-size: 13px;
    line-height: 1.45;
  }

  .gallery {
    grid-auto-rows: 220px;
  }

  .gallery img:first-child {
    grid-row: auto;
  }

  .work-item img,
  .work-item.large img,
  .work-item.wide img {
    height: 170px;
    border-radius: 18px 18px 0 0;
  }

  .post-page {
    padding: 30px 14px 54px;
  }

  .post-nav {
    margin-bottom: 16px;
  }

  .post-hero {
    padding: 26px 18px;
    border-radius: 26px;
  }

  .post-hero h1 {
    font-size: clamp(36px, 12vw, 50px);
  }

  .post-meta span {
    min-height: 34px;
    font-size: 11px;
  }

  .post-cover {
    height: 240px;
    border-radius: 24px;
  }

  .post-body {
    margin-top: 18px;
    padding: 22px 18px;
    border-radius: 24px;
  }

  .post-body p {
    font-size: 17px;
    line-height: 1.68;
  }

  .admin-post {
    grid-template-columns: 78px 1fr;
  }

  .admin-post button {
    grid-column: span 1;
  }

  .admin-layout {
    gap: 14px;
    padding: 0 14px 54px;
  }

  .admin-card {
    padding: 18px;
    border-radius: 22px;
  }

  .admin-two {
    grid-template-columns: 1fr;
  }

  .intro-strip,
  .contact,
  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-strip {
    gap: 10px;
    padding: 22px 16px;
  }

  .contact {
    gap: 22px;
    margin: 28px 12px 36px;
    padding: 26px 18px 22px;
    border-radius: 30px;
  }

  .contact h2 {
    max-width: 340px;
    margin-bottom: 0;
    font-size: clamp(34px, 10.6vw, 44px);
    line-height: 0.98;
    letter-spacing: 0;
  }

  .contact .eyebrow {
    margin-bottom: 14px;
    font-size: 12px;
    letter-spacing: 0.28em;
  }

  .contact-actions {
    width: 100%;
    gap: 9px;
  }

  .contact-actions .btn {
    justify-content: center;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 16px;
    white-space: nowrap;
  }

  .hero-visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-height: 0;
    margin-top: 24px;
    transform: translateZ(0);
  }

  .hero-visual::before,
  .logo-card {
    display: none;
  }

  .hero-card,
  .hero-card.main,
  .hero-card.side,
  .hero-card.side.top,
  .hero-card.side.bottom {
    position: relative;
    inset: auto;
    width: 100%;
    animation: none;
    border-radius: 22px;
  }

  .hero-card.main {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
  }

  .hero-card.side {
    aspect-ratio: 1.08;
    border: 6px solid rgba(255, 255, 255, 0.86);
  }

  .application-modal {
    padding: 10px;
  }

  .application-panel {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 26px;
    padding: 26px 16px 22px;
    overscroll-behavior: contain;
  }

  .application-form input,
  .application-form button {
    min-height: 54px;
    font-size: 16px;
  }

  .modal-close {
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
    font-size: 30px;
  }

  .application-panel h2 {
    padding-right: 52px;
    font-size: clamp(32px, 9.4vw, 42px);
    line-height: 1;
  }

  .modal-lead {
    font-size: 16px;
    line-height: 1.5;
  }

  .application-form {
    gap: 14px;
    margin-top: 24px;
  }

  .hero-card.side {
    border-width: 6px;
  }

  .animated-bg::before,
  .animated-bg::after,
  .beam,
  .line,
  .pulse {
    animation: none;
    filter: none;
  }

  body {
    background:
      radial-gradient(circle at 88% 18%, rgba(184, 144, 84, 0.14), transparent 34%),
      radial-gradient(circle at 12% 58%, rgba(255, 255, 255, 0.92), transparent 38%),
      linear-gradient(135deg, #fbfbfa 0%, #eeeeea 58%, #f9f9f7 100%);
    background-size: 100% 100%;
    animation: none;
  }

  #architecture-bg {
    opacity: 0.32;
  }

  .animated-bg::before {
    inset: 0;
    opacity: 0.35;
    background:
      linear-gradient(120deg, transparent 0 48%, rgba(184, 144, 84, 0.08) 52%, transparent 58%);
  }

  .animated-bg::after {
    inset: 0;
    opacity: 0.54;
    background:
      radial-gradient(circle at 86% 34%, rgba(184, 144, 84, 0.16), transparent 34%),
      linear-gradient(180deg, rgba(248, 248, 246, 0.2), rgba(248, 248, 246, 0.66));
  }
}

/* Admin panel final overrides. */
body.admin-page {
  overflow-x: hidden;
}

body.admin-page .mp-admin {
  width: min(100%, 1480px);
  margin: 0 auto;
}

body.admin-page .admin-work-view {
  display: block;
  padding: 18px;
}

body.admin-page .mp-sidebar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(180px, auto) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 78px;
  margin-bottom: 26px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(10, 11, 13, 0.9);
}

body.admin-page .mp-sidebar .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 8px 0 0;
  overflow: visible;
  border-radius: 999px;
  color: white;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

body.admin-page .mp-sidebar .brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 999px;
}

body.admin-page .mp-sidebar .brand span {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-page .mp-lang {
  background: rgba(255, 255, 255, 0.08);
}

body.admin-page .mp-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

body.admin-page .mp-tabs button {
  min-width: 116px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
}

body.admin-page .mp-sidebar > .btn {
  min-width: 138px;
  min-height: 46px;
  border-radius: 999px;
  white-space: nowrap;
}

body.admin-page .mp-editor {
  min-width: 0;
  padding: 0 clamp(6px, 2vw, 18px) 54px;
}

body.admin-page .mp-head {
  align-items: flex-start;
  margin-bottom: 16px;
}

body.admin-page .mp-head h1 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 68px);
}

body.admin-page .mp-head p:last-child {
  max-width: 740px;
}

body.admin-page .mp-section[data-panel="blog"].active {
  display: grid;
  gap: 16px;
}

body.admin-page .mp-list-head {
  position: sticky;
  top: 108px;
  z-index: 10;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

body.admin-page .mp-list-head .btn {
  min-width: 160px;
}

body.admin-page .mp-post {
  grid-template-columns: 170px minmax(0, 1fr) auto;
  border-radius: 30px;
  align-items: stretch;
  gap: 18px;
}

body.admin-page .mp-post-editor-card {
  grid-template-columns: 240px minmax(0, 1fr);
}

body.admin-page .mp-post .btn.danger {
  align-self: start;
  min-width: 112px;
  border-radius: 999px;
}

@media (max-width: 920px) {
  body.admin-page .admin-work-view {
    padding: 12px;
  }

  body.admin-page .mp-sidebar {
    position: static;
    grid-template-columns: 1fr;
    border-radius: 32px;
    padding: 16px;
  }

  body.admin-page .mp-sidebar .brand span {
    max-width: none;
  }

  body.admin-page .mp-tabs {
    justify-content: flex-start;
  }

  body.admin-page .mp-sidebar > .btn {
    width: 100%;
  }

  body.admin-page .mp-list-head {
    position: static;
  }

  body.admin-page .mp-post,
  body.admin-page .mp-post-editor-card,
  body.admin-page .mp-post-fields,
  body.admin-page .mp-fields,
  body.admin-page .mp-post-details {
    grid-template-columns: 1fr;
  }

  body.admin-page .mp-post-actions {
    display: flex;
    flex-wrap: wrap;
  }

  body.admin-page .mp-post-actions .btn {
    flex: 1;
  }

  body.admin-page .mp-post > img,
  body.admin-page .mp-post-preview {
    max-width: 260px;
  }
}
