@font-face {
  font-family: "Everett";
  src:
    url(../fonts/TWKEverett-Medium.woff2) format("woff2"),
    url(../fonts/TWKEverett-Medium.woff) format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Everett";
  src:
    url(../fonts/TWKEverett-Regular.woff2) format("woff2"),
    url(../fonts/TWKEverett-Regular.woff) format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --night: #040f0f;
  --deep: #061818;
  --panel: #082323;
  --card: #0e2d2c;
  --surface: rgba(255, 255, 255, 0.02);

  --border: rgba(255, 255, 255, 0.07);

  --lemon: #fffa31;
  --lemon2: #c6bb32;
  --ftm: #6aafab;
  --in-progress: #96c8ff;

  --text: #cad4dd;
  --muted: #dbd0b2;
  --white: #ffffff;

  --fh: "Everett", "DM Sans", sans-serif;
  --fb: "Everett", "DM Sans", sans-serif;

  --lemon-rgb: 255, 250, 49;
  --night-rgb: 4, 15, 15;
  --text-rgb: 202, 212, 221;
  --white-rgb: 255, 255, 255;
  --black-rgb: 0, 0, 0;
  --ftm-rgb: 106, 175, 171;
  --in-progress-rgb: 150, 200, 255;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
* {
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--night);
  color: var(--text);
  font-family: var(--fb);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--night);
}
::-webkit-scrollbar-thumb {
  background: rgba(var(--lemon-rgb), 0.3);
  border-radius: 2px;
}
img {
  max-width: 100%;
  display: block;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: rgba(var(--night-rgb), 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
nav .logo {
  position: relative;
  z-index: 10001;
}
.logo img {
  height: 36px;
  width: auto;
  display: block;
}
footer .logo img {
  height: 28px;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
nav a.nl {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 6px 12px;
  border-radius: 6px;
  position: relative;
  transition:
    color 0.18s,
    background 0.18s;
}

nav a.nl::before,
nav a.nl::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  transition:
    opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

nav a.nl::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='40.254 19.929 16.322 16.323'%3E%3Cpath fill='%23fffa31' d='m41.221 36.251-.967-.967V19.929h1.931v13.022l13.026-13.022 1.365 1.366-13.025 13.022h13.025v1.935Z'/%3E%3C/svg%3E");
  bottom: 2px;
  left: 2px;
  transform: translate(14px, -14px);
}

nav a.nl::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='59.682 0.5 16.323 16.322'%3E%3Cpath fill='%23fffa31' d='M74.074 16.82V3.8L61.052 16.822l-1.37-1.366L72.708 2.434H59.682V.5h15.356l.967.964v15.355Z'/%3E%3C/svg%3E");
  top: 2px;
  right: 2px;
  transform: translate(-14px, 14px);
}

nav a.nl:hover {
  color: var(--white);
}

nav a.nl.active {
  color: var(--text);
}

nav a.nl.active::before,
nav a.nl.active::after {
  opacity: 1;
  transform: translate(0, 0);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  background: var(--lemon);
  color: var(--night);
  font-family: var(--fb);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition:
    background 0.2s,
    transform 0.15s;
}
.nav-btn:hover {
  background: var(--lemon2);
  transform: translateY(-1px);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 10001;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
  transform-origin: center;
}
nav.open .nav-burger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
nav.open .nav-burger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
nav.open .nav-burger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 990px) {
  .nav-burger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--night);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 10vw 40px;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }
  nav.open .nav-links {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li {
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child {
    border-bottom: none;
  }
  .nav-links .nav-btn {
    display: block;
    text-align: center;
    margin: 28px 0 0;
    padding: 16px 22px;
    font-size: 1rem;
  }
  .lang-li {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
  }
  .lang-trigger {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--muted);
    box-shadow: none;
  }
  .lang-trigger:hover,
  .lang-picker.open .lang-trigger {
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .lang-dropdown {
    left: 0;
    right: auto;
    min-width: 160px;
    transform-origin: top left;
  }

  nav a.nl::before,
  nav a.nl::after {
    display: none;
  }

  .nav-links .nl {
    display: block;
    padding: 20px 0;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
    transition: color 0.18s;
  }

  .nav-links .nl:hover,
  .nav-links .nl.active {
    color: var(--lemon);
    background: transparent;
  }
}

.lang-li {
  display: flex;
  align-items: center;
}
.lang-picker {
  position: relative;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(var(--text-rgb), 0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--fb);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.lang-trigger:hover,
.lang-picker.open .lang-trigger {
  border-color: rgba(var(--lemon-rgb), 0.25);
  color: var(--lemon);
  background: rgba(var(--lemon-rgb), 0.04);
}
.lang-trigger-chevron {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.lang-picker.open .lang-trigger-chevron {
  transform: rotate(180deg);
}
.lang-trigger-chevron path {
  stroke: currentColor;
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 80px;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  box-shadow:
    0 16px 40px rgba(var(--black-rgb), 0.5),
    0 0 0 1px rgba(var(--white-rgb), 0.03);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transform-origin: top right;
  z-index: 300;
  transition:
    opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.lang-picker.open .lang-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.lang-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--fb);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 9px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
}
.lang-opt:hover {
  background: rgba(var(--text-rgb), 0.05);
  color: var(--text);
}
.lang-opt.active {
  color: var(--lemon);
  background: rgba(var(--lemon-rgb), 0.07);
}

@media (max-width: 768px) {
  .lang-trigger {
    background: transparent;
    border: none;
    padding: 0;
    transition: color 0.2s;
  }
  .lang-trigger:hover,
  .lang-picker.open .lang-trigger {
    background: transparent;
    border: none;
    color: var(--lemon);
  }
}

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 6vw 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: url(../img/hero_square.svg);
  background-size: 400px 400px;
  background-repeat: repeat;
  opacity: 0.05;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4vw;
}
.hero-left {
  flex: 0 0 42%;
  text-align: left;
}
.hero-right {
  flex: 1 1 0;
  min-width: 0;
  max-width: 58%;
}

h1 {
  font-family: var(--fh);
  font-weight: 500;
  font-size: clamp(2.6rem, 3.6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
h1 em {
  font-style: normal;
  color: var(--lemon);
}
.hero-sub {
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 40px;
  line-height: 1.75;
  max-width: 44ch;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-p {
  background: var(--lemon);
  color: var(--night);
  font-family: var(--fb);
  font-weight: 500;
  font-size: 0.95rem;
  min-height: 50px;
  padding: 14px 32px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.005em;
  transition:
    background 0.2s,
    transform 0.15s;
}
.btn-p:hover {
  background: var(--lemon2);
  transform: translateY(-2px);
}
.btn-s {
  background: transparent;
  color: var(--text);
  font-family: var(--fb);
  font-weight: 400;
  font-size: 0.95rem;
  min-height: 50px;
  padding: 14px 32px;
  border-radius: 10px;
  border: 1px solid rgba(var(--text-rgb), 0.18);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.005em;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.btn-s:hover {
  border-color: rgba(var(--text-rgb), 0.35);
  background: rgba(var(--text-rgb), 0.04);
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  aspect-ratio: 1200 / 750;
  object-fit: contain;
  animation: none;
}

.hstats {
  display: flex;
  margin-top: 48px;
  padding: 28px 0;
  gap: 0;
}
.hstat {
  text-align: left;
  padding-right: 32px;
  position: relative;
}
.hstat + .hstat {
  padding-left: 32px;
  padding-right: 32px;
}
.hstat:last-child {
  padding-right: 0;
}
.hstat-num {
  font-family: var(--fh);
  font-size: clamp(1.8rem, 2.2vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.hstat-num span {
  color: var(--lemon);
}
.hstat-lbl {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
}

@media (max-width: 960px) {
  .hero {
    padding: 100px 5vw 60px;
  }
  .hero-inner {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
  .hero-left {
    flex: none;
    width: 100%;
    text-align: center;
  }
  .hero-right {
    width: 100vw;
    margin-left: -5vw;
    margin-right: -5vw;
    display: flex;
    justify-content: center;
  }
  .hero-img {
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
    aspect-ratio: auto;
  }
  .hero-sub {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btns {
    justify-content: center;
  }
  .hstats {
    justify-content: center;
    align-items: center;
  }
  .hstat {
    text-align: center;
  }
}

.about-strip {
  background: var(--deep);
  padding: 90px 5vw 80px;
}

.about-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.about-header-left .sec-tag {
  margin-bottom: 16px;
}
.about-header-left h2 {
  margin-bottom: 0;
}

.about-header-right {
  padding-bottom: 4px;
}

.about-header-right p {
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
}

.about-pillars-desk {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.about-pillars-mob {
  display: none;
}

.apd {
  padding: 28px 24px;
  border: 1px solid rgba(var(--lemon-rgb), 0.13);
  border-radius: 14px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.25s;
}
.apd:hover {
  border-color: rgba(var(--lemon-rgb), 0.35);
}
.apd h5 {
  font-family: var(--fh);
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}
.apd p {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.apd .ap-icon {
  background: rgba(var(--lemon-rgb), 0.1);
}
.apd .ap-icon img {
  filter: brightness(0) saturate(100%) invert(96%) sepia(55%) saturate(1200%)
    hue-rotate(2deg) brightness(105%);
  width: 22px;
  height: 22px;
}
.about-pillar .ap-icon {
  background: rgba(var(--lemon-rgb), 0.1);
}
.about-pillar .ap-icon img {
  filter: brightness(0) saturate(100%) invert(96%) sepia(55%) saturate(1200%)
    hue-rotate(2deg) brightness(105%);
  width: 20px;
  height: 20px;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .about-header {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .about-pillars-desk {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .apd {
    padding: 24px 20px;
  }
  .about-pillars-desk .apd:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(var(--lemon-rgb), 0.13);
  }
}

@media (max-width: 768px) {
  .about-header {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 32px;
    padding-bottom: 32px;
  }
  .about-pillars-desk {
    display: none;
  }
  .about-pillars-mob {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}

section {
  padding: 110px 5vw;
}
.sec-tag {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lemon);
  font-weight: 500;
  margin-bottom: 14px;
  display: inline-block;
}
h2 {
  font-family: var(--fh);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 14px;
}
.sec-intro {
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.8;
}
.sec-head {
  margin-bottom: 64px;
}
.sec-head .sec-tag {
  margin-bottom: 16px;
}
.sec-head h2 {
  margin-bottom: 16px;
}

#solutions {
  background: var(--night);
}

#arch {
  background: var(--deep);
}

.arch-layout {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 72px;
  align-items: start;
}
.arch-head {
  position: sticky;
  top: 88px;
}
.arch-head .sec-tag {
  margin-bottom: 16px;
}
.arch-head h2 {
  margin-bottom: 20px;
}

.arch-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.arch-row {
  background: var(--card);
  border: 1px solid rgba(var(--lemon-rgb), 0.13);
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.25s;
}
.arch-row:hover,
.arch-row.expanded {
  border-color: rgba(var(--lemon-rgb), 0.35);
}
.arch-row:focus-visible {
  outline: 2px solid var(--lemon);
  outline-offset: 2px;
}
.arch-row-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 20px;
}
.arch-row-num {
  display: none;
}
.arch-row-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(var(--lemon-rgb), 0.08);
  border: 1px solid rgba(var(--lemon-rgb), 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.arch-row-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(96%) sepia(55%) saturate(1200%)
    hue-rotate(2deg) brightness(105%);
}
.arch-row-title {
  font-family: var(--fh);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
  flex: 1;
}
.arch-row-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition:
    transform 0.2s ease,
    color 0.15s;
}
.arch-row.expanded .arch-row-chevron {
  transform: rotate(180deg);
  color: rgba(var(--lemon-rgb), 0.7);
}
.arch-row.expanded .arch-row-chevron svg {
  stroke: var(--lemon);
}
.arch-row-chevron svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.arch-row-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.arch-row.expanded .arch-row-body {
  max-height: 400px;
}
.arch-row-body-inner {
  padding: 0 20px 22px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.arch-row-fullname {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.5;
}
.arch-row-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--lemon-rgb), 0.75);
  margin-bottom: 3px;
}
.arch-row-type {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.5;
}
.arch-row-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}
.arch-cta {
  margin-top: 52px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.arch-cta p {
  font-size: 0.93rem;
  color: var(--muted);
  max-width: 800px;
  line-height: 1.75;
  margin: 0;
}
@media (max-width: 768px) {
  .arch-cta {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 36px;
    padding: 22px 20px;
    gap: 16px;
  }
  .arch-cta .btn-p {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .arch-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .arch-head {
    position: static;
  }
}
@media (max-width: 600px) {
  .arch-row-top {
    gap: 12px;
    padding: 16px;
  }
  .arch-row-body-inner {
    padding: 0 16px 18px;
    padding-top: 14px;
  }
  .arch-row-icon {
    width: 38px;
    height: 38px;
  }
  .arch-row-icon img {
    width: 17px;
    height: 17px;
  }
  .arch-row-title {
    font-size: 0.9rem;
  }
}

#projects {
  background: var(--night);
}

.proj-carousel-wrap {
  position: relative;
}

.proj-card {
  width: 100%;
  opacity: 1;
  transform: none;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.25s;
}
.proj-card:hover {
  border-color: rgba(var(--lemon-rgb), 0.35);
}
.proj-card:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--lemon),
    0 16px 48px rgba(var(--black-rgb), 0.4);
}

.proj-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--deep);
}
.proj-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.proj-card:hover .proj-card-img img {
  transform: scale(1.04);
}

.proj-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(var(--black-rgb), 0.72) 0%,
    rgba(var(--black-rgb), 0.22) 45%,
    transparent 72%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 14px 18px;
}

.proj-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.proj-card-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(var(--lemon-rgb), 0.22);
  background: rgba(var(--lemon-rgb), 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: none;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.proj-card-arrow svg {
  width: 13px;
  height: 13px;
  stroke: var(--lemon);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.proj-card:hover .proj-card-arrow {
  background: rgba(var(--lemon-rgb), 0.18);
  border-color: rgba(var(--lemon-rgb), 0.6);
}

.proj-card-overlay-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.proj-card-name {
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--white);
  line-height: 1.25;
  text-shadow: 0 1px 6px rgba(var(--black-rgb), 0.7);
}
.proj-card-status {
  font-size: 0.73rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.proj-card-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.proj-dot-completed {
  color: rgba(var(--lemon-rgb), 0.8);
}
.proj-dot-completed::before {
  background: var(--lemon);
}
.proj-dot-progress {
  color: rgba(var(--ftm-rgb), 0.9);
}
.proj-dot-progress::before {
  background: var(--ftm);
}

.proj-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  width: 100%;
}
.proj-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(var(--lemon-rgb), 0.28);
  background: rgba(var(--lemon-rgb), 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--lemon);
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.proj-arrow-btn:hover {
  border-color: rgba(var(--lemon-rgb), 0.65);
  background: rgba(var(--lemon-rgb), 0.14);
}

.proj-arrow-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}
.proj-arrow-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proj-splide,
.sfunc-splide {
  position: relative;
  padding-bottom: 27px;
}

.proj-splide .splide__pagination,
.sfunc-splide .splide__pagination {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  margin-top: 0;
}
.proj-splide .splide__pagination__page,
.sfunc-splide .splide__pagination__page {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(var(--lemon-rgb), 0.22);
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 1;
  transform: none;
  transition:
    background 0.2s,
    width 0.25s,
    border-radius 0.25s;
}
.proj-splide .splide__pagination__page.is-active,
.sfunc-splide .splide__pagination__page.is-active {
  background: var(--lemon);
  width: 20px;
  border-radius: 4px;
  transform: none;
}

@media (max-width: 599px) {
  .proj-card-name {
    font-size: 0.93rem;
  }
  .proj-card-arrow {
    width: 28px;
    height: 28px;
  }
  .proj-card-arrow svg {
    width: 11px;
    height: 11px;
  }
}
@media (max-width: 768px) {
  .proj-carousel-controls {
    gap: 10px;
  }
}

#contact {
  background: var(--deep);
  padding: 100px 5vw;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: stretch;
}
.contact-left {
  display: flex;
  flex-direction: column;
}
.contact-left .sec-tag {
  margin-bottom: 16px;
}
.contact-left h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 20px;
}
.contact-sub {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 380px;
}
.contact-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition:
    border-color 0.2s,
    background 0.2s;
}
a.contact-card:hover {
  border-color: rgba(var(--lemon-rgb), 0.28);
  background: rgba(var(--lemon-rgb), 0.04);
}
.contact-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(var(--lemon-rgb), 0.08);
  border: 1px solid rgba(var(--lemon-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--lemon);
}
.contact-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.contact-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
}
.contact-card-value {
  font-size: 0.9rem;
  color: var(--text);
}
.contact-card .contact-card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.contact-card .contact-card-arrow svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a.contact-card:hover .contact-card-arrow {
  border-color: rgba(var(--lemon-rgb), 0.4);
  color: var(--lemon);
}
.contact-card--location .contact-card-icon {
  background: rgba(var(--text-rgb), 0.05);
  border-color: var(--border);
  color: var(--muted);
}
@media (max-width: 860px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-left {
    display: block;
  }
  .contact-sub {
    max-width: 100%;
  }
  .contact-card {
    padding: 14px 16px;
    gap: 12px;
  }
  .contact-card-icon {
    width: 36px;
    height: 36px;
  }
}
@media (max-width: 480px) {
  .contact-left h2 {
    font-size: 1.75rem;
  }
}

footer {
  background: var(--deep);
  border-top: 1px solid var(--border);
  padding: 20px 5vw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  /* General */
  section {
    padding: 80px 5vw;
  }
  #contact {
    padding: 72px 5vw;
  }
  .about-strip {
    padding: 72px 5vw;
  }
  h2 {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    letter-spacing: -0.025em;
  }
  .sec-head {
    margin-bottom: 40px;
  }

  .hero {
    padding: 80px 5vw 60px;
    min-height: auto;
  }
  .hero-inner {
    max-width: 100%;
  }
  h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    letter-spacing: -0.025em;
  }
  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 32px;
  }
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .btn-p,
  .btn-s {
    text-align: center;
    padding: 16px 24px;
    font-size: 1rem;
    justify-content: center;
  }
  .hstats {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    margin-top: 40px;
  }
  .hstat {
    max-width: 100%;
    padding: 24px 0 0;
    width: 100%;
    text-align: center;
  }
  .hstat:first-child {
    padding-top: 0;
  }
  .hstat + .hstat {
    border-left: none;
    border-top: none;
    padding-top: 24px;
    padding-left: 0;
    padding-right: 0;
  }
  .hstat-num {
    font-size: 2rem;
  }
}

.sep-slash,
.sep-wave,
.sep-wave--desk,
.sep-wave--mob {
  display: block;
  line-height: 0;
  width: 100%;
  overflow: hidden;
  margin-top: -1px;
  margin-bottom: -1px;
}
.sep-slash svg,
.sep-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

.sep-wave--mob {
  display: none;
}
@media (max-width: 768px) {
  .sep-wave--desk {
    display: none;
  }
  .sep-wave--mob {
    display: block;
  }
  .sep-slash svg {
    height: 48px;
  }
}

.ap-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ap-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-cta {
  margin-top: 52px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.about-cta p {
  font-size: 0.93rem;
  color: var(--muted);
  max-width: 800px;
  line-height: 1.75;
}
@media (max-width: 768px) {
  .about-cta {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 36px;
    padding: 22px 20px;
    gap: 16px;
  }
  .about-cta .btn-p {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .about-pillar {
    border: 1px solid rgba(var(--lemon-rgb), 0.1);
    border-radius: 12px;
    background: var(--card);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s;
  }
  .about-pillar:hover,
  .about-pillar.expanded {
    border-color: rgba(var(--lemon-rgb), 0.28);
  }
  .ap-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    user-select: none;
  }
  .ap-top h5 {
    flex: 1;
    font-family: var(--fh);
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
  }
  .ap-chevron {
    flex-shrink: 0;
    display: flex;
    color: var(--muted);
    transition:
      transform 0.2s ease,
      color 0.15s;
  }
  .about-pillar.expanded .ap-chevron {
    transform: rotate(180deg);
    color: rgba(var(--lemon-rgb), 0.7);
  }
  .ap-chevron svg {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
  }
  .about-pillar.expanded .ap-chevron svg {
    stroke: var(--lemon);
  }
  .ap-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.2s ease;
  }
  .about-pillar.expanded .ap-body {
    max-height: 160px;
  }
  .ap-body-inner {
    overflow: hidden;
  }
  .ap-body p {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.75;
    margin: 0;
    padding: 0 20px 20px;
  }
  .about-pillar .ap-icon {
    background: rgba(var(--lemon-rgb), 0.1);
    flex-shrink: 0;
  }
  .about-pillar .ap-icon img {
    filter: brightness(0) saturate(100%) invert(96%) sepia(55%) saturate(1200%)
      hue-rotate(2deg) brightness(105%);
    width: 20px;
    height: 20px;
  }
}

.error-404 {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 6vw 80px;
  position: relative;
  overflow: hidden;
  background: var(--night);
}
.error-404__grid {
  position: absolute;
  inset: 0;
  background-image: url(../img/hero_square.svg);
  background-size: 400px 400px;
  background-repeat: repeat;
  opacity: 0.04;
  pointer-events: none;
}

.error-404__inner {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.error-404__code {
  font-family: var(--fh);
  font-size: clamp(7rem, 20vw, 14rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.88;
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
  color: var(--text);
  animation: e404FadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.error-404__code::after {
  content: "";
  display: block;
  height: 3px;
  width: 56px;
  background: var(--lemon);
  border-radius: 2px;
  margin: 20px auto 0;
  animation: e404LineIn 0.7s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: left center;
}
@keyframes e404LineIn {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}
.error-404__heading {
  font-family: var(--fh);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--text);
  animation: e404FadeUp 0.7s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.error-404__heading em {
  font-style: normal;
  color: var(--lemon);
}
.error-404__body {
  font-size: clamp(0.9rem, 1.1vw, 1.02rem);
  color: var(--muted);
  line-height: 1.75;
  max-width: 48ch;
  margin: 0 auto 44px;
  animation: e404FadeUp 0.7s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.error-404__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: e404FadeUp 0.7s 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.error-404__links-wrap {
  width: 100%;
  margin-top: 64px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
  animation: e404FadeUp 0.7s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.error-404__links-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 20px;
}
.error-404__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.error-404__links li a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.error-404__links li a:hover {
  color: var(--lemon);
  border-color: rgba(var(--lemon-rgb), 0.28);
  background: rgba(var(--lemon-rgb), 0.05);
}
.error-404__links li a svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  opacity: 0.65;
}
@keyframes e404FadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .error-404 {
    padding: 100px 5vw 64px;
  }
  .error-404__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    width: 100%;
  }
  .error-404__actions .btn-p,
  .error-404__actions .btn-s {
    text-align: center;
    justify-content: center;
    padding: 16px 24px;
    font-size: 1rem;
  }
  .error-404__links-wrap {
    margin-top: 48px;
    padding-top: 32px;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(var(--night-rgb), 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 4000;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 4001;
  background: var(--panel);
  border: 1px solid rgba(var(--white-rgb), 0.08);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translate(-50%, -46%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition:
    transform 0.44s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
  box-shadow:
    0 40px 120px rgba(var(--black-rgb), 0.75),
    0 0 0 1px rgba(var(--white-rgb), 0.04);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(var(--white-rgb), 0.18);
  background: rgba(var(--night-rgb), 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(var(--white-rgb), 0.85);
  flex-shrink: 0;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.modal-close:hover {
  border-color: rgba(var(--lemon-rgb), 0.45);
  color: var(--lemon);
  background: rgba(var(--night-rgb), 0.75);
}
.modal-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.modal--project {
  width: min(96vw, 1260px);
  height: min(92vh, 780px);
  max-height: 92vh;
}
.pm-split {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  height: 100%;
}

.pm-gallery {
  flex: 0 0 70%;
  position: relative;
  background: var(--deep);
  overflow: hidden;
}
.pm-gall-splide,
.pm-gall-splide .splide__track,
.pm-gall-splide .splide__list,
.pm-gall-splide .splide__slide {
  height: 100%;
}
.pm-gall-splide .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pm-gall-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pm-gall-splide .splide__pagination {
  bottom: 14px;
  gap: 5px;
  padding: 0;
}
.pm-gall-splide .splide__pagination__page {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(var(--white-rgb), 0.35);
  border: none;
  opacity: 1;
  transform: none;
  transition:
    background 0.2s,
    width 0.2s,
    border-radius 0.2s;
}
.pm-gall-splide .splide__pagination__page.is-active {
  background: var(--white);
  width: 16px;
  border-radius: 3px;
  transform: none;
}

.pm-gall-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(var(--white-rgb), 0.15);
  background: rgba(var(--night-rgb), 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(var(--white-rgb), 0.85);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.pm-gall-btn:hover {
  background: rgba(var(--lemon-rgb), 0.15);
  border-color: rgba(var(--lemon-rgb), 0.45);
  color: var(--lemon);
}
.pm-gall-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}
.pm-gall-prev {
  left: 14px;
}
.pm-gall-next {
  right: 14px;
}
.pm-gall-btn svg {
  width: 15px;
  height: 15px;
}
.pm-gall-counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 5;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(var(--white-rgb), 0.7);
  background: rgba(var(--night-rgb), 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(var(--white-rgb), 0.1);
  letter-spacing: 0.05em;
}

.pm-details-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.pm-details {
  flex: 1;
  overflow-y: auto;
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--lemon-rgb), 0.2) transparent;
}
.pm-details::-webkit-scrollbar {
  width: 3px;
}
.pm-details::-webkit-scrollbar-thumb {
  background: rgba(var(--lemon-rgb), 0.2);
  border-radius: 2px;
}

.pm-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 20px;
  width: fit-content;
}
.pm-status--completed {
  color: var(--lemon);
  background: rgba(var(--lemon-rgb), 0.1);
  border: 1px solid rgba(var(--lemon-rgb), 0.2);
}
.pm-status--in_progress {
  color: rgba(var(--in-progress-rgb), 0.9);
  background: rgba(var(--in-progress-rgb), 0.08);
  border: 1px solid rgba(var(--in-progress-rgb), 0.2);
}
.pm-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.pm-title {
  font-family: var(--fh);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin: 0;
}

.pm-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.pm-meta-item {
  padding: 14px 16px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pm-meta-item:nth-child(odd) {
  border-right: 1px solid var(--border);
}
.pm-meta-item:not(:nth-last-child(-n + 2)):not(:nth-last-child(-n + 2) ~ *) {
  border-bottom: 1px solid var(--border);
}
.pm-meta-label {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
}
.pm-meta-val {
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.pm-cta {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.pm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid rgba(var(--white-rgb), 0.07);
  flex-shrink: 0;
}
.pm-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(var(--lemon-rgb), 0.28);
  background: rgba(var(--lemon-rgb), 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--lemon);
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.pm-nav-btn:hover {
  border-color: rgba(var(--lemon-rgb), 0.65);
  background: rgba(var(--lemon-rgb), 0.14);
}
.pm-nav-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}
.pm-nav-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}
.pm-nav-counter {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  min-width: 40px;
  text-align: center;
}

@media (max-width: 640px) {
  .modal--project {
    flex-direction: column;
    height: min(93dvh, 860px);
  }
  .pm-split {
    flex-direction: column;
  }
  .pm-gallery {
    flex: 0 0 220px;
    min-height: 220px;
    width: 100%;
  }
  .pm-gall-splide .splide__slide img,
  .pm-gall-img {
    object-fit: cover;
  }
  .pm-gall-btn,
  .pm-gall-counter {
    display: none;
  }
  .pm-details-wrap {
    flex: 1;
    min-height: 0;
  }
  .pm-details {
    padding: 16px 16px 12px;
  }
  .pm-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .pm-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .pm-meta-item {
    padding: 10px 12px;
  }
  .pm-meta-label {
    font-size: 0.62rem;
  }
  .pm-meta-val {
    font-size: 0.88rem;
  }
}

@media (max-width: 768px) {
  .modal {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 93dvh;
    border-radius: 20px 20px 0 0;
    transform: translateY(6%);
    opacity: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .pm-nav {
    padding: 12px 16px;
  }
  .pm-nav-btn {
    width: 44px;
    height: 44px;
  }
  .modal.open {
    transform: translateY(0);
    opacity: 1;
  }
  .modal::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    border-radius: 2px;
    background: rgba(var(--white-rgb), 0.12);
    z-index: 20;
    pointer-events: none;
  }
}

nav.scrolled {
  background: rgba(var(--night-rgb), 0.97);
  box-shadow: 0 1px 24px rgba(var(--black-rgb), 0.4);
}

.proj-splide .splide__track,
.sfunc-splide .splide__track {
  overflow: hidden;
}
.proj-splide .splide__slide,
.sfunc-splide .splide__slide {
  box-sizing: border-box;
}

.sfunc-carousel-wrap {
  position: relative;
  margin-top: 32px;
}

.sfunc-splide .splide__list {
  align-items: stretch;
}
.sfunc-splide .splide__slide {
  height: auto;
}
.sfunc-splide .apd {
  width: 100%;
  height: 100%;
}

.sfunc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 22px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.sfunc-cta p {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 768px) {
  .sfunc-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
    gap: 16px;
  }
  .sfunc-cta .btn-p {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .modal-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .modal-close,
  .pm-gall-btn,
  .pm-gall-counter {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Lazy image fade-in (class toggled by JS) */
.img-fade {
  opacity: 0;
}
.img-fade--in {
  opacity: 1;
  transition: opacity 0.4s ease;
}

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

.contact-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-family: var(--fb);
  letter-spacing: 0.02em;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.contact-social-link:hover {
  border-color: rgba(var(--lemon-rgb), 0.3);
  color: var(--lemon);
  background: rgba(var(--lemon-rgb), 0.06);
}

.contact-company {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contact-company-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.contact-company-meta {
  display: flex;
  flex-direction: row;
  gap: 28px;
  margin-top: 10px;
}
.contact-company-meta > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.82rem;
  color: var(--text);
}
.contact-company-meta-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  opacity: 0.7;
}
@media (max-width: 860px) {
  .contact-company-meta {
    flex-direction: column;
    gap: 10px;
  }
  .contact-company-meta > span {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }
  .contact-company-meta-label {
    min-width: 72px;
    flex-shrink: 0;
    opacity: 0.7;
  }
}

.empty-msg {
  color: var(--muted);
  padding: 40px 0;
}
