/* ==========================================
   MuezMedya - Main Stylesheet
   ========================================== */

/* ===== RESET ===== */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  transition: background .5s ease, color .5s ease;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: none; font-family: inherit; }

/* ===== THEME VARIABLES ===== */
:root {
  --bg: #ffffff;
  --fg: #111111;
  --accent: #e63946;
  --accent-fg: #ffffff;
  --muted: #888;
  --soft: #f4f4f4;
  --border: rgba(0,0,0,0.1);
}
body.theme-black {
  --bg: #0a0a0a;
  --fg: #f4f4f4;
  --accent: #f4f4f4;
  --accent-fg: #0a0a0a;
  --muted: #777;
  --soft: #151515;
  --border: rgba(255,255,255,0.12);
}

@media (max-width: 900px) {
  body { cursor: auto; }
  button { cursor: pointer; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ===== PAGE LOADER ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: grid;
  place-items: center;
  transition: opacity .6s, visibility .6s;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-brand {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -2px;
  color: var(--fg);
  overflow: hidden;
  display: flex;
}
.loader-text {
  display: inline-block;
  animation: loaderFade 1.2s ease-out;
}
.loader-dot {
  color: var(--accent);
  display: inline-block;
  animation: loaderPulse 1s ease-in-out infinite;
}
.loader-bar {
  margin-top: 24px;
  width: 200px;
  height: 2px;
  background: var(--border);
  overflow: hidden;
  border-radius: 2px;
}
.loader-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  animation: loaderBar 1.2s ease-out forwards;
  transform-origin: left;
}
@keyframes loaderFade {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}
@keyframes loaderBar {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* ===== CUSTOM CURSOR ===== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  transition: transform .1s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent);
  opacity: 0.5;
  transition: transform .2s ease-out, width .3s, height .3s, opacity .3s;
}
.cursor-ring.hover-link {
  width: 60px; height: 60px;
  opacity: 0.8;
  background: rgba(230, 57, 70, 0.1);
}

/* ===== FLASH MESSAGES ===== */
.flash-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}
.flash {
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  animation: flashIn .4s ease-out, flashOut .4s ease-in 4.5s forwards;
}
.flash-success { background: #22c55e; }
.flash-error { background: #ef4444; }
@keyframes flashIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes flashOut { from { opacity: 1; } to { opacity: 0; transform: translateX(120%); } }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: padding .3s ease, background .3s;
}
.site-header.scrolled {
  padding: 12px 40px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
}
body.theme-black .site-header.scrolled { background: rgba(10,10,10,0.95); }
.header-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  justify-self: start;
  animation: headerDotPulse 2s ease-in-out infinite;
}
@keyframes headerDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
.logo {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--fg);
  transition: transform .3s;
}
.logo:hover { transform: scale(1.05); }
.logo .dot { color: var(--accent); }

.header-right {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-self: end;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
}
.lang-group { display: flex; gap: 6px; }
.lang-group button {
  background: none; border: none; color: var(--muted);
  font: inherit; letter-spacing: inherit;
  padding: 4px 2px; transition: color .2s;
}
.lang-group button.active { color: var(--accent); }
.lang-group .sep { color: var(--muted); }

.menu-btn {
  background: none; border: none;
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px;
  transition: transform .3s;
}
.menu-btn:hover { transform: rotate(90deg); }
.menu-btn span {
  width: 26px; height: 2px;
  background: var(--accent);
  display: block;
  transition: all .3s;
}
.menu-btn:hover span:nth-child(1) { width: 18px; }
.menu-btn:hover span:nth-child(3) { width: 22px; }

/* ===== HERO / CITIES ===== */
.hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 100vh;
  padding-top: 72px;
  position: relative;
}
.city {
  position: relative;
  overflow: hidden;
  background: #222;
  transition: flex .6s ease;
  cursor: none;
}
.city-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.1);
  transition: filter .8s ease, transform .8s ease;
  animation: kenBurns 20s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 1) * -5s);
}
@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.15) translate(-2%, -2%); }
}
.city:hover .city-image {
  filter: grayscale(0%) contrast(1);
  animation-play-state: paused;
  transform: scale(1.08);
}
.city-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
  transition: opacity .6s;
}
.city:hover .city-overlay { opacity: 0.4; }

.city-name {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  font-family: 'Nunito', sans-serif;
  font-weight: 300;
  font-size: clamp(32px, 4.2vw, 68px);
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
  z-index: 2;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
  white-space: nowrap;
  opacity: 0;
  animation: cityNameIn .9s cubic-bezier(0.22,1,0.36,1) forwards;
  animation-delay: calc(var(--i, 1) * 0.2s + 1s);
}
@keyframes cityNameIn {
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.city:hover .city-name {
  letter-spacing: 2px;
  transition: letter-spacing .6s;
}

.scroll-arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  border: none;
  animation: bounce 2.2s ease-in-out infinite;
  box-shadow: 0 6px 24px rgba(230,57,70,0.4);
  transition: transform .3s;
}
.scroll-arrow:hover { transform: translateX(-50%) scale(1.15); }
.scroll-arrow::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: arrowPing 2.2s ease-out infinite;
}
.scroll-arrow svg { stroke: #fff; width: 20px; height: 20px; }
@keyframes arrowPing {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.6); }
}

/* ===== BRAND STORY ===== */
.brand-story {
  background: var(--soft);
  padding: 140px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.brand-story::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.04;
  animation: blob 12s ease-in-out infinite;
}
.brand-story::after {
  content: "";
  position: absolute;
  bottom: -80px; left: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.05;
  animation: blob 15s ease-in-out infinite reverse;
}
@keyframes blob {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}
.brand-mark {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(55px, 10vw, 160px);
  letter-spacing: -4px;
  line-height: 1;
  margin-bottom: 60px;
  color: #ddd;
  position: relative;
  z-index: 2;
}
body.theme-black .brand-mark { color: #222; }
.brand-mark .name {
  color: var(--fg);
  background: linear-gradient(135deg, var(--fg), var(--fg));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 6s ease-in-out infinite;
}
.brand-mark .dot {
  color: var(--accent);
  display: inline-block;
  animation: dotBounce 2s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 200% center; }
  50% { background-position: -200% center; }
}
@keyframes dotBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.brand-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  font-weight: 400;
  position: relative;
  z-index: 2;
}
.brand-text em {
  font-style: italic;
  font-weight: 700;
  color: var(--fg);
  position: relative;
  display: inline-block;
}
.brand-text em::before {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  bottom: 2px;
  height: 8px;
  background: var(--accent);
  opacity: 0.15;
  z-index: -1;
  border-radius: 2px;
}
.brand-text p + p { margin-top: 24px; }

/* ===== SERVICES ===== */
.services {
  padding: 140px 40px;
  text-align: center;
  position: relative;
}
.section-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: 2px;
  color: var(--fg);
}
.dot-pair {
  display: flex; justify-content: center; gap: 16px;
  margin: 24px 0 80px;
  align-items: center;
}
.dot-pair .red {
  width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
  animation: dotFloat 2.6s ease-in-out infinite;
}
.dot-pair .yellow {
  width: 7px; height: 7px; border-radius: 50%; background: #ffd60a;
  animation: dotFloat 2.6s ease-in-out infinite .4s;
}
@keyframes dotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.services-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-right: none;
  border-bottom: none;
}
.service {
  padding: 48px 30px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: color .3s, background .4s, transform .4s;
  position: relative;
  overflow: hidden;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform .4s ease;
  z-index: 0;
}
.service::after {
  content: "→";
  position: absolute;
  top: 20px; right: 20px;
  font-size: 20px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .4s, transform .4s;
  z-index: 1;
}
.service > * { position: relative; z-index: 1; }
.service:hover { color: #fff; }
.service:hover::before { transform: translateY(0); }
.service:hover::after { opacity: 1; transform: translateX(0); color: #fff; }

/* ===== BANNER ===== */
.banner {
  position: relative;
  height: 80vh;
  overflow: hidden;
  background: #000;
}
.banner-image {
  position: absolute;
  inset: -10% 0;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
  transition: transform .8s;
}
.banner:hover .banner-image { transform: scale(1.04); }
.banner-caption {
  position: absolute;
  bottom: 60px;
  left: 60px;
  background: rgba(255,255,255,0.95);
  padding: 32px 38px;
  max-width: 400px;
  z-index: 2;
  backdrop-filter: blur(10px);
  border-left: 4px solid var(--accent);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.banner-caption h3 {
  font-weight: 700;
  font-size: 22px;
  color: #111;
  line-height: 1.3;
  margin-bottom: 12px;
}
.banner-caption p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* ===== PORTFOLIO ===== */
.portfolio {
  padding: 120px 0 80px;
  position: relative;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 200px;
  gap: 6px;
  padding: 0 6px;
}
.portfolio-item {
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: none;
  transition: transform .5s cubic-bezier(0.2,1,0.3,1), box-shadow .5s;
  overflow: hidden;
}
.portfolio-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230,57,70,0.8) 0%, rgba(0,0,0,0.5) 100%);
  opacity: 0;
  transition: opacity .4s;
  z-index: 1;
}
.portfolio-item:hover {
  transform: scale(1.04);
  z-index: 5;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.portfolio-item:hover::before { opacity: 0.85; }

.portfolio-caption {
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  background: #fff;
  padding: 24px 28px;
  max-width: 280px;
  z-index: 3;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.portfolio-caption h3 {
  font-weight: 400;
  font-size: 17px;
  color: #222;
  line-height: 1.4;
  margin-bottom: 12px;
}
.portfolio-caption p {
  font-weight: 700;
  font-size: 12px;
  color: #444;
  line-height: 1.5;
}

/* ===== REFERENCES ===== */
.references {
  padding: 120px 40px 140px;
  text-align: center;
}
.references-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 90px;
  letter-spacing: 1px;
}
.references-title .highlight { color: var(--accent); }

.logo-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px 40px;
  align-items: center;
}
.logo-cell {
  height: 70px;
  display: grid;
  place-items: center;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: opacity .4s, filter .4s, transform .4s;
}
.logo-cell:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-4px);
}
.logo-cell img { max-height: 60px; max-width: 100%; width: auto; }
.logo-placeholder {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #aaa;
  letter-spacing: 1px;
  text-align: center;
  padding: 16px 12px;
  border: 1px dashed var(--border);
  border-radius: 4px;
  width: 100%;
}

/* ===== CONTACT ===== */
.contact {
  padding: 120px 40px;
  background: var(--soft);
  position: relative;
  overflow: hidden;
}
.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.contact-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 50px;
}
.contact-form {
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field {
  position: relative;
  margin-bottom: 24px;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 18px 16px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  font: inherit;
  font-size: 15px;
  color: var(--fg);
  outline: none;
  transition: border-color .3s, box-shadow .3s;
  border-radius: 4px;
  resize: vertical;
}
.form-field label {
  position: absolute;
  top: 18px; left: 16px;
  font-size: 14px;
  color: var(--muted);
  pointer-events: none;
  transition: all .2s ease;
  background: var(--bg);
  padding: 0 4px;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field input:not(:placeholder-shown),
.form-field textarea:not(:placeholder-shown) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
}
.form-field input:focus + label,
.form-field textarea:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}

.submit-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 16px 36px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all .3s;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}
.submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  transform: translateX(-100%);
  transition: transform .4s;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(230,57,70,0.4); }
.submit-btn:hover::before { transform: translateX(100%); }
.submit-btn svg { width: 18px; height: 18px; transition: transform .3s; }
.submit-btn:hover svg { transform: translateX(4px); }

.contact-info {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
.contact-info a { color: var(--fg); transition: color .2s; }
.contact-info a:hover { color: var(--accent); }

/* ===== FAQ STRIP ===== */
.faq-strip {
  padding: 40px;
  background: var(--bg);
  text-align: center;
  border-top: 1px solid var(--border);
}
.faq-btn {
  background: none;
  border: 1px solid var(--fg);
  padding: 16px 36px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fg);
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.faq-btn::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
  z-index: -1;
}
.faq-btn:hover { color: #fff; border-color: var(--accent); }
.faq-btn:hover::before { transform: scaleX(1); }

/* ===== FOOTER ===== */
.site-footer {
  background: #0a0a0a;
  color: #888;
  padding: 50px 40px 30px;
  text-align: center;
  font-size: 12px;
}
.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer-tag {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: #aaa;
}
.social-icons { display: flex; gap: 16px; }
.social-icons a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #aaa;
  transition: all .3s;
}
.social-icons a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-4px) rotate(8deg);
}
.social-icons svg { width: 15px; height: 15px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #666;
}
.footer-bottom a { color: #aaa; transition: color .2s; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .design { display: flex; align-items: center; gap: 6px; }
.footer-bottom .design .dot-sm {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  animation: dotBounce 2s ease-in-out infinite;
}

/* ===== MENU OVERLAY ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--accent);
  z-index: 200;
  display: grid;
  place-items: center;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .7s cubic-bezier(0.77,0,0.175,1);
  pointer-events: none;
}
.menu-overlay.open {
  clip-path: circle(150% at calc(100% - 40px) 40px);
  pointer-events: auto;
}
.menu-close {
  position: absolute;
  top: 30px; right: 40px;
  width: 44px; height: 44px;
  background: none; border: none;
  color: #fff;
  font-size: 0;
  transition: transform .3s;
}
.menu-close:hover { transform: rotate(90deg); }
.menu-close::before, .menu-close::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 30px; height: 2px; background: #fff;
}
.menu-close::before { transform: translate(-50%,-50%) rotate(45deg); }
.menu-close::after { transform: translate(-50%,-50%) rotate(-45deg); }

.menu-overlay ul {
  list-style: none;
  text-align: center;
}
.menu-overlay li {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 6vw, 64px);
  color: #fff;
  letter-spacing: 4px;
  line-height: 1.4;
  cursor: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .5s, transform .5s, letter-spacing .4s;
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 4px 20px;
}
.menu-overlay.open li { opacity: 1; transform: translateY(0); }
.menu-overlay.open li:nth-child(1) { transition-delay: .3s; }
.menu-overlay.open li:nth-child(2) { transition-delay: .4s; }
.menu-overlay.open li:nth-child(3) { transition-delay: .5s; }
.menu-overlay.open li:nth-child(4) { transition-delay: .6s; }
.menu-overlay.open li:nth-child(5) { transition-delay: .7s; }
.menu-overlay.open li:nth-child(6) { transition-delay: .8s; }
.menu-overlay li::before {
  content: attr(data-text);
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-style: italic;
  font-weight: 400;
  font-size: 40%;
  letter-spacing: 8px;
  opacity: 0;
  transition: opacity .3s, top .3s;
}
.menu-overlay li:hover { letter-spacing: 10px; }
.menu-overlay li:hover::before { opacity: 1; top: 110%; }

.theme-switch-note {
  position: absolute;
  bottom: 30px; right: 40px;
  display: flex;
  gap: 16px;
  align-items: center;
  color: #fff;
  font-style: italic;
  font-size: 13px;
}
.toggle-switch {
  width: 46px; height: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.25);
  border: none;
  position: relative;
  padding: 0;
  transition: background .3s;
}
.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left .3s;
}
body.theme-black .toggle-switch::after { left: 25px; }

/* ===== FAQ MODAL ===== */
.faq-modal {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 250;
  overflow-y: auto;
  padding: 40px;
  transform: translateY(100%);
  transition: transform .6s cubic-bezier(0.7,0,0.3,1);
}
.faq-modal.open { transform: translateY(0); }
.faq-close {
  position: fixed;
  top: 24px; right: 40px;
  width: 44px; height: 44px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 22px;
  color: var(--fg);
  z-index: 260;
  transition: transform .3s, background .3s;
}
.faq-close:hover { transform: rotate(90deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq-inner {
  max-width: 820px;
  margin: 80px auto 40px;
}
.faq-inner h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 50px;
  letter-spacing: -1px;
}
.faq-inner h2 .dot { color: var(--accent); }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease var(--delay, 0s), transform .5s ease var(--delay, 0s);
}
.faq-modal.open .faq-item { opacity: 1; transform: translateY(0); }
.faq-q {
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  padding: 14px 0;
  transition: color .3s;
  user-select: none;
}
.faq-q:hover { color: var(--accent); }
.faq-num { color: var(--accent); font-weight: 800; min-width: 30px; }
.faq-toggle {
  margin-left: auto;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font-size: 22px;
  color: var(--accent);
  transition: transform .4s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s ease;
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  padding: 8px 0 20px 42px;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transition-property: opacity, transform, filter;
  transition-duration: .9s;
  transition-timing-function: cubic-bezier(0.22,1,0.36,1);
  transition-delay: var(--delay, 0s);
}
.reveal[data-reveal="fade-up"] { transform: translateY(40px); }
.reveal[data-reveal="fade-down"] { transform: translateY(-40px); }
.reveal[data-reveal="fade-right"] { transform: translateX(-40px); }
.reveal[data-reveal="fade-left"] { transform: translateX(40px); }
.reveal[data-reveal="zoom-in"] { transform: scale(0.9); filter: blur(6px); }
.reveal[data-reveal="fade-in"] { transform: none; }

.reveal.in-view {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Letter reveal for brand mark */
.reveal[data-reveal="letters"] .name,
.reveal[data-reveal="letters"] .dot {
  opacity: 0;
  display: inline-block;
  transform: translateY(40px);
  transition: opacity .8s, transform .8s;
}
.reveal[data-reveal="letters"].in-view .name {
  opacity: 1; transform: translateY(0);
  transition-delay: .1s;
}
.reveal[data-reveal="letters"].in-view .dot {
  opacity: 1; transform: translateY(0);
  transition-delay: .4s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .site-header { padding: 16px 20px; grid-template-columns: auto auto auto; }
  .logo { font-size: 22px; }
  .header-right { gap: 12px; font-size: 11px; }
  .brand-story, .services, .contact { padding: 80px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .banner { height: 60vh; }
  .banner-caption { bottom: 20px; left: 20px; right: 20px; max-width: none; padding: 20px 24px; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; }
  .portfolio-caption { position: static; transform: none; max-width: none; margin: 10px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .references { padding: 80px 20px; }
  .site-footer { padding: 40px 20px 24px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .faq-inner { margin: 60px auto 20px; }
  .faq-modal, .faq-strip { padding: 24px; }
  .faq-close { top: 16px; right: 20px; }
  .theme-switch-note { bottom: 20px; right: 20px; font-size: 11px; }
  .flash-container { top: 80px; right: 10px; left: 10px; max-width: none; }
}
@media (max-width: 520px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: repeat(4, 25vh); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .city-name { font-size: clamp(26px, 7vw, 40px); }
  .logo-grid { grid-template-columns: 1fr; }
}

/* ===== KEYFRAMES (extra) ===== */
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== UTILITIES ===== */
::selection { background: var(--accent); color: #fff; }
