:root {
  --ink: #0f1318;
  --ink-2: #151a20;
  --paper: #efece6;
  --paper-2: #e6e2da;
  --cream: #f4f0e9;
  --text-dark: #1b1d20;
  --muted-dark: #4a4c50;
  --muted-light: #b9b6b0;
  --line-light: rgba(255,255,255,.18);
  --line-dark: rgba(0,0,0,.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --script: "Mrs Saint Delafield", cursive;
  --hand: "Nothing You Could Do", cursive;
  --gutter: clamp(20px, 6vw, 64px);
  --to-end: 90deg;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.script { font-family: var(--script); font-weight: 400; }
.hand { font-family: var(--hand); line-height: 1.35; }

h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.005em; }
h2 { font-size: clamp(30px, 3.2vw, 42px); margin-bottom: 22px; }
.label { font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; margin-bottom: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 20px;
  padding: 12px 24px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  transition: background .3s, color .3s, border-color .3s;
}
.arrow { display: inline-block; }
.btn .arrow { transition: transform .3s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-light { border: 1px solid rgba(255,255,255,.75); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-dark { border: 1px solid var(--text-dark); color: var(--text-dark); }
.btn-dark:hover { background: var(--text-dark); color: var(--paper); }

.paper {
  color: var(--text-dark);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.dark { background: var(--ink); }

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background .35s, padding .35s, backdrop-filter .35s;
}
.nav.scrolled { background: rgba(12,15,19,.82); backdrop-filter: blur(12px); padding-top: 12px; padding-bottom: 12px; }
.logo { font-size: 46px; line-height: 1; color: #fff; }
.nav-links { display: flex; gap: clamp(22px, 3vw, 42px); font-size: 13.5px; }
.nav-links a { position: relative; padding: 8px 0; opacity: .85; transition: opacity .2s; }
.nav-links a:hover, .nav-links a.active, .nav-links .current-menu-item > a { opacity: 1; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: #fff;
  transform: scaleX(0); transition: transform .3s;
}
.nav-links a.active::after, .nav-links .current-menu-item > a::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.social svg { width: 19px; height: 19px; }
.social { opacity: .85; transition: opacity .2s; }
.social:hover { opacity: 1; }
.burger { display: none; width: 34px; height: 34px; position: relative; }
.burger span { position: absolute; left: 6px; right: 6px; height: 1.5px; background: #fff; transition: transform .3s, top .3s; }
.burger span:first-child { top: 13px; }
.burger span:last-child { top: 20px; }
.nav.open .burger span:first-child { top: 17px; transform: rotate(45deg); }
.nav.open .burger span:last-child { top: 17px; transform: rotate(-45deg); }

/* ============ HERO ============ */
.hero { position: relative; min-height: 640px; height: 100vh; height: 100svh; max-height: 960px; display: flex; align-items: center; overflow: hidden; background: #0e141b; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #0d1219 0%, rgba(13,18,25,.92) 26%, rgba(13,18,25,.35) 50%, rgba(13,18,25,0) 70%),
    linear-gradient(0deg, rgba(10,14,19,.75) 0%, rgba(10,14,19,0) 35%),
    var(--img) right center / auto 100% no-repeat,
    linear-gradient(180deg, #3b3a3f, #2a3340 55%, #1b2531);
  animation: heroZoom 18s ease-out both;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-content { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 60px; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 26px; }
.eyebrow i { font-style: normal; margin: 0 .7em; opacity: .7; }
.hero h1 { font-size: clamp(52px, 7vw, 92px); display: flex; align-items: baseline; flex-wrap: wrap; gap: .15em; }
.hero h1 .script { font-size: 1.75em; line-height: .8; margin-inline-start: .05em; transform: translateY(.12em) rotate(-4deg); display: inline-block; }
.rule { display: block; width: 180px; height: 1px; background: rgba(255,255,255,.4); margin: 34px 0 30px; }
.lead { font-size: clamp(15px, 1.3vw, 18px); font-weight: 300; line-height: 1.65; margin-bottom: 38px; color: #ece8e1; }
.note-hero {
  position: absolute; inset-inline-end: 5vw; top: 13%; z-index: 2;
  font-size: clamp(16px, 1.6vw, 22px); color: #f0e9df; transform: rotate(-14deg); opacity: .9;
}
.note-hero::after { content: ""; display: block; width: 60%; height: 1px; background: currentColor; margin-block: 8px 0; margin-inline-start: 30%; transform: rotate(-12deg); opacity: .6; }
.scroll-cue {
  position: absolute; inset-inline-end: 5vw; bottom: 34px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase;
}
.mouse { width: 18px; height: 28px; border: 1.3px solid #fff; border-radius: 10px; position: relative; }
.mouse span { position: absolute; left: 50%; top: 6px; width: 2px; height: 5px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; top: 6px; } 100% { opacity: 0; top: 15px; } }

/* ============ ABOUT ============ */
.about { position: relative; overflow: hidden; padding: 110px 0 120px; }
.about-grid { display: grid; grid-template-columns: 1.05fr 1.5fr .85fr; gap: clamp(30px, 4vw, 70px); align-items: center; }
.about-photos { position: relative; min-height: 400px; }
.polaroid { position: absolute; background: #fbfaf7; padding: 12px 12px 18px; box-shadow: 0 18px 40px rgba(0,0,0,.22), 0 2px 6px rgba(0,0,0,.12); }
.polaroid img { width: 100%; height: 100%; object-fit: cover; }
.polaroid.main { width: 72%; aspect-ratio: .94; inset-inline-start: 14%; top: 20px; transform: rotate(-4deg); z-index: 2; }
.polaroid.main img { filter: grayscale(1) contrast(1.05); }
.polaroid.second { width: 36%; aspect-ratio: .68; inset-inline-end: -4%; top: 0; transform: rotate(5deg); z-index: 1; }
.tape { position: absolute; top: -14px; inset-inline-start: 26px; width: 70px; height: 26px; background: rgba(220,212,196,.8); transform: rotate(-8deg); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.note-side { position: absolute; inset-inline-start: -10px; bottom: 30px; z-index: 3; font-size: 17px; transform: rotate(-12deg); color: #222; }
.note-side::after { content: ""; display: block; width: 70px; height: 1px; background: #222; margin-top: 10px; transform: rotate(-14deg); }
.about-text h2 { font-size: clamp(30px, 3vw, 40px); }
.about-text > p:not(.label) { color: var(--muted-dark); font-size: 14.5px; max-width: 520px; line-height: 1.75; }
.passions { display: flex; flex-wrap: wrap; gap: 18px 24px; margin-top: 34px; }
.passions li { display: flex; align-items: center; gap: 12px; font-size: 11.5px; line-height: 1.4; color: var(--muted-dark); }
.passions svg { width: 24px; height: 24px; color: var(--text-dark); }
.about-quote { border-inline-start: 1px solid var(--line-dark); padding-block: 20px; padding-inline: clamp(24px, 3vw, 40px) 0; position: relative; z-index: 2; }
.about-quote p { font-size: clamp(17px, 1.5vw, 21px); transform: rotate(-7deg); margin-bottom: 20px; }
.about-quote .sig { font-size: 64px; line-height: 1; display: inline-block; transform: rotate(-8deg); }
.leaf { position: absolute; inset-inline-end: -30px; top: -20px; width: 170px; height: auto; opacity: .85; pointer-events: none; }

/* ============ SERVICES ============ */
.services { display: grid; grid-template-columns: 1fr 25%; min-height: 540px; }
.services-inner { display: grid; grid-template-columns: .85fr 2fr; gap: clamp(30px, 4vw, 70px); padding-block: 80px; padding-inline: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))) var(--gutter); align-items: center; }
.services-intro h2 { font-size: clamp(30px, 3vw, 40px); }
.services-intro p:not(.label) { color: var(--muted-light); font-size: 13.5px; line-height: 1.75; margin-bottom: 30px; max-width: 290px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 20px; }
.service-grid li { text-align: center; font-size: 13px; line-height: 1.5; color: #e7e3dc; transition: transform .35s; }
.service-grid li:hover { transform: translateY(-4px); }
.service-grid svg { display: block; width: 34px; height: 34px; margin: 0 auto 16px; stroke-width: 1.2; }
.services-photo {
  position: relative;
  background: linear-gradient(var(--to-end), rgba(15,19,24,.55), rgba(15,19,24,0) 30%), var(--img) center / cover;
}
.services-photo p { position: absolute; inset-inline-end: 30px; bottom: 40px; font-size: clamp(16px, 1.4vw, 20px); transform: rotate(-12deg); color: #f1ebe2; }
.services-photo p::after { content: ""; display: block; width: 70%; height: 1px; background: currentColor; margin-block: 10px 0; margin-inline-start: 30%; opacity: .6; transform: rotate(-4deg); }

/* ============ PORTFOLIO ============ */
.portfolio { padding: 70px 0 80px; }
.portfolio-grid { display: grid; grid-template-columns: 1fr 3.2fr; gap: clamp(30px, 4vw, 60px); align-items: start; }
.portfolio-intro { padding-top: 34px; }
.portfolio-intro h2 { font-size: clamp(30px, 3vw, 40px); }
.portfolio-intro p:not(.label) { font-family: var(--serif); font-size: 16px; color: var(--muted-dark); margin-bottom: 30px; max-width: 260px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 34px; margin-bottom: 26px; font-size: 12.5px; }
.filters button { position: relative; padding: 4px 0; color: var(--muted-dark); transition: color .2s; }
.filters button::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -3px; height: 1.5px; background: var(--text-dark); transform: scaleX(0); transition: transform .3s; }
.filters button:hover, .filters button.active { color: var(--text-dark); font-weight: 500; }
.filters button.active::after { transform: scaleX(1); }
.gallery { display: grid; gap: 7px; }
.gallery-row { display: flex; gap: 7px; }
.gallery .tile { position: relative; flex: var(--w) 1 0; min-width: 0; height: 150px; overflow: hidden; background: #222; }
.gallery-row + .gallery-row .tile { height: 138px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 14px 10px;
  font-size: 12px; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent);
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s;
}
.gallery .tile:hover img { transform: scale(1.06); }
.gallery .tile:hover figcaption { opacity: 1; transform: none; }
.gallery .tile.hide { display: none; }
.empty { font-family: var(--serif); font-size: 18px; color: var(--muted-dark); padding: 40px 0; }

/* ============ BRANDS ============ */
.brands { padding: 44px 0; }
.brands-row { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.brands-title { padding-inline-end: 40px; border-inline-end: 1px solid var(--line-light); }
.brands-title h2 { font-size: clamp(24px, 2.2vw, 30px); margin: 0; white-space: nowrap; }
.brand-list { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.brand-list li { display: flex; flex-direction: column; align-items: center; text-align: center; opacity: .88; transition: opacity .3s; }
.brand-list li:hover { opacity: 1; }
.brand-list b { font-weight: 500; font-size: 17px; line-height: 1.3; color: #fff; }
.brand-list small { font-size: 6.5px; letter-spacing: .18em; text-transform: uppercase; margin-top: 3px; color: var(--muted-light); }
.b-juno { font-family: "Cinzel", serif; letter-spacing: .2em; }
.b-black { font-family: "Montserrat", sans-serif; font-weight: 800 !important; font-size: 14px !important; letter-spacing: .02em; }
.b-black span { display: inline-block; width: .82em; height: .82em; border: 2.5px solid #fff; border-radius: 50%; color: transparent; vertical-align: -1px; margin: 0 .02em; overflow: hidden; line-height: 0; }
.b-wrap { font-family: "Montserrat", sans-serif; font-weight: 700 !important; font-size: 15px !important; letter-spacing: -.01em; }
.b-orig { font-family: "Cinzel", serif; font-size: 13px !important; letter-spacing: .22em; }
.b-asmar { font-family: "Playfair Display", serif; font-size: 18px !important; }
.b-sibon { font-family: "Cinzel", serif; letter-spacing: .16em; font-size: 15px !important; }
.b-sareea { font-family: "Playfair Display", serif; font-size: 17px !important; }
.b-some { font-family: var(--serif); font-size: 19px !important; font-weight: 600 !important; }

/* ============ CONTACT ============ */
.contact { position: relative; overflow: hidden; padding: 130px 0 150px; min-height: 560px; background: #1a1d22; }
.contact-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #16181d 0%, rgba(22,24,29,.9) 45%, rgba(22,24,29,.35) 62%, rgba(22,24,29,0) 78%),
    linear-gradient(0deg, rgba(15,15,17,.7), rgba(15,15,17,0) 40%),
    var(--img) right bottom / auto 115% no-repeat,
    linear-gradient(180deg, #4a4046 0%, #6b5553 35%, #2c3440 60%, #151a21 100%);
}
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 150px 1.2fr 1fr; gap: 30px; align-items: center; max-width: 1180px; margin-inline-start: max(0px, calc((100vw - 1320px) / 2)); }
.note-contact { font-size: clamp(17px, 1.5vw, 21px); transform: rotate(-14deg); color: #f0e9df; }
.note-contact::after { content: ""; display: block; width: 60px; height: 1px; background: currentColor; margin-block: 12px 0; margin-inline-start: 30px; transform: rotate(-14deg); opacity: .7; }
.contact-text h2 { font-size: clamp(30px, 3vw, 40px); }
.contact-text p:not(.label) { color: #d4d0c9; font-size: 13.5px; margin-bottom: 32px; }
.contact-list { display: grid; gap: 18px; font-size: 13.5px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list svg { width: 19px; height: 19px; }
.contact-list a { transition: opacity .2s; }
.contact-list a:hover { opacity: .7; }
.contact-sign { position: absolute; inset-inline-end: var(--gutter); bottom: 30px; z-index: 2; text-align: end; }
.contact-sign .script { display: block; font-size: 60px; line-height: 1; transform: rotate(-8deg); margin-bottom: 10px; }
.contact-sign small { font-size: 10.5px; letter-spacing: .06em; opacity: .85; word-spacing: .2em; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .mouse span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .about-grid { grid-template-columns: 1fr 1.4fr; }
  .about-quote { grid-column: 1 / -1; border-inline-start: 0; border-top: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: center; gap: 50px; padding: 36px 0 0; }
  .about-quote p { margin: 0; }
  .services { grid-template-columns: 1fr; }
  .services-inner { padding-inline-start: var(--gutter); }
  .services-photo { min-height: 320px; background-position: center 30%; }
  .brands-row { grid-template-columns: 1fr; gap: 26px; }
  .brands-title { border-inline-end: 0; padding: 0; }
  .brand-list { justify-content: flex-start; gap: 30px 44px; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: center; justify-content: center; gap: 26px;
    font-family: var(--serif); font-size: 30px;
    background: rgba(12,15,19,.97);
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; }
  .nav.open { background: transparent; backdrop-filter: none; }
  .burger { display: block; }
  .social { display: none; }
  .logo { font-size: 38px; }

  .hero-bg {
    background:
      linear-gradient(0deg, #0d1219 8%, rgba(13,18,25,.75) 45%, rgba(13,18,25,.25) 75%, rgba(13,18,25,.5) 100%),
      var(--img) 70% center / cover no-repeat;
  }
  .hero { align-items: flex-end; }
  .hero-content { padding-bottom: 110px; }
  .note-hero { top: 110px; inset-inline-end: 7vw; }
  .scroll-cue { left: 50%; right: auto; transform: translateX(-50%); bottom: 26px; }

  .about { padding: 80px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-photos { max-width: 440px; width: 100%; margin: 0 auto; min-height: 0; aspect-ratio: 1.1; }
  .about-quote { flex-direction: column; gap: 10px; text-align: center; }
  .leaf { width: 90px; }

  .services-inner { grid-template-columns: 1fr; padding-top: 70px; padding-bottom: 70px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-intro { padding-top: 0; }
  .filters { gap: 6px 22px; }
  .gallery-row { flex-wrap: wrap; }
  .gallery .tile, .gallery-row + .gallery-row .tile { height: 130px; flex-basis: calc(var(--w) * 90px); }

  .contact { padding: 90px 0 180px; }
  .contact-bg {
    background:
      linear-gradient(180deg, rgba(20,22,27,.95) 0%, rgba(20,22,27,.8) 55%, rgba(20,22,27,.2) 100%),
      var(--img) center bottom / cover no-repeat;
  }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; margin-inline-start: 0; }
  .note-contact { display: none; }
}

@media (max-width: 480px) {
  .eyebrow { font-size: 9.5px; letter-spacing: .22em; }
  .eyebrow i { margin: 0 .35em; }
  .service-grid li { font-size: 12px; }
  .gallery .tile, .gallery-row + .gallery-row .tile { height: 110px; flex-basis: calc(var(--w) * 70px); }
  .brand-list { gap: 26px 30px; }
  .contact-sign .script { font-size: 48px; }
}

/* =====================================================================
   MULTI-PAGE COMPONENTS
   ===================================================================== */
.btn-sm { padding: 10px 20px; font-size: 12px; margin-top: 22px; }
.about-more { margin-top: 34px; }
.sub { font-size: 15px; line-height: 1.75; margin-top: -6px; }
.paper .sub { color: var(--muted-dark); }
.dark .sub { color: var(--muted-light); }
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-head { max-width: 620px; margin-bottom: clamp(40px, 5vw, 64px); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; min-height: 480px; height: 72vh; height: 72svh; max-height: 680px; display: flex; align-items: flex-end; overflow: hidden; background: #0e141b; }
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(var(--to-end), rgba(13,18,25,.94) 0%, rgba(13,18,25,.6) 45%, rgba(13,18,25,.15) 100%),
    linear-gradient(0deg, rgba(13,18,25,.9) 0%, rgba(13,18,25,0) 55%),
    var(--img, none) center / cover no-repeat;
  animation: heroZoom 18s ease-out both;
}
.page-hero-content { position: relative; z-index: 2; padding-bottom: clamp(56px, 8vw, 90px); }
.crumbs { font-size: 12px; color: rgba(255,255,255,.65); margin-bottom: 26px; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 .5em; opacity: .5; }
.crumbs span[data-p] { margin: 0; opacity: 1; }
.page-hero h1 { font-size: clamp(44px, 6.4vw, 84px); max-width: 900px; }
.page-hero h1 { padding-bottom: .12em; }
.page-hero h1 .script { font-size: 1.45em; line-height: .8; display: inline-block; transform: translateY(.1em) rotate(-4deg); margin: 0 .18em 0 .08em; }
.page-hero .lead { max-width: 520px; margin: 24px 0 0; }
.notfound { height: 100vh; height: 100svh; max-height: none; align-items: center; }
.notfound .lead { margin-bottom: 34px; }

/* ---------- Stats ---------- */
.stats-band { padding: 70px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 8px 30px; border-inline-start: 1px solid var(--line-light); }
.stat b { font-family: var(--serif); font-size: clamp(52px, 5.5vw, 76px); font-weight: 500; line-height: 1; }
.stat sup { font-family: var(--serif); font-size: 32px; vertical-align: top; margin-inline-start: 2px; }
.stat span { display: block; margin-top: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-light); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; max-width: 900px; }
.tl-item { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 34px 0; border-top: 1px solid var(--line-dark); }
.tl-item:last-child { border-bottom: 1px solid var(--line-dark); }
.tl-phase { font-size: 20px; }
.tl-item h3, .card h3, .svc h3, .step h3, .ind h3 { font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.15; margin-bottom: 10px; }
.tl-item p { color: var(--muted-dark); max-width: 560px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 40px 34px 44px; border: 1px solid var(--line-light); transition: border-color .3s, transform .35s; }
.card:hover { border-color: rgba(255,255,255,.45); transform: translateY(-4px); }
.card .num { display: block; font-size: 22px; margin-bottom: 26px; opacity: .8; }
.card p { color: var(--muted-light); font-size: 14px; }

/* ---------- Beyond work ---------- */
.beyond { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.beyond figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #222; }
.beyond img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.beyond figure:hover img { transform: scale(1.05); }
.beyond figcaption { position: absolute; inset: auto 0 0 0; padding: 60px 28px 26px; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); }
.beyond h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; }
.beyond p { font-size: 13px; opacity: .85; }

/* ---------- Toolkit ---------- */
.toolkit-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.toolkit-cols h4 { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; color: var(--muted-light); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line-light); border-radius: 999px; padding: 7px 16px; font-size: 13px; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; padding: clamp(90px, 11vw, 140px) 0; text-align: center; background: #15181d; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,18,22,.82), rgba(15,18,22,.82)), var(--img) center / cover no-repeat;
}
.cta-inner { position: relative; }
.cta h2 { font-size: clamp(34px, 4.2vw, 56px); }
.cta p:not(.label):not(.cta-note) { color: #d4d0c9; margin: -4px auto 34px; max-width: 460px; }
.cta-note { position: absolute; inset-inline-start: var(--gutter); top: 50%; transform: translateY(-50%) rotate(-14deg); font-size: 20px; text-align: start; color: #f0e9df; }

/* ---------- Service details ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-dark); }
.svc { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 46px 0; border-bottom: 1px solid var(--line-dark); scroll-margin-top: 100px; }
.svc:nth-child(odd) { padding-inline-end: 48px; border-inline-end: 1px solid var(--line-dark); }
.svc:nth-child(even) { padding-inline-start: 48px; }
.svc-icon { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.svc-icon svg { width: 36px; height: 36px; stroke-width: 1.2; }
.svc-icon span { font-size: 16px; color: var(--muted-dark); }
.svc p { color: var(--muted-dark); font-size: 14.5px; margin-bottom: 18px; }
.svc ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; font-size: 13px; }
.svc li::before { content: "— "; opacity: .5; }

/* ---------- Process ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.step { padding-top: 28px; border-top: 1px solid var(--line-light); position: relative; }
.step::before { content: ""; position: absolute; top: -4px; inset-inline-start: 0; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.step > span { display: block; font-size: 22px; margin-bottom: 16px; opacity: .8; }
.step p { color: var(--muted-light); font-size: 14px; }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ind { padding: 34px 28px 38px; background: rgba(255,255,255,.45); border: 1px solid var(--line-dark); }
.ind p { color: var(--muted-dark); font-size: 14px; }

/* ---------- Portfolio page ---------- */
.filters.center { justify-content: center; margin-bottom: 50px; }
.empty { text-align: center; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 26px; }
.work-card { display: block; color: var(--text-dark); }
.work-card.hide { display: none; }
.work-card .img { aspect-ratio: 4 / 3; overflow: hidden; background: #222; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.work-card:hover img { transform: scale(1.05); }
.work-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 18px; }
.work-info h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.1; }
.work-info small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); }
.work-info .arrow { font-size: 20px; transition: transform .3s; }
.work-card:hover .arrow { transform: translateX(6px); }
.work-cta { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(30px, 4vw, 56px); background: var(--ink); color: var(--cream); min-height: 100%; }
.work-cta .hand { font-size: 20px; opacity: .8; transform: rotate(-4deg); margin-bottom: 10px; }
.work-cta h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; margin-bottom: 26px; }
.work-cta .btn { pointer-events: none; }
.work-cta:hover .btn { background: #fff; color: var(--ink); }

/* ---------- Case study ---------- */
.case-meta { display: grid; grid-template-columns: 1.3fr .6fr 1fr 1.6fr; gap: 30px; padding-bottom: 44px; margin-bottom: 60px; border-bottom: 1px solid var(--line-dark); }
.case-meta dt { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 8px; color: var(--muted-dark); }
.case-meta dd { font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.case-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-bottom: 70px; }
.case-body p:not(.label) { color: var(--muted-dark); font-size: 15px; line-height: 1.8; }
.case-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(380px, 48vw, 640px); }
.case-gallery figure { overflow: hidden; cursor: zoom-in; background: #222; }
.case-gallery figure:first-child { grid-row: span 2; }
.case-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.case-gallery figure:hover img { transform: scale(1.04); }
.next-project { position: relative; display: block; overflow: hidden; padding: clamp(80px, 10vw, 130px) 0; background: #111; }
.next-bg { position: absolute; inset: 0; background: linear-gradient(var(--to-end), rgba(13,18,25,.92), rgba(13,18,25,.5)), var(--img, none) center / cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.next-project:hover .next-bg { transform: scale(1.04); }
.next-project .container { position: relative; }
.next-project h2 { font-size: clamp(40px, 6vw, 80px); margin: 0; }
.next-project .arrow { display: inline-block; transition: transform .3s; }
.next-project:hover .arrow { transform: translateX(10px); }

/* ---------- Masonry gallery ---------- */
.masonry { columns: 3 280px; column-gap: 14px; }
.masonry figure { position: relative; break-inside: avoid; margin-bottom: 14px; overflow: hidden; cursor: zoom-in; background: #222; }
.masonry figure.hide { display: none; }
.masonry img { width: 100%; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.masonry figure:hover img { transform: scale(1.05); }
.masonry figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 18px 14px; color: #fff; font-size: 13px; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.masonry figure:hover figcaption { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(8,10,13,.95); opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure { max-width: 88vw; text-align: center; }
.lightbox img { max-width: 88vw; max-height: 80vh; margin: 0 auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { margin-top: 16px; font-family: var(--serif); font-size: 20px; color: #eee; }
.lightbox button { position: absolute; color: #fff; font-size: 40px; line-height: 1; width: 56px; height: 56px; opacity: .75; transition: opacity .2s; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact page ---------- */
.contact-page { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.info { display: grid; gap: 24px; margin: 36px 0 40px; }
.info li { display: flex; gap: 16px; align-items: flex-start; font-size: 15px; }
.info svg { margin-top: 3px; }
.info small { display: block; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 2px; }
.info a:hover { opacity: .7; }
.avail { display: inline-flex; align-items: center; gap: 8px; }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: #3f8f5a; box-shadow: 0 0 0 4px rgba(63,143,90,.18); }
.contact-note { font-size: 19px; transform: rotate(-4deg); color: #333; }
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 28px; padding: clamp(28px, 4vw, 50px); background: rgba(255,255,255,.5); border: 1px solid var(--line-dark); }
.field { display: flex; flex-direction: column; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--text-dark);
  background: transparent; border: 0; border-bottom: 1px solid rgba(0,0,0,.25); border-radius: 0;
  padding: 10px 0; outline: none; transition: border-color .2s; resize: vertical; width: 100%;
}
.field select { cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--text-dark); }
.field.invalid input, .field.invalid textarea { border-bottom-color: #b3261e; }
.form-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 20px; }
.form-status { font-size: 13.5px; }
.form-status.error { color: #b3261e; }
.form-status.success { color: #2f7a4a; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.faq details { border-bottom: 1px solid var(--line-light); padding: 24px 0; }
.faq details:first-child { border-top: 1px solid var(--line-light); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 23px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 26px; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted-light); margin-top: 12px; max-width: 640px; }

/* ---------- Footer ---------- */
.footer { background: #0a0d11; padding: 80px 0 30px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer .logo { display: inline-block; margin-bottom: 16px; }
.footer-brand p { color: var(--muted-light); font-size: 13.5px; max-width: 280px; }
.footer-social { display: flex; gap: 16px; margin-top: 22px; }
.footer-social svg { width: 19px; height: 19px; }
.footer-social a { opacity: .75; transition: opacity .2s; }
.footer h4 { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 20px; }
.footer ul li { margin-bottom: 10px; font-size: 13.5px; color: var(--muted-light); }
.footer ul a, .footer-bottom a { transition: color .2s, opacity .2s; }
.footer ul a:hover, .footer-bottom a:hover, .footer-social a:hover { color: #fff; opacity: 1; }
.footer-contact li { display: flex; align-items: center; gap: 12px; }
.footer-contact svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line-light); font-size: 12px; color: var(--muted-light); }
.footer-bottom .hand { font-size: 15px; }

/* ---------- Responsive (multi-page) ---------- */
@media (max-width: 1100px) {
  .industries { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 44px 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-note { display: none; }
}
@media (max-width: 900px) {
  .page-hero { min-height: 440px; height: 64svh; }
  .page-hero-bg { background: linear-gradient(0deg, rgba(13,18,25,.95) 5%, rgba(13,18,25,.55) 60%, rgba(13,18,25,.45) 100%), var(--img, none) center / cover no-repeat; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .cards, .beyond, .toolkit-cols { grid-template-columns: 1fr; }
  .beyond figure { aspect-ratio: 4 / 3; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc:nth-child(odd), .svc:nth-child(even) { padding: 38px 0; border-inline-end: 0; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 18px; }
  .work-cta { grid-column: auto; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-body { grid-template-columns: 1fr; gap: 34px; }
  .case-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .case-gallery figure { aspect-ratio: 4 / 3; }
  .case-gallery figure:first-child { grid-row: auto; grid-column: 1 / -1; }
  .contact-page, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .faq-wrap .section-head { margin-bottom: 0; }
}
@media (max-width: 560px) {
  .work-grid, .industries, .steps, .form { grid-template-columns: 1fr; }
  .work-cta { min-height: 260px; }
  .svc { grid-template-columns: 1fr; gap: 16px; }
  .svc-icon { flex-direction: row; align-items: center; }
  .svc ul { grid-template-columns: 1fr; }
  .stat { padding: 4px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .faq summary { font-size: 20px; }
}

/* =====================================================================
   WORDPRESS THEME ADDITIONS
   ===================================================================== */

/* ---------- Language switch ---------- */
.lang-switch {
  position: relative; direction: ltr; isolation: isolate;
  display: inline-grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  height: 34px; padding: 3px; margin-inline-start: 6px;
  border: 1px solid rgba(255,255,255,.32); border-radius: 999px;
  background: rgba(255,255,255,.05); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .3s;
}
.lang-switch:hover { border-color: rgba(255,255,255,.6); }
.ls-opt {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  min-width: 46px; padding: 0 12px;
  font-family: "Inter", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .14em;
  color: rgba(255,255,255,.72); transition: color .4s;
}
.ls-opt[lang="ar"] { font-family: "IBM Plex Sans Arabic", "Inter", sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0; padding-bottom: 2px; }
.ls-opt:hover { color: #fff; }
.ls-opt.is-active { color: var(--ink); }
.ls-thumb {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: linear-gradient(180deg, #fbf8f3, #e9e3d8);
  box-shadow: 0 2px 10px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.6);
  transition: transform .5s cubic-bezier(.65,0,.25,1);
}
.lang-switch.is-ar .ls-thumb { transform: translateX(100%); }
.lang-switch.is-switching .ls-opt { color: rgba(255,255,255,.72); }
.lang-switch.is-switching .ls-opt.is-target { color: var(--ink); }
.ls-opt:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 999px; }

/* Page fades out gently while the other language loads */
body { transition: opacity .35s ease; }
body.lang-leaving main, body.lang-leaving .hero-content, body.lang-leaving .page-hero-content { opacity: .25; transition: opacity .35s ease; }

/* ---------- WordPress ---------- */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .nav.scrolled { top: 0; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.mw-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nav-links li { list-style: none; }
.nav-links .sub-menu { display: none; }
.brand-list .brand-logo { max-height: 34px; width: auto; margin: 0 auto; filter: brightness(0) invert(1); opacity: .92; }
.core-notice { position: fixed; inset: auto 16px 16px auto; z-index: 300; max-width: 360px; padding: 16px 18px; background: #fff; color: #111; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.4); font-size: 13px; }
.core-notice a { text-decoration: underline; }

/* ---------- Generic pages & blog ---------- */
.entry { max-width: 780px; margin: 0 auto; font-size: 17px; line-height: 1.8; }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { margin-top: 1.6em; }
.entry h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin-top: 1.4em; }
.entry a { text-decoration: underline; text-underline-offset: 3px; }
.entry ul, .entry ol { padding-inline-start: 1.3em; }
.entry ul { list-style: disc; }
.entry blockquote { border-inline-start: 2px solid currentColor; padding-inline-start: 22px; font-family: var(--serif); font-size: 22px; }
.entry img { height: auto; border-radius: 2px; }
.entry .alignwide { margin-inline: -8vw; max-width: none; }
.entry .aligncenter { margin-inline: auto; }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 26px; }
.post-card .img { aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; margin-bottom: 16px; }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.post-card:hover img { transform: scale(1.05); }
.post-card h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; margin-bottom: 8px; }
.post-card p { color: var(--muted-dark); font-size: 14px; }
.post-card small { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 8px; }
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 60px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 13px; }
.pagination .current { background: var(--text-dark); color: var(--paper); }
@media (max-width: 900px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-list { grid-template-columns: 1fr; } }

/* ---------- Mobile nav: keep the language switch visible ---------- */
@media (max-width: 900px) {
  .lang-switch { height: 30px; }
  .ls-opt { min-width: 40px; padding: 0 9px; }
}

/* ---------- Template extras ---------- */
.service-grid li a { display: block; }
.case-gallery.is-short { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.case-gallery.is-short figure:first-child { grid-row: auto; }
.case-gallery:has(figure:only-child) { grid-template-columns: 1fr; }
.case-more { margin-top: 12px; }
.case-more figure { cursor: zoom-in; }

/* ---------- Logo image ---------- */
.mw-logo { display: block; width: auto; max-width: none; }
.mw-logo-light { filter: drop-shadow(0 0 6px rgba(255,255,255,.28)) drop-shadow(0 0 18px rgba(255,255,255,.12)); }
.logo { display: inline-flex; align-items: center; }
.logo .mw-logo { height: 46px; transition: height .35s; }
.nav.scrolled .logo .mw-logo { height: 38px; }
.footer .logo .mw-logo { height: 58px; }
.hero h1 .hero-logo { display: inline-flex; align-self: center; margin-inline-start: .1em; }
.hero h1 .hero-logo .mw-logo { height: 1.55em; transform: translateY(.12em); }
.about-quote .sig { display: inline-block; }
.about-quote .sig .mw-logo { height: 62px; margin-inline-start: -4px; }
.contact-sign .sig { display: block; margin-bottom: 12px; }
.contact-sign .sig .mw-logo { height: 62px; margin-inline-start: auto; }
@media (max-width: 900px) {
  .logo .mw-logo, .nav.scrolled .logo .mw-logo { height: 36px; }
  .hero h1 .hero-logo .mw-logo { height: 1.4em; }
  .about-quote .sig .mw-logo { margin: 0 auto; }
}
@media (max-width: 480px) {
  .contact-sign .sig .mw-logo { height: 48px; }
}
