/* ─── Global polish ─── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
 
::selection {
  background: #111;
  color: #fff;
}
 
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
 
 
:root {
  --bg: #f5f5f5;
  --text: #111;
  --line: rgba(0, 0, 0, 0.15);
  --overlay-bg: #000;
  --overlay-fg: #fff;
  --overlay-muted: #3a3a3a;
  --overlay-soft: #6b6b6b;
}
 
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
 
html,
body {
  width: 100%;
  min-height: 100%;
}
 
body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.projects-header {
  position: fixed;
  top: 40px;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 10;
}

.projects-header::before {
  content: "";
  position: absolute;
  top: -40px;
  bottom: -36px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #f5f5f5;
  z-index: -1;
}

.logo img {
  width: 120px;
  display: block;
}

.menu-trigger {
  display: flex;
  gap: 24px;
  font-size: 14px;
  line-height: 1;
}

.menu-trigger a {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.menu-trigger a:hover {
  opacity: 1;
}

.projects-page {
  position: relative;
  z-index: 1;
}

.projects-hero {
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects-hero h1 {
  font-size: clamp(60px, 6vw, 100px);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.projects-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.projects-tabs {
  display: inline-flex;
  align-items: center;
  gap: 56px;
}

.projects-tab {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.38);
  transition: color 0.25s ease;
}

.projects-tab:hover {
  color: rgba(0, 0, 0, 0.72);
}

.projects-tab.is-active {
  color: #111;
}

.projects-panel {
  display: none;
}

.projects-panel.is-active {
  display: block;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project {
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}

.project:hover {
  background: rgba(0, 0, 0, 0.04);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.top h3 {
  font-size: 18px;
  font-weight: 400;
}

.top span {
  font-size: 12px;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  color: rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.bottom {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
}

.projects-footer {
  padding: 120px 40px 88px;
  background: var(--bg);
  color: rgba(0, 0, 0, 0.68);
}

.projects-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.projects-footer-contact {
  font-size: 13px;
  line-height: 1.55;
}

.projects-footer-contact a {
  text-decoration: none;
}

.projects-footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.projects-footer-links a {
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: rgba(0, 0, 0, 0.68);
  text-decoration: none;
}

.projects-footer-line {
  margin-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.projects-footer-bottom {
  padding-top: 36px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.68);
}

.footer-bottom-left,
.footer-bottom-right {
  display: block;
}

.footer-bottom-right {
  margin-top: 8px;
}

.projects-footer-bottom a {
  color: inherit;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.projects-footer-bottom a:hover {
  opacity: 1;
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-hero {
    height: auto;
    padding: 140px 20px 60px;
  }

  .projects-header {
    top: 20px;
    left: 20px;
    right: 20px;
  }

  .projects-header::before {
    top: -20px;
    bottom: -20px;
  }

  .projects-hero-inner {
    gap: 20px;
    align-items: center;
    text-align: center;
  }

  .projects-tabs {
    justify-content: center;
  }

  .projects-tab {
    font-size: 13px;
  }

  .projects-footer {
    padding: 100px 20px 64px;
  }

  .projects-footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects-footer-links {
    gap: 18px 22px;
  }

  .projects-footer-line {
    margin-top: 28px;
  }

  .projects-footer-bottom {
    padding-top: 28px;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .projects-header {
    top: 20px;
    left: 20px;
    right: 20px;
  }

  .projects-header::before {
    top: -20px;
    bottom: -20px;
  }

  .logo img {
    width: 112px;
  }

  .projects-tabs {
    gap: 22px;
    flex-wrap: wrap;
  }

  .projects-footer-contact {
  font-size: 12px;
  }

  .projects-footer-links a {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .projects-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer-bottom-left {
    text-align: left;
  }

  .footer-bottom-right {
    margin-top: 0;
    text-align: right;
  }
}

.menu-trigger a {
  color: #111111;
  opacity: 0.35;
}

.menu-trigger a:hover,
.menu-trigger a.is-active {
  opacity: 1;
}

.mobile-menu-toggle {
  display: none;
  width: 28px;
  height: 22px;
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
}

.mobile-menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #111111;
}

.mobile-menu-toggle span:first-child {
  top: 6px;
}

.mobile-menu-toggle span:last-child {
  bottom: 6px;
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: #f3f3f1;
  color: #111111;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-inner {
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px 24px 32px;
  position: relative;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mobile-menu-close {
  width: 28px;
  height: 28px;
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
}

.mobile-menu-close span {
  position: absolute;
  top: 13px;
  left: 2px;
  width: 24px;
  height: 1.5px;
  background: #111111;
}

.mobile-menu-close span:first-child {
  transform: rotate(45deg);
}

.mobile-menu-close span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu-nav {
  position: absolute;
  right: 24px;
  bottom: max(42px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mobile-menu-link {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 16px;
  font-size: clamp(72px, 16vw, 112px);
  line-height: 0.9;
  color: #8a8a8a;
  letter-spacing: -0.02em;
}

.mobile-menu-link + .mobile-menu-link {
  margin-top: 8px;
}

.mobile-menu-link .number {
  font-size: 15px;
  min-width: 28px;
  letter-spacing: 0.12em;
  text-align: right;
  color: #8a8a8a;
}

.mobile-menu-link:hover,
.mobile-menu-link.is-active,
.mobile-menu-link.is-active .text,
.mobile-menu-link.is-active .number {
  color: #111111;
}

@media (max-width: 900px) {
  .menu-trigger {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 560px) {
  .mobile-menu-inner {
    padding: 20px 20px 28px;
  }

  .mobile-menu-nav {
    right: 20px;
    bottom: calc(56px + env(safe-area-inset-bottom));
  }

  .mobile-menu-link {
    font-size: clamp(64px, 15vw, 96px);
    gap: 14px;
  }

  .mobile-menu-link .number {
    font-size: 11px;
  }
}