:root {
  --color-bg: #050505;
  --color-text: #ffffff;
  --color-muted: #8a8a8a;
  --color-line: #2c2c2c;
  --font-sans: "Inter", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  --header-height: 56px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

/* ---------- Header ---------- */

.l-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--color-bg);
}

.l-header__logo-mark {
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--color-text);
  padding-bottom: 2px;
  display: inline-block;
}

.l-header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.l-header__menu {
  display: flex;
  gap: 28px;
}

.l-header__menu a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: opacity 0.25s;
}

.l-header__menu a:hover {
  opacity: 0.5;
}

.l-header__divider {
  width: 1px;
  height: 14px;
  background: var(--color-line);
}

.l-header__menu--sub {
  gap: 22px;
}

.l-header__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.l-header__lang {
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.l-header__burger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
}

.l-header__burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-text);
}

/* ---------- Hero (KV) ---------- */

.p-home-kv {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--color-bg);
}

.p-home-kv__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.p-home-kv__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: var(--color-bg);
  padding: 26px 20px 30px;
}

.p-home-kv__heading {
  font-size: clamp(28px, 3.4vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 60%;
}

.p-home-kv__aside {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 11;
  width: min(420px, 54vw);
  background: var(--color-bg);
}

.c-filter__row a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 11px 18px 10px;
  border-top: 1px solid var(--color-line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background 0.2s, color 0.2s;
}

.c-filter__row sup {
  font-size: 9px;
  font-weight: 500;
  color: var(--color-muted);
}

.c-filter__row a:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.c-filter__row a:hover sup {
  color: var(--color-bg);
}

/* ---------- Projects grid ---------- */

.p-home-projects {
  position: relative;
  z-index: 5;
  background: var(--color-bg);
  padding: 120px 20px 80px;
}

.p-home-projects__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 24px;
}

.c-project-card__image-wrapper {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111;
}

.c-project-card__image-wrapper canvas {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.c-project-card:hover .c-project-card__image-wrapper canvas {
  transform: scale(1.04);
}

.c-project-card__title {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.c-project-card__tags {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.c-project-card__tags a:hover {
  color: var(--color-text);
}

.p-home-projects__more {
  margin-top: 90px;
  display: flex;
  justify-content: center;
}

.c-button {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid var(--color-text);
  border-radius: 999px;
  padding: 16px 38px;
  transition: background 0.25s, color 0.25s;
}

.c-button:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* ---------- Footer ---------- */

.l-footer {
  position: relative;
  z-index: 5;
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
  padding: 70px 20px 30px;
}

.l-footer__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 70px;
}

.l-footer__contact {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: opacity 0.25s;
}

.l-footer__contact:hover {
  opacity: 0.6;
}

.l-footer__newsletter {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 13px;
  color: var(--color-muted);
}

.l-footer__subscribe {
  color: var(--color-text);
  font-weight: 700;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 2px;
}

.l-footer__middle {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid var(--color-line);
  padding: 40px 0 70px;
}

.l-footer__nav {
  display: flex;
  gap: 80px;
}

.l-footer__nav a {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 0;
  transition: opacity 0.25s;
}

.l-footer__nav a:hover {
  opacity: 0.5;
}

.l-footer__social {
  display: flex;
  gap: 24px;
}

.l-footer__social a {
  font-size: 12px;
  color: var(--color-muted);
  transition: color 0.25s;
}

.l-footer__social a:hover {
  color: var(--color-text);
}

.l-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.l-footer__addresses {
  display: flex;
  gap: 80px;
}

.l-footer__address-city {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.l-footer__address p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--color-muted);
}

.l-footer__copyright {
  font-size: 11px;
  color: var(--color-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .l-header__nav {
    display: none;
  }

  .p-home-kv__heading {
    max-width: 100%;
  }

  .p-home-kv__aside {
    display: none;
  }

  .p-home-projects__list {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .l-footer__top,
  .l-footer__middle,
  .l-footer__bottom {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }
}
