/* ============================================================
   Bino — Studio (Goodform-inspired layout)
   Minimal, cinematic, editorial. Bino brand accent retained.
   ============================================================ */
:root {
  --bg: #060507;
  --bg-2: #0b0910;
  --surface: #100c18;
  --border: rgba(255, 255, 255, 0.10);
  --purple: #592398;
  --purple-bright: #8b3fe8;
  --purple-glow: #a35bff;
  --white: #ffffff;
  --text: #edeaf3;
  --muted: #9a94a8;
  --maxw: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .btn, .nav__cta, .filter { font-family: "Oswald", sans-serif; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 30px; border-radius: 40px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; transition: transform 0.25s var(--ease), background 0.3s, box-shadow 0.3s, color 0.3s;
  border: 1px solid transparent; white-space: nowrap;
}
.btn--lg { padding: 18px 46px; font-size: 0.9rem; }
.btn--primary {
  background: var(--purple-bright); color: var(--white);
  box-shadow: 0 10px 40px -12px var(--purple-glow);
}
.btn--primary:hover { background: var(--purple-glow); box-shadow: 0 16px 50px -12px var(--purple-glow); }
.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--purple-glow); color: var(--white); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 5, 7, 0.82);
  backdrop-filter: blur(14px);
  padding: 14px 40px;
  border-bottom: 1px solid var(--border);
}
.nav__logo { height: 56px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 34px; }

/* Brand hover swap — replace eye with full logo, with a magic effect */
.nav__brand { position: relative; display: inline-flex; }
.nav__logo { height: 56px; width: auto; display: block; transition: opacity 0.4s var(--ease), transform 0.55s var(--ease), filter 0.5s var(--ease); }
.brand__full {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%) scale(0.85) rotate(-6deg);
  opacity: 0; filter: blur(8px); pointer-events: none;
  width: auto; max-width: none;
}
.nav__brand:hover .brand__eye {
  opacity: 0; transform: scale(1.15) rotate(6deg); filter: blur(6px);
}
.nav__brand:hover .brand__full {
  opacity: 1; transform: translateY(-50%) scale(1) rotate(0);
  filter: blur(0) drop-shadow(0 0 12px var(--purple-glow));
}
@media (prefers-reduced-motion: reduce) {
  .nav__logo { transition: opacity 0.2s; }
  .nav__brand:hover .brand__eye, .nav__brand:hover .brand__full { transform: translateY(-50%); filter: none; }
  .nav__brand:hover .brand__eye { transform: none; }
}

.nav__links a {
  font-family: "Oswald", sans-serif;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; position: relative; transition: color 0.25s;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--purple-bright); transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--purple-bright); color: var(--white) !important;
  padding: 9px 22px; border-radius: 40px; font-weight: 600;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav__cta:hover { background: var(--purple-bright); box-shadow: 0 8px 30px -10px var(--purple-glow); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--white); transition: transform 0.3s, opacity 0.3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  text-align: center; padding: 0 0 40px; position: relative; overflow: hidden;
  background: var(--bg);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: saturate(1.05) contrast(1.05) brightness(0.9);
  transition: opacity 0.5s var(--ease);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(1200px 800px at 50% 40%, rgba(139, 63, 232, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(6, 5, 7, 0.6) 0%, rgba(6, 5, 7, 0.32) 30%, rgba(6, 5, 7, 0.4) 65%, rgba(6, 5, 7, 0.95) 100%);
  mix-blend-mode: normal;
}
.hero__inner { max-width: 900px; position: relative; z-index: 2; padding: 0 24px; margin-top: auto; }
.hero__display {
  position: relative;
  font-weight: 700; line-height: 0.92; letter-spacing: -0.01em; text-transform: uppercase;
  font-size: clamp(3.4rem, 12vw, 9rem);
  display: grid; place-items: center; margin-bottom: 28px;
}
.hero__word {
  grid-area: 1 / 1; opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  background: linear-gradient(180deg, #fff, #c9bfe0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__word.is-active { opacity: 1; transform: translateY(0); }
.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.4rem); color: var(--text); max-width: 640px; margin: 0 auto 10px;
}
.hero__sub { color: var(--muted); max-width: 620px; margin: 0 auto 34px; }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: relative; margin: 40px auto 0; z-index: 2;
  font-family: "Oswald", sans-serif; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll::after {
  content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0;
  background: linear-gradient(var(--purple-glow), transparent); animation: scrollPulse 1.8s var(--ease) infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.4; transform: scaleY(0.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Work ---------- */
.work { padding: 22px 0 0; }
.work__head {
  max-width: var(--maxw); margin: 0 auto 20px; padding: 0 24px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.work__logo { justify-self: center; width: clamp(150px, 16vw, 210px); height: auto; opacity: 0.95; }
.work__title {
  font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em;
  justify-self: start;
}
.work__title-accent {
  background: linear-gradient(120deg, var(--purple-glow), var(--purple-bright), var(--purple-glow));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
  filter: drop-shadow(0 0 20px rgba(139, 63, 232, 0.4));
}
@keyframes shimmer { to { background-position: 200% center; } }
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-self: end; justify-content: flex-end; }
.filter {
  background: none; border: 1px solid var(--border); color: var(--muted);
  padding: 9px 20px; border-radius: 40px; cursor: pointer;
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.filter:hover { color: var(--white); border-color: var(--purple-glow); }
.filter.is-active { color: var(--white); background: var(--purple-bright); border-color: var(--purple-bright); }

/* ---------- Work boxes (six-up grid) ---------- */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.card {
  position: relative; overflow: hidden; border-radius: 14px; width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--surface) var(--poster) center / cover no-repeat;
  border: 1px solid var(--border);
}
.card--wide, .card--tall, .card--big { grid-column: auto; grid-row: auto; }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6, 5, 7, 0.15) 0%, transparent 35%, rgba(6, 5, 7, 0.9) 100%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.card__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 1; z-index: 0; transition: transform 0.7s var(--ease);
  background: #000;
}
.card__overlay {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 20px 22px;
  opacity: 0; transform: translateY(14px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.card__cat {
  display: inline-block; font-family: "Oswald", sans-serif; font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--purple-glow); margin-bottom: 6px;
}
.card__title { font-size: 1.35rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.01em; }
.card:hover { border-color: var(--purple-glow); }
.card:hover::before { opacity: 1; }
.card:hover .card__overlay { opacity: 1; transform: none; }
.card:hover .card__video { transform: scale(1.05); }
.card.is-hidden { display: none; }

/* ---------- Video lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 5, 7, 0.88); backdrop-filter: blur(6px);
}
.lightbox__dialog {
  position: relative; z-index: 1; width: min(1100px, 100%);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transform: scale(0.96); transition: transform 0.3s var(--ease);
}
.lightbox.is-open .lightbox__dialog { transform: scale(1); }
.lightbox__stage {
  flex: 1 1 auto; min-width: 0;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  background: #000; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
}
.lightbox__video {
  display: block; width: 100%; max-height: 82vh;
  aspect-ratio: 16 / 9; object-fit: contain; background: #000;
}
.lightbox__nav {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  font-size: 2rem; line-height: 1; color: var(--white);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.lightbox__nav:hover { background: var(--purple); border-color: var(--purple-glow); transform: scale(1.06); }
.lightbox__close {
  position: absolute; top: -18px; right: -6px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--white);
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lightbox__close:hover { background: var(--purple); border-color: var(--purple-glow); }
.lightbox__meta {
  position: absolute; left: 62px; bottom: -46px;
}
.lightbox__cat {
  display: block; font-family: "Oswald", sans-serif; font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--purple-glow); margin-bottom: 2px;
}
.lightbox__title { font-size: 1.15rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.01em; }
@media (max-width: 720px) {
  .lightbox { padding: 16px; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.5rem; }
  .lightbox__meta { left: 52px; bottom: -42px; }
  .lightbox__title { font-size: 1rem; }
}

/* ---------- About ---------- */
.about { padding: 100px 40px; max-width: 1000px; margin: 0 auto; text-align: center; }
.about__kicker {
  font-family: "Oswald", sans-serif; font-size: 0.78rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--purple-glow);
}
.about__title {
  font-size: clamp(1.8rem, 4.5vw, 3.4rem); font-weight: 500; line-height: 1.12;
  margin: 20px auto 32px; max-width: 860px; text-transform: uppercase; letter-spacing: -0.01em;
}
.about__body { max-width: 640px; margin: 0 auto 34px; display: grid; gap: 18px; }
.about__body p { color: var(--muted); font-size: 1.02rem; }

/* ---------- Partners marquee ---------- */
.partners { padding: 40px 0 80px; border-top: 1px solid var(--border); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 42s linear infinite; }
.marquee__track img { height: 30px; width: auto; object-fit: contain; opacity: 0.55; filter: grayscale(1) brightness(1.6); transition: opacity 0.3s, filter 0.3s; }
.marquee__track img:hover { opacity: 1; filter: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Contact ---------- */
.contact {
  padding: 120px 40px; text-align: center;
  background: radial-gradient(800px 500px at 50% 100%, rgba(139, 63, 232, 0.18), transparent 70%), var(--bg-2);
  border-top: 1px solid var(--border);
}
.contact__title {
  font-size: clamp(2.6rem, 8vw, 6rem); font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.01em; margin-bottom: 0;
  background: linear-gradient(180deg, #fff, #c9bfe0); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact__title-link { display: inline-block; transition: transform 0.3s var(--ease); }
.contact__title-link:hover { transform: translateY(-4px); }
.contact__title-link:hover .contact__title { background: linear-gradient(180deg, #fff, var(--purple-glow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact__meta { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: 0.95rem; }
.contact__meta a:hover { color: var(--white); }

/* ---------- Footer ---------- */
.footer { padding: 50px 40px 40px; border-top: 1px solid var(--border); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer__logo { height: 52px; width: auto; }
.footer__links, .footer__socials { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a, .footer__socials a {
  font-family: "Oswald", sans-serif; font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); transition: color 0.25s;
}
.footer__links a:hover, .footer__socials a:hover { color: var(--white); }
.footer__copy { max-width: var(--maxw); margin: 28px auto 0; color: var(--muted); font-size: 0.78rem; }

/* ---------- Contact page ---------- */
.contactpage { padding: 150px 40px 80px; max-width: var(--maxw); margin: 0 auto; }
.contactpage__head {
  text-align: center; max-width: 820px; margin: 0 auto 56px;
}
.contactpage__headtext { flex: 1 1 480px; max-width: 760px; display: flex; flex-direction: column; justify-content: center; }
.contactpage__kicker {
  font-family: "Oswald", sans-serif; font-size: 0.78rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--purple-glow);
}
.contactpage__title {
  font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 0.95; margin: 16px 0 22px;
  background: linear-gradient(180deg, #fff, #c9bfe0); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contactpage__lead { color: var(--muted); font-size: 1.05rem; max-width: 620px; margin: 0 auto; }

/* Two-column body: details + tall map fill the space */
.contactpage__grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: stretch;
}

/* Contact panel (left) */
.contactpanel {
  display: flex; flex-direction: column; gap: 28px; justify-content: center;
  padding: 44px 40px; border-radius: 18px;
  border: 1px solid var(--border);
  background:
    radial-gradient(130% 120% at 0% 0%, rgba(139, 63, 232, 0.16), transparent 60%),
    var(--surface);
  box-shadow: 0 30px 80px -46px rgba(139, 63, 232, 0.7);
}
.contactpanel__row { display: flex; flex-direction: column; gap: 10px; }
.contactpanel__label {
  font-family: "Oswald", sans-serif; font-size: 0.74rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--purple-glow);
}
.contactpanel__value { font-size: 1.15rem; color: var(--text); transition: color 0.25s; }
.contactpanel__value:hover { color: var(--purple-glow); }
.contactpanel__name {
  font-family: "Oswald", sans-serif; font-size: 1.4rem; text-transform: uppercase;
  letter-spacing: 0.01em; color: var(--text); line-height: 1.2;
}
.contactpanel__name span { color: var(--purple-glow); }
.contactpanel__lines { display: grid; gap: 8px; }
.contactpanel__lines a { font-size: 1.05rem; color: var(--text); transition: color 0.25s; }
.contactpanel__lines a:hover { color: var(--purple-glow); }
.contactpanel__cta { align-self: flex-start; margin-top: 4px; }
.contactpage__socials { display: flex; gap: 16px; flex-wrap: wrap; }
.contactpage__socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--muted);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.contactpage__socials a:hover {
  color: var(--white); border-color: var(--purple-glow);
  background: rgba(139, 63, 232, 0.14); transform: translateY(-3px);
}
.contactpage__socials svg { width: 20px; height: 20px; fill: currentColor; }
.contactpage__map {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); width: 100%; height: 100%; min-height: 460px;
  box-shadow: 0 30px 80px -40px rgba(139, 63, 232, 0.5);
}
.contactpage__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.4) invert(0.92) hue-rotate(180deg) brightness(0.95) contrast(0.95); }

/* ---------- About page ---------- */
.aboutpage { padding: 150px 40px 0; }
.aboutpage__hero { max-width: var(--maxw); margin: 0 auto 70px; text-align: center; }
.aboutpage__kicker {
  font-family: "Oswald", sans-serif; font-size: 0.78rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--purple-glow);
}
.aboutpage__title {
  font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 600; line-height: 1.05;
  text-transform: uppercase; letter-spacing: -0.01em; margin: 18px auto 0; max-width: 980px;
  background: linear-gradient(180deg, #fff, #c9bfe0); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.aboutpage__intro {
  max-width: var(--maxw); margin: 0 auto 90px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.aboutpage__body { display: grid; gap: 20px; }
.aboutpage__body p { color: var(--muted); font-size: 1.08rem; }
.aboutpage__body strong { color: var(--text); font-weight: 600; }
.aboutpage__figure {
  position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 4 / 5; min-height: 420px;
  background: var(--surface) url('../img/production.png') center / cover no-repeat;
  box-shadow: 0 30px 80px -40px rgba(139, 63, 232, 0.5);
}
.aboutpage__figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 5, 7, 0.7));
}
.aboutpage__values {
  max-width: var(--maxw); margin: 0 auto; padding: 0 0 100px;
}
.aboutpage__values-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.aboutpage__values-title {
  font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 500; text-transform: uppercase; letter-spacing: -0.01em;
}
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card {
  border: 1px solid var(--border); border-radius: 16px; padding: 34px 28px;
  background: linear-gradient(180deg, var(--surface), transparent);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.value-card:hover { transform: translateY(-6px); border-color: var(--purple-glow); }
.value-card__num { font-family: "Oswald", sans-serif; font-size: 0.8rem; letter-spacing: 0.2em; color: var(--purple-glow); }
.value-card h3 { font-size: 1.5rem; font-weight: 500; text-transform: uppercase; margin: 12px 0 10px; }
.value-card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contactpage__grid { grid-template-columns: 1fr; gap: 24px; }
  .contactpage__map { aspect-ratio: 16 / 11; height: auto; min-height: 340px; }
  .aboutpage__intro { grid-template-columns: 1fr; gap: 40px; }
  .aboutpage__figure { aspect-ratio: 16 / 11; min-height: 320px; }
  .values-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
  .nav__links {
    position: fixed; inset: 0 0 auto 0; top: 62px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(6, 5, 7, 0.97); backdrop-filter: blur(14px);
    padding: 18px 20px 24px; border-bottom: 1px solid var(--border);
    transform: translateY(-140%); transition: transform 0.4s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { font-size: 1rem; padding: 12px 4px; }
  .nav__links a:not(.nav__cta)::after { display: none; }
  .nav__cta { text-align: center; margin-top: 10px; padding: 13px 22px; }
  .nav__toggle { display: flex; }

  .work, .about, .contact, .footer, .contactpage, .aboutpage, .aboutpage__values { padding-left: 20px; padding-right: 20px; }
  .work { padding-top: 64px; }
  .work__head { margin-bottom: 22px; grid-template-columns: 1fr auto; }
  .work__logo { display: none; }
  .grid { grid-template-columns: 1fr; gap: 12px; }

  .about { padding-top: 70px; padding-bottom: 70px; }
  .aboutpage { padding-top: 110px; }
  .aboutpage__hero { margin-bottom: 46px; }
  .aboutpage__values { padding-bottom: 70px; }

  .contact { padding: 80px 20px; }
  .contactpage { padding-top: 116px; padding-bottom: 60px; }

  .footer { padding: 40px 20px 34px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }

  .partners { padding: 30px 0 60px; }
}
@media (max-width: 480px) {
  .nav__logo { height: 46px; }
  .contact__title { font-size: clamp(2rem, 12vw, 3rem); }
  .contactpage__title { font-size: clamp(2.1rem, 13vw, 3.2rem); }
  .aboutpage__title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .work__title { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .card { aspect-ratio: 16 / 11; }
  .contactpage__socials a { width: 42px; height: 42px; }
  .contactpage__lines a, .contactpage__mdmail { font-size: 1rem; }
  .btn--lg { padding: 15px 34px; font-size: 0.82rem; }
}

/* ---------- Language toggle ---------- */
.lang-toggle {
  font-family: "Oswald", "Tajawal", sans-serif; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 40px; cursor: pointer; min-width: 52px; text-align: center;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.lang-toggle:hover { border-color: var(--purple-bright); background: rgba(139, 63, 232, 0.12); color: var(--white); }
@media (max-width: 720px) {
  .lang-toggle { margin-top: 10px; width: 100%; }
}

/* ---------- RTL / Arabic ---------- */
[dir="rtl"] body { font-family: "Tajawal", "Inter", system-ui, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] .btn, [dir="rtl"] .nav__cta, [dir="rtl"] .filter,
[dir="rtl"] .work__title { font-family: "Tajawal", "Oswald", sans-serif; }
/* Letter-spacing designed for Latin caps breaks Arabic letter joining. */
[dir="rtl"] body,
[dir="rtl"] body * { letter-spacing: normal; }
