/* ── Variables ── */
:root {
  --bg: #e8e8e8;
  --bg-alt: #dedede;
  --bg-base: #e8e8e8;
  --glass: rgba(255, 255, 255, 0.45);
  --glass-strong: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(0, 0, 0, 0.08);
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-light: #999;
  --accent: #1a1a1a;
  --grid-gap: 6px;
  --header-height: 96px;
  --page-pad: clamp(1.25rem, 3vw, 2.5rem);
  --container: min(1400px, 100%);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --blur: blur(20px) saturate(1.4);
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.7;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 255, 255, 0.5), transparent 60%),
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
}

.site-header,
main,
.contact {
  position: relative;
  z-index: 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(232, 232, 232, 0.6);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--glass-border);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--header-height);
  padding: 1.25rem var(--page-pad) 1rem;
}

.site-logo {
  font-family: var(--font);
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  transition: opacity 0.3s;
}

.site-logo:hover {
  opacity: 0.6;
}

.site-nav {
  position: absolute;
  right: var(--page-pad);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.25rem;
  max-width: 55%;
}

.site-nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s;
}

.site-nav a:hover {
  color: var(--text);
}

.nav__toggle {
  display: none;
  position: absolute;
  right: var(--page-pad);
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 2;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Sections ── */
.section {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.section-head {
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--page-pad) clamp(1rem, 2vw, 1.5rem);
}

.section-head .page-title {
  display: inline-block;
  padding: 0.4rem 0;
}

.page-title {
  font-family: var(--font);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── About ── */
.about__name {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6b6b6b;
}

.about__layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-inline: var(--page-pad);
  align-items: start;
}

.about__image {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px 3px 0 0;
  box-shadow: none;
  display: block;
}

.about__caption {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-top: none;
  border-radius: 0 0 3px 3px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 20px 40px rgba(0, 0, 0, 0.12);
}

.about__caption em {
  font-style: normal;
  font-weight: 700;
}

.about__text {
  padding: clamp(1.5rem, 3vw, 2rem);
  max-width: 440px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
}

.about__text p {
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.75;
}

.text-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 2px solid var(--text);
  padding-bottom: 3px;
  transition: opacity 0.3s;
}

.text-link:hover {
  opacity: 0.5;
}

/* ── Featured logos ── */
.featured {
  padding: clamp(2rem, 4vw, 3rem) 0;
  margin-inline: var(--page-pad);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  overflow: hidden;
}

.featured__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999;
  text-align: center;
  margin-bottom: 1.25rem;
  padding-inline: clamp(1.25rem, 3vw, 2rem);
}

.featured__marquee {
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.featured__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.featured__logos {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 7vw, 5.5rem);
  padding-inline: clamp(2rem, 4vw, 3rem);
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .featured__track {
    animation: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .featured__logos:last-child {
    display: none;
  }

  .featured__marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

.featured__logo {
  height: clamp(26px, 3.5vw, 36px);
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.45;
  filter: grayscale(1);
  transition: opacity 0.3s, filter 0.3s;
}

.featured__logo:hover {
  opacity: 0.85;
  filter: grayscale(0);
}

.featured__logo--orms {
  height: clamp(30px, 4vw, 40px);
}

.featured__logo--canon {
  color: var(--text);
  height: clamp(28px, 3.5vw, 38px);
}

.featured__logo--chasing {
  height: clamp(32px, 4vw, 42px);
  filter: grayscale(1) brightness(0);
  opacity: 0.35;
}

.featured__logo--chasing:hover {
  opacity: 0.7;
  filter: grayscale(0) brightness(0);
}

.featured__logo--text {
  color: var(--text);
  height: clamp(28px, 4vw, 38px);
}

.featured__logo--grettie {
  color: var(--text);
  height: clamp(26px, 3.5vw, 34px);
}

.featured__logo--simbavati {
  height: clamp(22px, 3vw, 32px);
}

/* ── Gallery ── */
.section-head--gallery {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.gallery__size-toggle {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.gallery__size-toggle:hover,
.gallery__size-toggle[aria-pressed="true"] {
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.18);
  background: var(--glass-strong);
}

.gallery__grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.65rem, 1.5vw, 1rem);
  padding-inline: var(--page-pad);
  transition: gap 0.35s var(--ease);
}

.gallery__grid--large .gallery__item {
  width: clamp(12.5rem, 24vw, 17rem);
}

.gallery__item {
  width: clamp(9.75rem, 18.2vw, 13rem);
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  padding: 0;
  border: none;
  cursor: zoom-in;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: width 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s;
}

.gallery__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 12px 28px rgba(0, 0, 0, 0.12);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}

.lightbox__content {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 92vh;
}

.lightbox__content img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  font-size: 1.75rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.5rem;
  transition: color 0.25s;
}

.lightbox__close:hover {
  color: #fff;
}

/* ── Contact ── */
.contact {
  padding: clamp(3rem, 6vw, 5rem) var(--page-pad);
  margin-top: 1rem;
}

.contact__inner {
  max-width: 480px;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.5rem 0 2.5rem;
}

.contact__links a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.25s;
}

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

.contact__copy {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

/* ── Responsive ── */
@media (max-width: 1023px) {
  .about__layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about__text {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .site-header__inner {
    justify-content: flex-start;
    padding-bottom: 0.75rem;
  }

  .site-logo {
    font-size: 1.15rem;
    letter-spacing: 0.06em;
  }

  .nav__toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    transform: none;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(232, 232, 232, 0.92);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--glass-border);
    max-width: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  .page-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .featured__track {
    animation-duration: 50s;
  }
}
