/* ============================================
   HAMANDI INTERIORS - Luxury Minimal Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* --- Hamandi brand palette (per Brand Guidelines) --- */
  --black: #0a0a0a;
  --charcoal: #202020;        /* brand Charcoal (primary) */
  --dark: #2a2a2a;
  --gray: #888;
  --beige: #dfddd3;           /* brand Muted Beige (primary) */
  --taupe: #b3a896;           /* brand secondary - warm taupe */
  --olive: #48463d;           /* brand secondary - deep olive */
  --taupe-grey: #a8a596;      /* brand secondary - cool taupe */
  --light-gray: #dfddd3;
  --off-white: #f4f1ec;
  --white: #fff;
  /* Accent (replaces former gold) - brand warm neutrals */
  --gold: #b3a896;            /* warm taupe accent */
  --gold-light: #cfc7b8;      /* light taupe for dark backgrounds */
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-heading: 'Lato', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Lato', -apple-system, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-label.light { color: var(--gold-light); }

.section-title { margin-bottom: 24px; }
.section-title.light { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.7;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--charcoal);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary:hover {
  background: transparent;
  color: var(--charcoal);
}

.btn-primary.light {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.btn-primary.light:hover {
  background: transparent;
  color: var(--white);
}

.btn-text {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color var(--transition);
}

.btn-text span {
  display: inline-block;
  transition: transform var(--transition);
}

.btn-text:hover { color: var(--gold); }
.btn-text:hover span { transform: translateX(4px); }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.navbar.scrolled .nav-links a,
.navbar.scrolled .logo-text,
.navbar.scrolled .logo-sub {
  color: var(--charcoal);
}

.navbar.scrolled .hamburger span {
  background: var(--charcoal);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

/* Dark logo (for light backgrounds) */
.navbar-dark .logo-text,
.navbar-dark .logo-sub,
.navbar-dark .nav-links a {
  color: var(--charcoal);
}

.navbar-dark .hamburger span {
  background: var(--charcoal);
}

.navbar-dark .lang-toggle {
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-appointment {
  padding: 10px 24px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  transition: all var(--transition);
}

.navbar.scrolled .btn-appointment,
.navbar-dark .btn-appointment {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.navbar.scrolled .btn-appointment:hover,
.navbar-dark .btn-appointment:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn-appointment:hover {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.lang-toggle {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--white);
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 12px;
  cursor: pointer;
  transition: all var(--transition);
}

.navbar.scrolled .lang-toggle {
  color: var(--charcoal);
  border-color: rgba(0,0,0,0.2);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--transition);
}

@keyframes scrollLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* --- Page Header (for inner pages) --- */
.page-header {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.5) 100%
  );
}

.page-header-content {
  position: relative;
  z-index: 2;
  padding: 0 0 60px 0;
  width: 100%;
}

.page-header-content .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 520px;
}

/* --- Section Spacing --- */
.section {
  padding: 120px 0;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.about-content .about-text {
  margin-bottom: 40px;
}

.about-content .about-text p {
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--light-gray);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--charcoal);
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

/* --- Brands Section (Homepage) --- */
.brands { background: var(--off-white); }

.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.brand-card {
  background: var(--white);
  overflow: hidden;
  transition: transform var(--transition);
}

.brand-card:hover { transform: translateY(-4px); }

.brand-image {
  overflow: hidden;
  height: 280px;
}

.brand-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.brand-card:hover .brand-image img {
  transform: scale(1.05);
}

.brand-info {
  padding: 28px 28px 32px;
}

.brand-info h3 {
  margin-bottom: 10px;
}

.brand-info p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* --- Brands Page Grid --- */
.brands-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 0;
}

.brand-page-card {
  position: relative;
  height: 500px;
  overflow: hidden;
  cursor: pointer;
}

.brand-page-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.brand-page-card:hover img {
  transform: scale(1.05);
}

.brand-page-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  transition: background var(--transition);
}

.brand-page-card:hover .brand-page-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%);
}

.brand-page-overlay .brand-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.brand-page-overlay h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.brand-page-overlay p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  max-width: 400px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.brand-page-overlay .btn-text {
  color: var(--white);
}

.brand-page-overlay .btn-text:hover {
  color: var(--gold-light);
}

/* Full-width brand card */
.brand-page-card.full-width {
  grid-column: 1 / -1;
  height: 450px;
}

/* --- Divider / Quote --- */
.section-divider {
  padding: 80px 0;
  background: var(--charcoal);
  text-align: center;
}

.section-divider blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: rgba(255,255,255,0.7);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-divider blockquote cite {
  display: block;
  margin-top: 24px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* --- Credentials / Prestige Band --- */
.credentials {
  background: var(--off-white);
  padding: 56px 0;
  text-align: center;
  border-top: 1px solid var(--light-gray);
}

.credentials-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 28px;
}

.credentials-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 48px;
}

.credentials-list span {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--charcoal);
  opacity: 0.55;
  transition: opacity var(--transition);
}

.credentials-list span:hover { opacity: 1; }

/* Map link (contact page) */
a.map-placeholder {
  text-decoration: none;
  transition: background var(--transition);
}

a.map-placeholder:hover { background: var(--light-gray); }

a.map-placeholder span { color: var(--gold); }

/* --- CTA / Appointment Section --- */
.cta {
  position: relative;
  padding: 120px 0;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
}

.cta .container { position: relative; z-index: 2; }

.cta-content { max-width: 640px; }

.cta-desc {
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* --- Forms --- */
.appointment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group.full { grid-column: 1 / -1; }

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  padding: 16px 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--white);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  outline: none;
  transition: border-color var(--transition);
}

.appointment-form input::placeholder,
.appointment-form textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.appointment-form select {
  -webkit-appearance: none;
  appearance: none;
  color: rgba(255,255,255,0.4);
}

.appointment-form select option {
  background: var(--charcoal);
  color: var(--white);
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  border-bottom-color: var(--gold);
}

.appointment-form textarea { resize: vertical; min-height: 80px; }

.appointment-form .btn-primary {
  margin-top: 16px;
  align-self: flex-start;
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.appointment-form .btn-primary:hover {
  background: transparent;
  color: var(--white);
}

/* --- Contact Page Form (light bg) --- */
.contact-form-light input,
.contact-form-light select,
.contact-form-light textarea {
  color: var(--charcoal);
  border-bottom-color: var(--light-gray);
}

.contact-form-light input::placeholder,
.contact-form-light textarea::placeholder {
  color: var(--gray);
}

.contact-form-light select {
  color: var(--gray);
}

.contact-form-light select option {
  background: var(--white);
  color: var(--charcoal);
}

.contact-form-light .btn-primary {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

.contact-form-light .btn-primary:hover {
  background: transparent;
  color: var(--charcoal);
}

.contact-details {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--gray);
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

.social-link {
  width: 44px;
  height: 44px;
  border: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

.social-link.whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.map-placeholder p {
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.map-placeholder span {
  font-size: 0.85rem;
  color: var(--gray);
}

/* --- Contact Page Layout --- */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: start;
}

.contact-page-info {
  padding-top: 20px;
}

.contact-page-info .section-title {
  margin-bottom: 16px;
}

.contact-page-info > p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 48px;
}

/* --- Footer --- */
.footer {
  background: var(--charcoal);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-top: 20px;
  line-height: 1.6;
  max-width: 300px;
}

.footer-links h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 32px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: transform var(--transition);
}

.whatsapp-float:hover { transform: scale(1.1); }

/* --- Mobile Menu --- */
.mobile-menu-open .nav-links {
  display: flex;
  position: fixed;
  inset: 0;
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 999;
}

.mobile-menu-open .nav-links a {
  color: var(--charcoal);
  font-size: 1.2rem;
}

.mobile-menu-open .hamburger {
  position: fixed;
  top: 28px;
  right: 40px;
  z-index: 1000;
}

.mobile-menu-open .hamburger span { background: var(--charcoal); }
.mobile-menu-open .hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 4px); }
.mobile-menu-open .hamburger span:nth-child(2) { opacity: 0; }
.mobile-menu-open .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -4px); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .container, .nav-container { padding: 0 28px; }
  .section { padding: 80px 0; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image img { height: 400px; }

  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-page-grid { grid-template-columns: 1fr; }
  .brand-page-card { height: 400px; }

  .contact-page-grid { grid-template-columns: 1fr; gap: 60px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-appointment { display: none; }
  .hamburger { display: flex; }

  .brands-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .about-stats { flex-direction: column; gap: 20px; }

  .credentials-list { gap: 16px 28px; }
}

/* ==========================================================================
   MOTION v3 - Editorial luxury layer  (aligned to MOTION.md)
   - CSS transitions + IntersectionObserver only. No scroll libraries.
   - Animate transform/opacity only. Respect prefers-reduced-motion.
   - Restrained, slow, deliberate. If you notice the motion, it's too much.
   ========================================================================== */

:root {
  --ink: #202020;
  --noir: #15120f;
  --alabaster: #f4f1ec;
  --hairline: rgba(179, 168, 150, 0.28);
  /* MOTION.md tokens - single source of truth */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 220ms;
  --dur-base: 480ms;
  --dur-slow: 760ms;
  --font-ar-head: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
  --font-ar-body: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
.stat-number, .since b { font-variant-numeric: tabular-nums; }

/* ---------- Brand logo (replaces text wordmark) ---------- */
.logo { flex-direction: row; align-items: center; }
.logo-img { height: 54px; width: auto; max-width: none; display: block; }
.logo { flex-shrink: 0; }
.logo .logo-dark { display: none; }
.logo .logo-white { display: block; }
.navbar.scrolled .logo .logo-white,
.navbar-dark .logo .logo-white { display: none; }
.navbar.scrolled .logo .logo-dark,
.navbar-dark .logo .logo-dark { display: block; }
.footer .logo .logo-white { display: block; }
.footer .logo .logo-dark { display: none; }
.footer .logo-img { height: 46px; }

/* ---------- Scroll reveals (MOTION.md: fade + 20px up, dur-slow, once) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0; transform: translateY(20px);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  }
  html.js [data-reveal].in { opacity: 1; transform: none; }

  /* staggered groups - children 90ms apart */
  html.js [data-reveal-group] > * {
    opacity: 0; transform: translateY(20px);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  }
  html.js [data-reveal-group].in > * { opacity: 1; transform: none; }
  html.js [data-reveal-group].in > *:nth-child(1) { transition-delay: 0s; }
  html.js [data-reveal-group].in > *:nth-child(2) { transition-delay: 0.09s; }
  html.js [data-reveal-group].in > *:nth-child(3) { transition-delay: 0.18s; }
  html.js [data-reveal-group].in > *:nth-child(4) { transition-delay: 0.27s; }
  html.js [data-reveal-group].in > *:nth-child(5) { transition-delay: 0.36s; }
  html.js [data-reveal-group].in > *:nth-child(6) { transition-delay: 0.45s; }
  html.js [data-reveal-group].in > *:nth-child(7) { transition-delay: 0.54s; }
}

/* ---------- Reusable hover: image zoom inside a fixed frame (max 1.04) ---------- */
.media-frame { overflow: hidden; }
.media-frame img { transition: transform var(--dur-base) var(--ease-out); will-change: transform; }
.media-frame:hover img,
a:hover > .media-frame img,
.hover-zoom:hover .media-frame img { transform: scale(1.04); }

/* ==========================================================================
   HERO - cinematic, calm. Slow crossfade (not a fast carousel).
   ========================================================================== */
.hero2 { position: relative; min-height: 100svh; height: 100vh; background: var(--ink); overflow: hidden; display: flex; align-items: flex-end; }
.hero2-media { position: absolute; inset: 0; }
.hero2-media .h-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease-inout); }
.hero2-media .h-slide.active { opacity: 1; }
.hero2-media .h-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); transition: transform 9s var(--ease-out); }
.hero2-media .h-slide.active .h-bg { transform: scale(1); }
.hero2-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.12) 30%, rgba(10,10,10,0.78) 100%); }
.hero2-inner { position: relative; z-index: 3; width: 100%; padding: 0 max(40px, calc(50% - 600px)) 9vh; }
.hero2-eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 26px; }
.hero2-eyebrow::before { content: ''; width: 46px; height: 1px; background: var(--gold); }
.hero2 h1 { color: var(--white); font-weight: 800; font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 28px; }
.hero2 h1 em { font-style: italic; color: var(--white); }
.hero2-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.hero2-desc { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 440px; line-height: 1.75; }
.hero2-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero2-count { position: absolute; left: max(40px, calc(50% - 600px)); bottom: 4vh; z-index: 3; display: flex; gap: 10px; align-items: center; }
.hero2-count .dot2 { width: 30px; height: 2px; background: rgba(255,255,255,0.25); border: none; padding: 0; cursor: pointer; transition: background var(--dur-fast) var(--ease-out), width var(--dur-fast) var(--ease-out); }
.hero2-count .dot2.active { background: var(--gold-light); width: 46px; }

/* Hero intro (CSS, plays on .loaded) */
html.js .hero2 [data-hero] { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
html.js .hero2.loaded [data-hero] { opacity: 1; transform: none; }
.hero2.loaded .hero2-eyebrow { transition-delay: 0.15s; }
.hero2.loaded h1 { transition-delay: 0.30s; }
.hero2.loaded .hero2-desc { transition-delay: 0.48s; }
.hero2.loaded .hero2-actions { transition-delay: 0.62s; }
.hero2.loaded .hero2-count { transition-delay: 0.76s; }

/* ---------- Premium buttons (MOTION.md: color/bg/border at dur-fast) ---------- */
.btn-lux { display: inline-flex; align-items: center; gap: 12px; padding: 16px 38px; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); background: var(--gold-light); border: 1px solid var(--gold-light); transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.btn-lux:hover { background: transparent; color: var(--white); }
.navbar-dark .btn-lux:hover, .section .btn-lux:hover { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-ghost { display: inline-flex; align-items: center; gap: 12px; padding: 15px 34px; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); border: 1px solid rgba(255,255,255,0.38); transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--ink); color: var(--white); padding: 15vh 0; }
.manifesto .container { max-width: 1080px; }
.manifesto h2 { font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1.34; font-weight: 600; letter-spacing: -0.01em; }
.manifesto h2 .muted { color: rgba(255,255,255,0.34); }
.manifesto h2 em { font-style: italic; color: var(--gold-light); }

/* ---------- Brand grid hover (reuse base .brand-card / .brand-page-card) ---------- */
.brand-card .brand-image { } /* base provides frame; ensure zoom uses tokens */
.brand-card .brand-image img { transition: transform var(--dur-base) var(--ease-out); }
.brand-card:hover .brand-image img { transform: scale(1.04); }
.brand-card { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.brand-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,0.10); }
.brand-page-card img { transition: transform var(--dur-base) var(--ease-out); }
.brand-page-card:hover img { transform: scale(1.04); }

/* ---------- Credentials band ---------- */
.credentials { background: var(--off-white); padding: 56px 0; text-align: center; border-top: 1px solid var(--light-gray); }
.credentials-label { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); margin-bottom: 28px; }
.credentials-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 48px; }
.credentials-list span { font-family: var(--font-heading); font-size: clamp(1.1rem, 1.7vw, 1.45rem); color: var(--charcoal); opacity: 0.55; transition: opacity var(--dur-fast) var(--ease-out); }
.credentials-list span:hover { opacity: 1; }

/* ---------- Quote attribution ---------- */
.section-divider blockquote cite { display: block; margin-top: 24px; font-family: var(--font-body); font-style: normal; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); }

/* ==========================================================================
   PROCESS - two distinct journeys (Clients vs Architects)
   ========================================================================== */
.approach { background: var(--off-white); }
.approach-intro { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.process-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.process-card { background: var(--white); padding: 48px; border: 1px solid var(--light-gray); }
.process-card.dark { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.process-card .pc-tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.process-card.dark .pc-tag { color: var(--gold-light); }
.process-card h3 { font-size: 1.7rem; margin-bottom: 10px; }
.process-card > p { color: var(--gray); font-size: 0.95rem; line-height: 1.7; margin-bottom: 28px; }
.process-card.dark > p { color: rgba(255,255,255,0.62); }
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--light-gray); }
.process-card.dark .step { border-color: rgba(255,255,255,0.12); }
.step-n { font-family: var(--font-heading); font-size: 1rem; color: var(--gold); line-height: 1.4; }
.process-card.dark .step-n { color: var(--gold-light); }
.step h4 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.step p { color: var(--gray); font-size: 0.88rem; line-height: 1.6; }
.process-card.dark .step p { color: rgba(255,255,255,0.6); }

.register { background: var(--charcoal); color: var(--white); }
.register-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.register-grid .reg-copy .section-title { color: var(--white); }
.register-grid .reg-copy p { color: rgba(255,255,255,0.62); line-height: 1.7; margin-top: 16px; }
.register .perks { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.register .perks li { position: relative; padding-left: 26px; color: rgba(255,255,255,0.85); font-size: 0.92rem; }
.register .perks li::before { content: ''; position: absolute; left: 0; top: 9px; width: 12px; height: 1px; background: var(--gold-light); }

/* ---------- Map link (contact) ---------- */
a.map-placeholder { text-decoration: none; transition: background var(--dur-base) var(--ease-out); }
a.map-placeholder:hover { background: var(--light-gray); }
a.map-placeholder span { color: var(--gold); }

/* ---------- Footer wordmark ---------- */
.footer-wordmark { font-family: var(--font-heading); font-size: clamp(3rem, 12vw, 10rem); line-height: 0.9; color: rgba(255,255,255,0.05); letter-spacing: 0.02em; text-align: center; padding: 26px 0 6px; user-select: none; }

/* ==========================================================================
   LANGUAGE - EN / AR toggle + RTL
   ========================================================================== */
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; color: var(--white); background: none; border: 1px solid rgba(255,255,255,0.32); padding: 8px 12px; cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.navbar.scrolled .lang-toggle, .navbar-dark .lang-toggle { color: var(--charcoal); border-color: rgba(0,0,0,0.2); }
.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }
.lang-toggle .l-on { color: var(--gold-light); }
.navbar.scrolled .lang-toggle .l-on, .navbar-dark .lang-toggle .l-on { color: var(--gold); }
.lang-sep { opacity: 0.4; }

/* Arabic typography + RTL */
html[lang="ar"], html[lang="ar"] body,
html[lang="ar"] input, html[lang="ar"] select, html[lang="ar"] textarea, html[lang="ar"] button { font-family: var(--font-ar-body); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .logo-text,
html[lang="ar"] .journey-name, html[lang="ar"] .process-card h3, html[lang="ar"] blockquote p,
html[lang="ar"] .footer-wordmark, html[lang="ar"] .credentials-list span, html[lang="ar"] .manifesto h2 { font-family: var(--font-ar-head); font-style: normal; }
html[lang="ar"] em { font-style: normal; }
html[dir="rtl"] .hero2-eyebrow::before { } /* gold rule fine either side */
html[dir="rtl"] .hero2-count { left: auto; right: max(40px, calc(50% - 600px)); }
html[dir="rtl"] .register .perks li { padding-left: 0; padding-right: 26px; }
html[dir="rtl"] .register .perks li::before { left: auto; right: 0; }
html[dir="rtl"] .step { direction: rtl; }
html[dir="rtl"] .btn-text span { display: inline-block; transform: scaleX(-1); }
html[lang="ar"] .nav-links a, html[lang="ar"] .btn-lux, html[lang="ar"] .btn-ghost,
html[lang="ar"] .section-label, html[lang="ar"] .hero2-eyebrow, html[lang="ar"] .step h4,
html[lang="ar"] .benefit h4 { letter-spacing: 0 !important; text-transform: none; }

/* ---------- Accessibility: focus ---------- */
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.btn-lux:focus-visible, .btn-ghost:focus-visible { outline-offset: 4px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal], html.js [data-reveal-group] > *, .hero2 [data-hero] { opacity: 1 !important; transform: none !important; }
  .hero2-media .h-slide { transition: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero2-inner { padding: 0 28px 10vh; }
  .hero2-count { left: 28px; }
  .process-cols { grid-template-columns: 1fr; }
  .register-grid { grid-template-columns: 1fr; gap: 48px; }
  html[dir="rtl"] .hero2-count { right: 28px; }
}
@media (max-width: 768px) {
  .hero2-inner { padding: 0 28px 12vh; }
  .hero2-count { left: 28px; }
  .hero2 h1 { font-size: clamp(2rem, 8.6vw, 3rem); }
  .hero2-row { flex-direction: column; align-items: flex-start; gap: 22px; }
  .process-card { padding: 32px 26px; }
  html[dir="rtl"] .hero2-count { right: 28px; }
}

/* ==========================================================================
   BRAND DETAIL PAGE  (gallery + lightbox)
   ========================================================================== */
.brand-hero { position: relative; height: 60vh; min-height: 440px; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.brand-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); }
.brand-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0.25), rgba(10,10,10,0.82)); }
.brand-hero-inner { position: relative; z-index: 2; width: 100%; padding: 0 0 56px; }
.brand-hero .b-tag { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.brand-hero h1 { color: var(--white); font-size: clamp(2.6rem, 6vw, 5rem); }
.brand-back { display: inline-block; margin-bottom: 22px; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.brand-back:hover { color: var(--gold-light); }

.brand-detail { padding: 88px 0 64px; }
.brand-detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.bd-desc p { color: var(--gray); line-height: 1.85; font-size: 1.05rem; }
.bd-meta { border-top: 1px solid var(--light-gray); }
.bd-row { padding: 18px 0; border-bottom: 1px solid var(--light-gray); }
.bd-row .bd-k { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.bd-row .bd-v { color: var(--charcoal); font-size: 0.95rem; line-height: 1.6; }

.brand-gallery { columns: 3; column-gap: 16px; }
.brand-gallery .g-item { break-inside: avoid; margin-bottom: 16px; overflow: hidden; cursor: zoom-in; display: block; }
.brand-gallery .g-item img { width: 100%; display: block; transition: transform var(--dur-base) var(--ease-out); }
.brand-gallery .g-item:hover img { transform: scale(1.04); }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10,10,10,0.95); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity var(--dur-base) var(--ease-out), visibility 0s var(--dur-base); }
.lightbox.open { opacity: 1; visibility: visible; transition: opacity var(--dur-base) var(--ease-out); }
.lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox button { position: absolute; background: none; border: none; color: rgba(255,255,255,0.8); cursor: pointer; padding: 14px; line-height: 1; transition: color var(--dur-fast) var(--ease-out); }
.lightbox button:hover { color: var(--gold-light); }
.lightbox .lb-close { top: 20px; right: 26px; font-size: 1.7rem; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); font-size: 2.2rem; }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); font-size: 2.2rem; }
html[dir="rtl"] .lightbox .lb-prev { left: auto; right: 16px; }
html[dir="rtl"] .lightbox .lb-next { right: auto; left: 16px; }

@media (max-width: 1024px) { .brand-detail-grid { grid-template-columns: 1fr; gap: 36px; } .brand-gallery { columns: 2; } }
@media (max-width: 600px) { .brand-gallery { columns: 1; } }

/* ==========================================================================
   ARABIC TYPOGRAPHY & RTL REFINEMENTS (research-backed)
   - Arabic is a connected script: never letter-space it.
   - Larger size + looser line-height for screen legibility.
   - Numbers / Latin stay LTR; directional arrows mirror.
   ========================================================================== */
html[lang="ar"] { font-size: 17px; }                 /* ~6% larger base for Arabic */
html[lang="ar"] * { letter-spacing: 0 !important; }  /* connected script - no tracking */
html[lang="ar"] body { line-height: 1.9; }
html[lang="ar"] p,
html[lang="ar"] .hero2-desc, html[lang="ar"] .section-subtitle, html[lang="ar"] .brand-info p,
html[lang="ar"] .bd-desc p, html[lang="ar"] .journey-desc, html[lang="ar"] .cta-desc,
html[lang="ar"] .reg-copy p, html[lang="ar"] .step p, html[lang="ar"] .benefit p,
html[lang="ar"] .contact-item p, html[lang="ar"] .footer-brand p { line-height: 1.95; }
html[lang="ar"] h1 { line-height: 1.3; }
html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.45; }
html[lang="ar"] .manifesto h2 { line-height: 1.75; }
html[lang="ar"] .section-label, html[lang="ar"] .hero2-eyebrow,
html[lang="ar"] .brand-tag, html[lang="ar"] .b-tag, html[lang="ar"] .bd-k,
html[lang="ar"] .credentials-label, html[lang="ar"] .manifesto-eyebrow { font-weight: 600; }

/* Keep numbers and Latin tokens left-to-right inside Arabic text */
html[lang="ar"] .stat-number, html[lang="ar"] [dir="ltr"] { direction: ltr; unicode-bidi: isolate; }

/* Mirror directional UI in RTL */
html[dir="rtl"] .btn-text span { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .whatsapp-float { right: auto; left: 32px; }
html[dir="rtl"] .lightbox .lb-close { right: auto; left: 26px; }
html[dir="rtl"] .map-placeholder span { direction: rtl; }

/* ==========================================================================
   WHO DESIGNS OUR PIECES (designer roster)
   The monogram block doubles as a placeholder for a licensed portrait later.
   ========================================================================== */
.designers { background: var(--off-white); }
.designers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 26px; margin-top: 56px; }
.designer-card { text-align: center; }
.designer-mono { position: relative; aspect-ratio: 3 / 4; background: var(--charcoal); color: var(--gold-light); font-family: var(--font-heading); font-size: clamp(1.8rem, 2.6vw, 2.6rem); letter-spacing: 0.06em; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; overflow: hidden; transition: transform var(--dur-base) var(--ease-out); }
.designer-mono::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(216, 184, 122, 0.35); pointer-events: none; }
.designer-card:hover .designer-mono { transform: translateY(-4px); }
.designer-card h3 { font-size: 1.15rem; margin-bottom: 7px; }
.designer-card .d-meta { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); }
.designer-card .d-work { font-size: 0.82rem; color: var(--gold); margin-top: 8px; }
@media (max-width: 1024px) { .designers-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .designers-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; } }

/* Designer portraits (sourced from Wikimedia Commons; monogram fallback otherwise) */
.designer-mono img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; display: block; transition: transform var(--dur-base) var(--ease-out); }
.designer-card:hover .designer-mono img { transform: scale(1.03); }
.designers-credit { text-align: center; margin-top: 42px; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--gray); opacity: 0.75; }

/* Architect 7-step process flow */
.flow { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.flow-step { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 22px 4px; border-top: 1px solid var(--light-gray); align-items: start; }
.flow-step .fs-n { font-family: var(--font-heading); font-size: 1.45rem; color: var(--gold); line-height: 1; min-width: 34px; }
.flow-step h4 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; color: var(--ink); }
.flow-step p { color: var(--gray); font-size: 0.88rem; line-height: 1.6; }
.approach-cta { text-align: center; margin-top: 52px; }
html[dir="rtl"] .flow-step { direction: rtl; }
@media (max-width: 768px) { .flow { grid-template-columns: 1fr; column-gap: 0; } }

/* Make the register block easy to spot */
.register { scroll-margin-top: 84px; }
.register .reg-copy .section-label { color: var(--gold-light); }
.register .appointment-form { border-top: 3px solid var(--gold); }
html[lang="ar"] .flow-step h4 { letter-spacing: 0 !important; text-transform: none; }

/* ==========================================================================
   v18 - AUDIT FIXES (September 2026). Later rules win; grouped by concern.
   ========================================================================== */

/* ---------- tokens: contrast-safe text on light grounds, on-dark scale ---------- */
:root {
  --gray: #6b665d;              /* body copy on light: 5.1:1 on off-white, 5.7:1 on white (was #888) */
  --accent-text: #6f6656;       /* the taupe accent when it has to be read as text on light (5:1) */
  --font-latin: 'Lato', -apple-system, 'Segoe UI', sans-serif;
  --on-dark: rgba(255,255,255,.72);
  --on-dark-muted: rgba(255,255,255,.55);
  --line-dark: rgba(255,255,255,.12);
}
html { font-size: 100%; }
html[lang="ar"] { font-size: 106.25%; --font-heading: var(--font-ar-head); --font-body: var(--font-ar-body); }
html[lang="ar"] [lang="en"], html[lang="ar"] .footer-wordmark, html[lang="ar"] .credentials-list span,
html[lang="ar"] .brand-info h3, html[lang="ar"] .brand-page-overlay h3, html[lang="ar"] .designer-card h3,
html[lang="ar"] #bName, html[lang="ar"] #bCtaTitle, html[lang="ar"] #bPieces { font-family: var(--font-latin); }
html[dir="rtl"] a[href*="instagram.com"], html[dir="rtl"] a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; display: inline-block; }
html[lang="ar"] .stat-number { text-align: right; }

/* ---------- type: served weights only, real scale steps, no widows ---------- */
.hero2 h1 { font-weight: 700; }
h1, h2, h3, .section-title, .page-header h1, .process-card h3 { text-wrap: balance; }
p, .section-subtitle, .cta-desc, .brand-page-overlay p, .footer-brand p, blockquote p, cite, .hero2-desc { text-wrap: pretty; }
.section-subtitle, .about-text, .cta-desc { max-width: 34em; }
.cta-desc { line-height: 1.75; }
.page-header h1 { font-size: clamp(2.6rem, 2rem + 3vw, 3.75rem); }
.page-header p { max-width: 34em; }
.approach .section-title, .register .section-title { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.manifesto { padding: 120px 0; }
.manifesto .container { max-width: 1280px; }
.manifesto h2 { font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.4; max-width: 1000px; }
.manifesto h2 .muted { color: rgba(255,255,255,.42); }
.section-divider blockquote p { color: var(--on-dark); }
.section-label { font-size: .8rem; font-weight: 400; color: var(--accent-text); }
.section-label.light { color: var(--gold-light); }
.page-header .section-label { font-size: .8rem; letter-spacing: .2em; max-width: none; color: var(--gold-light); font-weight: 700; }
.hero2-eyebrow { font-size: .78rem; letter-spacing: .2em; font-weight: 700; }
.pc-tag, .step-n, .fs-n, .bd-k, a.map-placeholder span, .btn-text:hover { color: var(--accent-text); }
.process-card.dark .pc-tag, .process-card.dark .step-n { color: var(--gold-light); }
.brand-hero .b-tag, .brand-page-overlay .brand-tag { font-weight: 700; color: var(--gold-light); }
.step h4, .flow-step h4, .contact-item h4 { font-weight: 700; }
.btn-text { font-size: .8rem; font-weight: 400; }
.btn-lux, .btn-ghost { font-size: .78rem; font-weight: 400; }
.btn-primary { font-size: .8rem; font-weight: 400; }
.stat-label, .credentials-label { font-size: .8rem; }
.credentials-label { color: var(--accent-text); }
.credentials-list span { opacity: .72; transition: none; }
.credentials-list span:hover { opacity: .72; }
.footer-links h4 { font-size: .76rem; font-weight: 700; color: var(--gold-light); }
.footer-links ul { gap: 2px; }
.footer-links a { display: inline-block; padding: 9px 0; color: var(--on-dark); font-size: .92rem; }
.footer-brand p { color: var(--on-dark); }
.footer-bottom p { color: var(--on-dark-muted); font-size: .82rem; }
.footer { border-top: 1px solid var(--line-dark); }
.form-intro { font-size: .95rem; max-width: 32em; margin-bottom: 28px; color: var(--gray); }
.form-intro.light { color: var(--on-dark); }
.appointment-form h3 { margin-bottom: 8px; }
.appointment-form h3.light { color: #fff; }
html[lang="ar"] :where(.section-label, .hero2-eyebrow, .pc-tag, .credentials-label, .section-divider blockquote cite,
  .footer-links h4, .stat-label, .btn-lux, .btn-ghost, .btn-text, .btn-appointment, .lang-toggle, .brand-tag, .b-tag, .bd-k, .d-meta, .mobile-bar a) { font-size: .92rem; }
html[lang="ar"] .step h4, html[lang="ar"] .flow-step h4, html[lang="ar"] .contact-item h4 { font-size: 1rem; }

/* ---------- focus: a ring that reads on every surface ---------- */
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; box-shadow: none; }
.brand-page-card:focus-visible, .brand-image:focus-visible, .designer-link:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.skip { position: absolute; inset-inline-start: 16px; top: -64px; z-index: 1002; background: #fff; color: var(--ink); padding: 10px 14px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; opacity: 0; pointer-events: none; }
.appointment-form { position: relative; }

/* ---------- motion: only what carries a state change ---------- */
.navbar { transition: background var(--dur-base) var(--ease-out), padding var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.btn-primary, .btn-appointment, .lang-toggle, .hamburger span, .social-link, a {
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.brand-card { transition: none; }
.brand-card:hover { transform: none; box-shadow: none; }
.designer-card:hover .designer-mono { transform: none; }
.brand-page-card img { transition: transform var(--dur-base) var(--ease-out), filter var(--dur-base) var(--ease-out); }
.brand-page-card:hover img { transform: scale(1.04); filter: brightness(.85); }
.brand-page-card:hover .brand-page-overlay { background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.08) 80%); }
@media (prefers-reduced-motion: reduce) {
  .hero2-media .h-bg { transition: none; transform: none; }
  .brand-card .brand-image img, .brand-page-card img, .media-frame img, .btn-text span, .designer-mono img { transition: none; }
  .brand-card:hover .brand-image img, .brand-page-card:hover img, .btn-text:hover span { transform: none; }
}

/* ---------- navigation: hit areas, honest states, the CTA reads as a CTA ---------- */
.nav-links a { padding: 12px 2px; margin: -12px 0; }
.nav-links a::after { bottom: 8px; }
.nav-links a.active { font-weight: 700; }
.navbar.scrolled .nav-links a::after, .navbar-dark .nav-links a::after, .mobile-menu-open .nav-links a::after { background: currentColor; height: 2px; }
.btn-appointment { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 22px; background: var(--gold-light); color: var(--ink); border-color: var(--gold-light); font-weight: 400; }
.btn-appointment:hover { background: #fff; border-color: #fff; color: var(--ink); }
.navbar.scrolled .btn-appointment, .navbar-dark .btn-appointment { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.navbar.scrolled .btn-appointment:hover, .navbar-dark .btn-appointment:hover { background: transparent; color: var(--charcoal); }
.nav-right { color: #fff; }
.navbar.scrolled .nav-right, .navbar-dark .nav-right { color: var(--charcoal); }
.lang-toggle { min-height: 44px; padding: 8px 10px; border: 0; font-size: .74rem; font-weight: 400; color: inherit; }
.lang-toggle span:not(.lang-sep) { opacity: .55; }
.lang-toggle .l-on { opacity: 1; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); color: inherit; }
.navbar.scrolled .lang-toggle, .navbar-dark .lang-toggle, .navbar.scrolled .lang-toggle .l-on, .navbar-dark .lang-toggle .l-on, .lang-toggle:hover { color: inherit; border: 0; }
.hamburger { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; padding: 0; margin: -8px -10px -8px 0; }
html[dir="rtl"] .hamburger { margin: -8px 0 -8px -10px; }
.nav-mobile-only { display: none; }
.mobile-menu-open .navbar { backdrop-filter: none; -webkit-backdrop-filter: none; transition: none; }
.mobile-menu-open .nav-links { gap: 18px; padding: 100px 28px 40px; justify-content: flex-start; overflow-y: auto; z-index: 999; }
.mobile-menu-open .nav-links a { font-size: 1.3rem; padding: 10px 0; margin: 0; min-height: 44px; display: inline-flex; align-items: center; }
.mobile-menu-open .nav-mobile-only { display: block; }
.mobile-menu-open .nav-cta { margin-top: 10px; padding: 14px 28px; background: var(--charcoal); color: #fff; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; border: 1px solid var(--charcoal); }
.mobile-menu-open .nav-mobile-meta { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--light-gray); display: flex; flex-direction: column; gap: 4px; align-items: center; width: 100%; }
.mobile-menu-open .nav-mobile-meta a { font-size: .95rem; color: var(--gray); }
.mobile-menu-open .nav-mobile-meta .lang-toggle { margin-top: 14px; color: var(--charcoal); font-size: .95rem; }
.mobile-menu-open .hamburger { position: relative; top: auto; right: auto; z-index: 1001; }
.mobile-menu-open .whatsapp-float, .mobile-menu-open .mobile-bar { display: none; }

/* ---------- buttons: the CTA band hover was charcoal on charcoal ---------- */
.cta .btn-lux:hover, .process-card.dark .btn-lux:hover, .register .btn-lux:hover, .manifesto .btn-lux:hover { color: var(--gold-light); border-color: var(--gold-light); background: transparent; }
.btn-text { display: inline-block; padding: 12px 0; margin: -12px 0; }
.hero2-count { gap: 14px; }
.hero2-count .dot2 { position: relative; }
.hero2-count .dot2::before { content: ''; position: absolute; inset: -21px 0; }

/* ---------- hero: the action sits with its copy; two ways in ---------- */
.hero2-row { flex-direction: column; align-items: flex-start; gap: 28px; }
.hero2-desc { max-width: 520px; }
.hero2-actions { gap: 14px; }

/* ---------- brand cards (home): one shape, whole card clickable, no lift ---------- */
.brand-card { display: flex; flex-direction: column; }
.brand-image { display: block; aspect-ratio: 3 / 2; height: auto; }
.brand-info { flex: 1; display: flex; flex-direction: column; }
.brand-info .btn-text { margin-top: auto; align-self: flex-start; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- brands page: scrim follows the text, tiles align to the grid ---------- */
.brand-page-overlay { background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.06) 80%); padding: 40px max(40px, calc((100vw - 1200px) / 2)); }
.brand-page-overlay p { color: rgba(255,255,255,.88); max-width: 40ch; }
.brand-page-overlay h3 { font-size: clamp(1.45rem, 1.1rem + 1.3vw, 1.8rem); }
.brand-page-card.full-width { height: clamp(450px, 38vw, 560px); }
.section.cta { border-top: 1px solid var(--hairline); }

/* ---------- CTA band: let the photo carry the empty half ---------- */
.cta-bg { background-attachment: scroll; background-position: 70% 50%; }
html[dir="rtl"] .cta-bg { background-position: 30% 50%; }
.cta-bg::after { background: linear-gradient(90deg, rgba(20,18,15,.94) 0%, rgba(20,18,15,.9) 46%, rgba(20,18,15,.42) 100%); }
html[dir="rtl"] .cta-bg::after { background: linear-gradient(270deg, rgba(20,18,15,.94) 0%, rgba(20,18,15,.9) 46%, rgba(20,18,15,.42) 100%); }

/* ---------- page headers: white chrome over a photo needs a real scrim ---------- */
.page-header-bg::after { background: linear-gradient(180deg, rgba(10,10,10,.5) 0%, rgba(10,10,10,.22) 35%, rgba(10,10,10,.62) 100%), linear-gradient(90deg, rgba(10,10,10,.38), rgba(10,10,10,0) 60%); }
html[dir="rtl"] .page-header-bg::after { background: linear-gradient(180deg, rgba(10,10,10,.5) 0%, rgba(10,10,10,.22) 35%, rgba(10,10,10,.62) 100%), linear-gradient(270deg, rgba(10,10,10,.38), rgba(10,10,10,0) 60%); }
.page-header-content .container > .btn-primary, .page-header-content .container > .btn-lux { align-self: flex-start; margin-top: 10px; }
.credentials.slim { padding: 36px 0; border-bottom: 1px solid var(--light-gray); }

/* ---------- forms: legible fields, a select that looks like one, feedback ---------- */
.appointment-form input, .appointment-form select, .appointment-form textarea { font-size: 1rem; border-bottom-color: rgba(255,255,255,.45); }
.appointment-form input::placeholder, .appointment-form textarea::placeholder, .appointment-form select { color: rgba(255,255,255,.62); }
.appointment-form select { padding-inline-end: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23cfc7b8' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat; background-position: right 4px center; background-size: 12px 8px; }
html[dir="rtl"] .appointment-form select { background-position: left 4px center; }
.appointment-form select:valid { color: #fff; }
.contact-form-light input, .contact-form-light select, .contact-form-light textarea { border-bottom-color: #c9c5bc; }
.contact-form-light input::placeholder, .contact-form-light textarea::placeholder, .contact-form-light select { color: var(--gray); }
.contact-form-light select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23202020' stroke-width='1.5'/%3E%3C/svg%3E"); }
.contact-form-light select:valid { color: var(--charcoal); }
.form-status { font-size: .92rem; line-height: 1.5; margin: 4px 0 0; }
.form-status.is-ok { color: var(--gold-light); }
.form-status.is-error { color: #e2a7a7; }
.contact-form-light .form-status.is-ok { color: var(--accent-text); }
.contact-form-light .form-status.is-error { color: #b3403c; }
.register { background: var(--noir); }
.register-grid { align-items: start; }
.register .perks { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.register .perks li { position: relative; padding-inline-start: 26px; color: rgba(255,255,255,.85); font-size: .95rem; line-height: 1.55; }
.register .perks li::before { content: ''; position: absolute; inset-inline-start: 0; top: .7em; width: 12px; height: 1px; background: var(--gold-light); }

/* ---------- WhatsApp: in the palette on desktop, a real action bar on phones ---------- */
.whatsapp-float { background: var(--charcoal); border: 1px solid rgba(255,255,255,.25); box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.whatsapp-float:hover { transform: none; background: var(--ink); border-color: var(--gold-light); }
.mobile-bar { display: none; }

/* ---------- designers: grouped, attributed, linked ---------- */
.designers .section-header { margin-bottom: 40px; max-width: 640px; }
.designers-grid { margin-top: 0; gap: 48px 24px; }
.designers-grid.lineage { grid-template-columns: repeat(5, 1fr); }
.designers-group + .designers-group { margin-top: 88px; }
.designer-mono { margin-bottom: 12px; }
.designer-mono::after { border-color: var(--hairline); }
.designer-card h3 { margin-bottom: 4px; font-size: 1.1rem; }
.designer-card .d-meta { color: var(--accent-text); font-size: .78rem; }
.d-meta .d-years { white-space: nowrap; display: inline-block; }
.designer-card .d-work { color: var(--gray); font-size: .84rem; margin-top: 6px; letter-spacing: 0; text-transform: none; }
.designer-link { display: block; color: inherit; }
.designer-link:hover .d-work { color: var(--accent-text); }
.designers-credit { margin-top: 48px; color: var(--gray); opacity: 1; font-size: .78rem; }

/* ---------- brand page ---------- */
.brand-site { margin-top: 22px; }
.brand-gallery button.g-item { border: 0; padding: 0; background: none; width: 100%; cursor: zoom-in; }
.lightbox img { box-shadow: none; }

/* ---------- status pages (thanks, 404) ---------- */
.status-page { padding: 180px 0 120px; min-height: 70vh; text-align: center; }
.status-copy { color: var(--gray); max-width: 34em; margin: 0 auto 32px; }
.status-actions { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .manifesto { padding: 80px 0; }
  .designers-grid { grid-template-columns: repeat(4, 1fr); gap: 40px 18px; }
  .designers-grid.lineage { grid-template-columns: repeat(3, 1fr); }
  .brand-page-overlay { padding: 32px 28px; }
}
@media (max-width: 768px) {
  .btn-appointment { display: none; }
  .nav-right { gap: 6px; }
  .logo-img { height: 40px; }
  .hero2 h1 { font-size: clamp(2.5rem, 10.5vw, 3.2rem); }
  .hero2-desc { font-size: .95rem; max-width: 34ch; }
  .hero2-eyebrow { letter-spacing: .12em; align-items: flex-start; }
  .hero2-eyebrow::before { flex: 0 0 28px; margin-top: .5em; }
  .hero2-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero2-actions a { justify-content: center; }
  .hero2-inner { padding-bottom: calc(10vh + 60px); }
  .hero2-count { bottom: calc(3vh + 64px); }
  h2, .section-title { font-size: clamp(1.75rem, 7vw, 2.4rem); }
  .manifesto h2 { font-size: clamp(1.35rem, 6vw, 2rem); }
  .process-card h3 { font-size: 1.4rem; }
  .page-header h1 { font-size: clamp(2.4rem, 11vw, 3rem); }
  .about-stats { gap: 16px; }
  .brand-page-card, .brand-page-card.full-width { height: auto; aspect-ratio: 4 / 5; }
  .brand-page-overlay { padding: 28px 24px 30px; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.34) 32%, rgba(0,0,0,0) 58%); }
  .brand-page-card:hover .brand-page-overlay { background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.4) 32%, rgba(0,0,0,0) 58%); }
  .brand-page-overlay p { display: none; }
  .cta-content .btn-lux, .cta-content .btn-ghost { flex: 1 1 100%; justify-content: center; }
  .btn-ghost { padding: 16px 34px; }
  .whatsapp-float { display: none; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 998; display: grid; grid-template-columns: 1fr 1fr; background: var(--charcoal); border-top: 1px solid var(--line-dark); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; color: #fff; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
  .mobile-bar a + a { border-inline-start: 1px solid var(--line-dark); }
  .mobile-bar .mb-primary { background: var(--gold-light); color: var(--ink); }
  .mobile-bar svg { width: 18px; height: 18px; flex: 0 0 auto; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .status-page { padding: 140px 0 80px; }
}
@media (max-width: 680px) {
  .designers-grid, .designers-grid.lineage { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
}

/* ---------- art direction: native <picture> inside the existing background boxes ---------- */
.hero2-media .h-bg picture, .page-header-bg picture, .brand-hero-bg picture { position: absolute; inset: 0; display: block; }
.hero2-media .h-bg img, .page-header-bg img, .brand-hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero2-media .h-bg img[data-src] { visibility: hidden; }
button, input, select, textarea { font-family: inherit; }
.nav-links a { padding: 14px 2px; margin: -14px 0; }
.footer-links a { padding: 10px 0; }
.lang-toggle, .btn-appointment { font-size: .76rem; }
.process-card .pc-tag, .section-divider blockquote cite { font-size: .8rem; }
.brand-page-card picture { display: block; width: 100%; height: 100%; }
.brand-page-card picture img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- late fixes from the preview regression pass ---------- */
.mobile-menu-open .nav-links a.nav-cta { color: #fff; }
.mobile-menu-open .nav-links a.nav-cta:hover { color: var(--gold-light); }
.page-header { height: 62vh; min-height: 540px; }
.page-header-content { padding: 130px 0 64px; }
.page-header-content .container { gap: 14px; }
@media (max-width: 768px) {
  .page-header { min-height: 560px; height: auto; }
  .page-header-content { padding: 120px 0 48px; }
}

/* ---------- micro-labels: nothing below 12.4px ---------- */
.brand-back, .brand-hero .b-tag, .bd-row .bd-k, .brand-page-overlay .brand-tag, .mobile-bar a { font-size: .78rem; }

/* ==========================================================================
   HERO CLEARANCE - a hero must GROW, never push its own text up under the
   fixed navbar. The old pattern (fixed height + align-items:flex-end +
   overflow:hidden) overflowed upward whenever the copy was taller than the
   box: on small screens, on short/landscape ones, and in Arabic (which runs
   taller than the English). Verified at 320x568 / 375x667 / 500x700 /
   667x375 / 844x390 in both languages.
   ========================================================================== */
.hero2 { height: auto; min-height: 100svh; }
.hero2-inner { padding-top: 116px; }
.page-header { height: auto; min-height: 540px; }
.brand-hero { height: auto; min-height: 440px; }
.brand-hero-inner { padding-top: 120px; }
@media (max-width: 768px) {
  .hero2-inner { padding-top: 100px; }
  .brand-hero-inner { padding-top: 100px; }
  .page-header-content { padding-top: 112px; }
}
/* short screens (landscape phones, small laptops): stop demanding a full screen */
@media (max-height: 560px) {
  /* the full desktop navbar still shows above 768px wide, and it is ~113px tall -
     shrink the bar itself so the reserved clearance fits on a 390px-tall screen */
  .navbar { padding: 8px 0; }
  .navbar.scrolled { padding: 6px 0; }
  .logo-img { height: 36px; }
  .nav-links { gap: 22px; }
  .hero2 { min-height: 0; }
  .hero2-inner { padding-top: 84px; padding-bottom: 76px; }
  .hero2-count { bottom: 22px; }
  .page-header { min-height: 0; }
  .page-header-content { padding: 84px 0 36px; }
  .brand-hero { min-height: 0; }
  .brand-hero-inner { padding-top: 84px; padding-bottom: 32px; }
  .section { padding: 64px 0; }
}

/* The hero intro must never outlive the .js gate: if enhance.js is slow or fails,
   boot.js removes html.js and the hero has to be fully visible, not invisible. */
html:not(.js) .hero2 [data-hero] { opacity: 1 !important; transform: none !important; }

/* v20 - the hidden attribute must win over class display rules (the Cesar-site button was showing on every brand) */
[hidden] { display: none !important; }
