/* HEADER */
.site-header {
  position: fixed; z-index: 100; top: 0; left: 0; right: 0;
  height: var(--header-h); padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.on-hero { color: #fff; }
.site-header.scrolled,
.site-header:not(.on-hero) {
  background: rgba(239,239,236,.94);
  backdrop-filter: blur(12px);
  border-color: var(--line);
  color: var(--ink);
}
.brand { width: 235px; max-width: 34vw; display: block; }
.brand img { width: 100%; height: auto; }
.site-header.on-hero:not(.scrolled) .brand img {
    filter: brightness(0) invert(1);
}
.nav { display: flex; align-items: center; gap: 25px; font-size: 20px; }
.nav-item { position: relative; padding: 32px 0; }
.nav-link { position: relative; white-space: nowrap; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: currentColor;
  transition: width .25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.mega {
  position: absolute; top: 72px; right: -16px;
  width: 340px; padding: 18px;
  background: var(--paper); color: var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .22s ease; border: 1px solid var(--line);
}
.nav-item:hover .mega, .nav-item:focus-within .mega {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mega a {
  display: flex; justify-content: space-between;
  padding: 12px 8px; border-bottom: 1px solid var(--line);
}
.mega a:last-child { border-bottom: 0; }

.lang { position: relative; }
.lang-btn {
  border: 1px solid currentColor; background: transparent;
  min-width: 46px; height: 34px; padding: 0 10px;
}
.lang-menu {
  position: absolute; right: 0; top: 42px; width: 145px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  display: none;
}
.lang.open .lang-menu { display: block; }
.lang-menu button {
  width: 100%; border: 0; background: transparent;
  text-align: left; padding: 11px 12px;
}
.lang-menu button:hover { background: #e7e7e1; }

.menu-btn { display: none; border: 0; background: transparent; color: inherit; }
.mobile-panel { display: none; }

/* FOOTER */
.site-footer { background: var(--dark); color: var(--light); padding: 72px var(--gutter) 28px; }
.footer-top {
  display: grid; grid-template-columns: 5fr 3fr 2fr 2fr;
  gap: 30px; padding-bottom: 80px;
}
.footer-top h2 {
  font-size: clamp(44px,6vw,92px); line-height: .88;
  letter-spacing: -.06em; font-weight: 500;
}
.footer-col { font-size: 12px; line-height: 1.7; }
.footer-col h3 {
  font-size: 10px; text-transform: uppercase; letter-spacing: .09em;
  margin-bottom: 16px; opacity: .55; font-weight: 400;
}
.footer-col a, .footer-col span { display: block; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px;
  border-top: 1px solid rgba(255,255,255,.22);
  padding-top: 16px; font-size: 10px; opacity: .7;
}

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 16px; }
.project-card { grid-column: span 6; margin-bottom: 58px; }
.project-card:nth-child(3n+2) { grid-column: span 4; margin-top: 115px; }
.project-card:nth-child(3n+3) { grid-column: span 5; margin-left: 8.33%; }
.card-image {
  position: relative; overflow: hidden; aspect-ratio: 16/9; background: #d6d6d0;
}
.card-image img {
  height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.project-card:hover img,
.development-card:hover img,
.insight-card:hover img { transform: scale(1.025); }

.card-meta {
  display: grid; grid-template-columns: 42px 1fr auto;
  gap: 10px; padding-top: 12px; font-size: 11px;
}
.card-meta h3 { font-size: 18px; font-weight: 500; letter-spacing: -.025em; }
.card-meta p { margin-top: 4px; color: var(--muted); }
.index-no { opacity: .42; }
.arrow { font-size: 17px; }

/* TAXONOMY LIST */
.taxonomy-list { border-top: 1px solid currentColor; }
.tax-row {
  display: grid; grid-template-columns: 58px 1fr 2fr 26px;
  gap: 18px; align-items: center; min-height: 105px;
  border-bottom: 1px solid currentColor;
  transition: padding .25s ease, background .25s ease;
}
.tax-row:hover { padding-left: 12px; }
.tax-row h3 {
  font-size: clamp(24px,3vw,46px);
  letter-spacing: -.04em; font-weight: 400;
}
.tax-row p { font-size: 13px; opacity: .68; max-width: 560px; }

/* TAGS */
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 10px; font-size: 10px; background: transparent;
}
.section--dark .tag { border-color: rgba(255,255,255,.3); }

/* HERO */
.hero {
  position: relative; height: 100vh; min-height: 700px;
  color: #fff; overflow: hidden;
}
.hero-bg, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.022);
  transition: opacity 1.1s ease, transform 7s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.1), rgba(0,0,0,.02) 40%, rgba(0,0,0,.68));
  z-index: 2;
}
.hero-content {
  position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter);
  bottom: 108px; max-width: 1150px;
}
.hero-content h1 {
  font-size: clamp(56px,7.6vw,128px); line-height: .82;
  letter-spacing: -.07em; font-weight: 500;
}
.hero-content p:last-child { margin-top: 20px; font-size: 14px; }
.hero-controls {
  position: absolute; z-index: 6; right: var(--gutter); bottom: 105px;
  display: grid; gap: 12px; justify-items: end;
}
.hero-arrows { display: flex; gap: 8px; }
.hero-arrow {
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.66);
  border-radius: 50%; background: transparent; color: #fff;
}
.hero-arrow:hover { background: #fff; color: #111; }
.hero-counter { display: flex; align-items: center; gap: 10px; font-size: 10px; }
.progress { width: 82px; height: 1px; background: rgba(255,255,255,.36); overflow: hidden; }
.progress > i { display: block; width: 0; height: 100%; background: #fff; }
.hero-bottom {
  position: absolute; z-index: 6; left: var(--gutter); right: var(--gutter); bottom: 28px;
  border-top: 1px solid rgba(255,255,255,.5); padding-top: 13px;
  display: flex; justify-content: space-between;
  font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
}

/* FILTERS */
.filters {
  display: grid; grid-template-columns: 2fr repeat(3,1fr) auto;
  gap: 8px; margin-bottom: 55px;
}
.filters input, .filters select {
  width: 100%; height: 44px; border: 1px solid var(--line);
  background: transparent; padding: 0 12px; border-radius: 0;
}
.clear-btn {
  height: 44px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; padding: 0 16px;
}
.results-count { margin: -36px 0 38px; font-size: 11px; color: var(--muted); }

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .mobile-panel {
    position: fixed; inset: 0; z-index: 95;
    background: var(--paper); color: var(--ink);
    padding: 100px var(--gutter) 35px; overflow: auto;
  }
  body.nav-open .mobile-panel { display: block; }
  .mobile-panel a {
    display: block; font-size: clamp(34px,8vw,70px);
    letter-spacing: -.05em; border-bottom: 1px solid var(--line); padding: 10px 0;
  }
  .mobile-panel .mobile-sub a {
    font-size: 16px; letter-spacing: 0; padding-left: 20px;
  }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .project-card,
  .project-card:nth-child(3n+2),
  .project-card:nth-child(3n+3) {
    grid-column: span 6; margin: 0 0 55px;
  }
  .filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .brand { width: 180px; }
  .hero { min-height: 670px; }
  .hero-content { bottom: 145px; right: 20px; }
  .hero-controls { right: 20px; bottom: 82px; }
  .hero-bottom { left: 20px; right: 20px; }
  .card-grid { display: block; }
  .project-card,
  .project-card:nth-child(3n+2),
  .project-card:nth-child(3n+3) { margin: 0 0 60px; }
  .tax-row { grid-template-columns: 34px 1fr 24px; min-height: 86px; }
  .tax-row p { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .filters { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
