@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("assets/fonts/IBM-Plex-Sans-Arabic-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("assets/fonts/IBM-Plex-Sans-Arabic-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("assets/fonts/IBM-Plex-Sans-Arabic-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("assets/fonts/IBM-Plex-Sans-Arabic-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f3ec;
  --paper-deep: #eee5d9;
  --white: #fffdf8;
  --ink: #241f21;
  --muted: #6c635d;
  --line: #ded4c7;
  --wine: #65182d;
  --wine-dark: #46101f;
  --gold: #d9b46b;
  --gold-light: #ecd79f;
  --shell: 1280px;
  --section-space: clamp(88px, 9vw, 136px);
  --header-height: 88px;
  font-family: "IBM Plex Sans Arabic", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
}

body.menu-open {
  overflow: hidden;
}

body,
button,
a,
summary {
  font-family: "IBM Plex Sans Arabic", Arial, sans-serif;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

figure,
h1,
h2,
h3,
p {
  margin-top: 0;
}

::selection {
  background: #e4d1d4;
  color: var(--wine-dark);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.shell {
  width: min(var(--shell), calc(100% - 80px));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  inset-inline-start: 12px;
  padding: 8px 16px;
  transform: translateY(-160%);
  border-radius: 3px;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  z-index: 60;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--gold);
  pointer-events: none;
}

html[dir="ltr"] .scroll-progress {
  transform-origin: left;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: var(--header-height);
  background: rgb(248 243 236 / 90%);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  background: rgb(248 243 236 / 97%);
  border-color: var(--line);
  box-shadow: 0 10px 30px rgb(36 31 33 / 5%);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand,
.footer-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand img {
  display: block;
  width: auto;
  height: 54px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(19px, 2.5vw, 38px);
  margin-inline-start: auto;
}

.main-nav a {
  position: relative;
  padding-block: 8px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  transition: color 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  inset-inline-start: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--wine);
  transition: transform 220ms ease;
}

html[dir="ltr"] .main-nav a::after {
  transform-origin: left;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--wine);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.main-nav .nav-contact {
  padding: 9px 17px;
  border: 1px solid var(--wine);
  color: var(--wine);
}

.main-nav .nav-contact::after {
  display: none;
}

.main-nav .nav-contact:hover,
.main-nav .nav-contact.is-active {
  background: var(--wine);
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-toggle {
  min-width: 46px;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  transition: border-color 180ms ease, color 180ms ease;
}

.language-toggle:hover {
  border-color: var(--wine);
  color: var(--wine);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 20px;
  height: 1px;
  background: var(--ink);
  transition: transform 200ms ease;
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

/* Shared type and links */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.eyebrow > span:first-child {
  width: 32px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--gold);
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(45px, 5.1vw, 72px);
  font-weight: 500;
  line-height: 1.35;
}

h1 em {
  color: var(--wine);
  font-style: normal;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(33px, 3.8vw, 50px);
  font-weight: 500;
  line-height: 1.5;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--wine);
  color: var(--white);
}

.button-primary:hover {
  background: var(--wine-dark);
}

.button .arrow {
  font-family: inherit;
  font-size: 18px;
  line-height: 1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.link-line {
  position: relative;
  width: 35px;
  height: 1px;
  overflow: hidden;
  background: var(--gold);
}

.link-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(110%);
  background: var(--wine);
  transition: transform 220ms ease;
}

.text-link:hover .link-line::after {
  transform: translateX(0);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: end;
  gap: clamp(40px, 8vw, 120px);
  margin-bottom: clamp(42px, 5vw, 66px);
}

.section-intro {
  padding-bottom: 6px;
}

.section-intro > p {
  margin-bottom: 23px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(780px, calc(100svh - var(--header-height)));
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(44px, 6vw, 88px);
  padding-block: 58px 94px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 18px -28px 34px;
  background-image:
    radial-gradient(ellipse 48% 64% at 76% 48%, rgb(217 180 107 / 24%), transparent 73%),
    radial-gradient(ellipse 40% 52% at 18% 52%, rgb(255 255 255 / 62%), transparent 78%);
  background-size: 100% 100%, 100% 100%;
  mask-image: radial-gradient(ellipse 90% 85% at 50% 48%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 48%, #000 55%, transparent 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-description {
  max-width: 510px;
  margin-bottom: 31px;
  color: var(--muted);
  font-size: 16px;
  line-height: 2.05;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 13px 14px 12px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: rgb(255 253 248 / 82%);
  box-shadow: 0 10px 26px -18px rgb(36 31 33 / 18%);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  backdrop-filter: blur(6px);
}

.hero-points li:first-child {
  border-top-color: var(--wine);
}

.hero-points li > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wine);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.hero-points li > span:first-child::after {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--gold);
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: -14px;
  inset-inline-end: -14px;
  bottom: 28px;
  inset-inline-start: 14px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, rgb(217 180 107 / 10%), transparent 60%);
  box-shadow: 0 6px 52px rgb(185 148 88 / 16%);
  pointer-events: none;
}

.hero-image-wrap {
  position: relative;
  height: clamp(450px, 48vw, 610px);
  overflow: hidden;
  border: 1px solid rgb(101 24 45 / 18%);
  background: #50434a;
  box-shadow: 0 32px 80px rgb(36 31 33 / 17%);
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(20 15 18 / 20%));
  pointer-events: none;
}

.hero-image-wrap > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  animation: hero-enter 1.1s cubic-bezier(.22, .75, .25, 1) both;
}

@keyframes hero-enter {
  from { transform: scale(1.045); }
  to { transform: scale(1); }
}

.visual-tag {
  position: absolute;
  z-index: 1;
  top: 18px;
  inset-inline-start: 18px;
  padding: 5px 10px;
  background: rgb(36 31 33 / 65%);
  color: var(--white);
  font-size: 9px;
  backdrop-filter: blur(8px);
}

.visual-corner {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  width: 35px;
  height: 35px;
  border-right: 1px solid rgb(255 255 255 / 60%);
  border-bottom: 1px solid rgb(255 255 255 / 60%);
}

.hero-material-stamp {
  position: absolute;
  z-index: 2;
  bottom: 25px;
  inset-inline-start: 25px;
  display: flex;
  flex-direction: column;
  padding: 13px 16px 12px;
  border-inline-start: 2px solid var(--gold);
  background: rgb(30 26 29 / 78%);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.hero-material-stamp strong {
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .15em;
  line-height: 1.2;
}

.hero-material-stamp small {
  margin-top: 4px;
  color: #ddd2cb;
  font-size: 9px;
  line-height: 1.6;
}

.hero-visual figcaption,
.specs-visual-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 13px;
  color: var(--muted);
  font-size: 13px;
}

.hero-note {
  position: absolute;
  z-index: 2;
  bottom: 54px;
  inset-inline-end: -30px;
  min-width: 154px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 19px;
  background: var(--paper);
  box-shadow: 0 15px 40px rgb(36 31 33 / 12%);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.65;
}

.note-symbol {
  color: var(--gold);
  font-family: inherit;
  font-size: 27px;
  font-weight: 300;
}

.scroll-cue {
  position: absolute;
  bottom: 27px;
  inset-inline-start: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.scroll-cue > span:last-child {
  color: var(--gold);
  font-family: inherit;
  font-size: 17px;
  animation: scroll-cue 2s ease-in-out infinite;
}

@keyframes scroll-cue {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

/* Products */
.products-section {
  border-top: 1px solid var(--line);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px -24px rgb(36 31 33 / 12%);
  transition: transform 320ms cubic-bezier(.2, .75, .25, 1), box-shadow 320ms ease, border-color 320ms ease;
}

.product-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(.26);
  transform-origin: right;
  background: linear-gradient(90deg, var(--gold), var(--wine));
  transition: transform 320ms cubic-bezier(.2, .75, .25, 1);
}

html[dir="ltr"] .product-card::before {
  transform-origin: left;
}

.product-card:first-child {
  border-color: #d3c2ac;
  background: linear-gradient(180deg, #fffdf9 0%, #fbf6ee 100%);
}

.product-card:first-child::before {
  transform: scaleX(.55);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 28px 62px -18px rgb(36 31 33 / 15%);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-image {
  position: relative;
  aspect-ratio: 1.24;
  overflow: hidden;
  margin: 10px 10px 0;
  border: 1px solid rgb(36 31 33 / 8%);
  background: #d2cbc0;
}

.product-image::after,
.project-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgb(20 15 18 / 26%));
  pointer-events: none;
}

.product-image img,
.project-card figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 750ms cubic-bezier(.2, .75, .25, 1);
}

.product-card:hover .product-image img,
.project-card:hover figure img {
  transform: scale(1.045);
}

.card-number,
.project-index {
  position: absolute;
  z-index: 1;
  bottom: 14px;
  inset-inline-start: 14px;
  padding: 4px 10px;
  border-inline-start: 2px solid var(--gold);
  background: rgb(30 25 28 / 76%);
  color: var(--white);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: .08em;
  backdrop-filter: blur(6px);
}

.product-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 25px 26px 26px;
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 600;
}

.card-kicker::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--gold);
}

.product-copy h3 {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
}

.product-copy > p:not(.card-kicker) {
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.95;
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--wine);
  font-size: 14px;
  font-weight: 500;
}

.card-link > span:last-child {
  font-family: inherit;
  font-size: 17px;
  transition: transform 180ms ease;
}

.card-link:hover > span:last-child {
  transform: translateX(-4px);
}

html[dir="ltr"] .card-link > span:last-child {
  transform: rotate(180deg);
}

html[dir="ltr"] .card-link:hover > span:last-child {
  transform: rotate(180deg) translateX(-4px);
}

/* Material story — a bespoke technical editorial break, not another card grid. */
.material-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  margin-top: clamp(58px, 7vw, 92px);
  border: 1px solid #d4c6b4;
  border-top: 3px solid var(--wine);
  background: linear-gradient(135deg, var(--white) 0%, #f9f4eb 100%);
  box-shadow: 0 28px 65px -26px rgb(36 31 33 / 14%);
}

.material-feature::after {
  content: "";
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 28px;
  height: 28px;
  border-top: 1px solid var(--gold);
  border-inline-end: 1px solid var(--gold);
  pointer-events: none;
}

.material-visual {
  min-width: 0;
  margin: 0;
  padding: 20px 20px 0;
  background: var(--ink);
  color: var(--white);
}

.material-visual > img {
  width: 100%;
  height: 440px;
  display: block;
  object-fit: cover;
  border: 1px solid rgb(217 180 107 / 22%);
}

.material-visual figcaption {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #b9aea7;
  font-size: 13px;
  line-height: 1.7;
}

.material-copy {
  align-self: center;
  padding: clamp(32px, 4vw, 55px);
}

.material-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
  padding: 4px 12px;
  border-inline-start: 2px solid var(--gold);
  background: rgb(101 24 45 / 6%);
  color: var(--wine);
  font-size: 13px;
  font-weight: 600;
}

.material-copy h3 {
  max-width: 480px;
  margin-bottom: 20px;
  font-size: clamp(27px, 2.8vw, 39px);
  font-weight: 500;
  line-height: 1.55;
}

.material-intro {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.material-register {
  margin: 0;
  border-top: 1px solid var(--line);
  counter-reset: material-row;
}

.material-register > div {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 20px;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  transition: background 200ms ease;
}

.material-register > div:hover {
  background: rgb(217 180 107 / 8%);
}

.material-register dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 600;
}

.material-register dt::before {
  counter-increment: material-row;
  content: "0" counter(material-row);
  color: var(--gold);
  font-family: inherit;
  font-size: 9px;
}

.material-register dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

/* Projects */
.projects-section {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.section-heading-light {
  position: relative;
}

.section-heading-light .eyebrow,
.section-heading-light .section-intro > p {
  color: #c5bcb5;
}

.section-heading-light h2 {
  color: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1.22fr .78fr;
  align-items: start;
  gap: 28px;
}

.project-card {
  position: relative;
  min-width: 0;
  padding: 18px 18px 22px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-top: 2px solid var(--gold);
  background: linear-gradient(180deg, rgb(255 255 255 / 4%) 0%, rgb(255 255 255 / 1.5%) 100%);
  transition: border-color 280ms ease, transform 280ms ease;
}

.project-card:not(.project-card-wide) {
  margin-top: 38px;
  border-top-color: var(--wine);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgb(217 180 107 / 45%);
}

.project-card figure {
  position: relative;
  height: 430px;
  overflow: hidden;
  margin: 0 0 20px;
  border: 1px solid rgb(255 255 255 / 10%);
  background: #3d3439;
}

.project-card-wide figure {
  height: 430px;
}

.project-card:not(.project-card-wide) figure img {
  object-position: 65% center;
}

.project-index {
  bottom: 16px;
}

.project-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 4px;
}

.project-copy p {
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 13px;
}

.project-copy h3 {
  margin-bottom: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.55;
}

.project-copy > p {
  max-width: 210px;
  margin-bottom: 2px;
  padding-inline-start: 14px;
  border-inline-start: 1px solid rgb(217 180 107 / 28%);
  color: #bfb6b1;
  font-size: 14px;
  line-height: 1.85;
}

.media-note {
  max-width: 780px;
  margin: 39px 0 0;
  padding-top: 19px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: #a99f99;
  font-size: 13px;
  line-height: 1.9;
}

/* About */
.about-section {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(50px, 9vw, 135px);
}

.about-heading {
  padding-inline-end: 30px;
  border-inline-end: 1px solid var(--line);
}

.about-year {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  margin-top: 48px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--wine);
  background: var(--white);
  box-shadow: 0 14px 32px -22px rgb(36 31 33 / 14%);
}

.about-year > span {
  color: var(--wine);
  font-family: inherit;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .04em;
}

.about-year p {
  max-width: 155px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.about-lead {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.9;
}

.about-description {
  max-width: 670px;
  margin-bottom: 46px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2.1;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.values-grid > div {
  position: relative;
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: var(--white);
  box-shadow: 0 14px 32px -22px rgb(36 31 33 / 12%);
  transition: transform 240ms ease, border-color 240ms ease;
}

.values-grid > div:first-child {
  border-top-color: var(--wine);
}

.values-grid > div:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.values-grid > div > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--wine);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
}

.values-grid > div > span::after {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.values-grid h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
}

.values-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

/* Specifications */
.specs-section {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}

.specs-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(50px, 8vw, 115px);
}

.specs-visual {
  min-width: 0;
  padding: 18px;
  background: rgb(255 253 248 / 58%);
  border: 1px solid #d6caba;
}

.specs-visual > img {
  width: 100%;
  min-height: 430px;
  display: block;
  object-fit: cover;
}

.specs-visual-caption {
  padding: 12px 3px 0;
}

.specs-intro {
  max-width: 570px;
  margin: 21px 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.specs-accordion {
  border-top: 1px solid #cfc2b2;
}

.specs-accordion details {
  border-bottom: 1px solid #cfc2b2;
}

.specs-accordion summary {
  min-height: 58px;
  display: grid;
  grid-template-columns: 32px 1fr 20px;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}

.specs-accordion summary::-webkit-details-marker {
  display: none;
}

.specs-accordion summary > span:first-child {
  color: var(--wine);
  font-family: inherit;
  font-size: 10px;
}

.specs-accordion summary i {
  position: relative;
  width: 14px;
  height: 14px;
}

.specs-accordion summary i::before,
.specs-accordion summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  transform: translate(-50%, -50%);
  background: var(--wine);
  transition: transform 180ms ease;
}

.specs-accordion summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.specs-accordion details[open] summary i::after {
  transform: translate(-50%, -50%) rotate(0);
}

.specs-accordion details > p {
  margin: -2px 45px 20px 33px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
  animation: accordion-in 220ms ease both;
}

@keyframes accordion-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

.specs-note {
  margin: 20px 0 0;
  color: #7c7066;
  font-size: 13px;
  line-height: 1.9;
}

/* Contact */
.contact-section {
  padding-block: var(--section-space);
  background: var(--paper);
}

.contact-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr);
  align-items: center;
  gap: clamp(45px, 8vw, 120px);
  padding: clamp(45px, 6vw, 78px);
  background: var(--wine);
  color: var(--white);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 90px;
  height: 1px;
  background: var(--gold);
}

.contact-orbit {
  position: absolute;
  width: 390px;
  height: 390px;
  inset-inline-end: -190px;
  bottom: -230px;
  border: 1px solid rgb(217 180 107 / 16%);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgb(217 180 107 / 3%), 0 0 0 110px rgb(217 180 107 / 3%);
  pointer-events: none;
}

.contact-copy,
.contact-actions {
  position: relative;
  z-index: 1;
}

.contact-copy .eyebrow {
  color: #dfcfd2;
}

.contact-copy h2 {
  font-size: clamp(35px, 4vw, 53px);
}

.contact-copy > p:last-child {
  max-width: 510px;
  margin: 23px 0 0;
  color: #ddcfd2;
  font-size: 13px;
  line-height: 2;
}

.contact-button {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  transition: transform 180ms ease, background 180ms ease;
}

.contact-button:hover {
  transform: translateY(-3px);
}

.contact-whatsapp {
  background: var(--gold);
  color: var(--wine-dark);
}

.contact-whatsapp:hover {
  background: var(--gold-light);
}

.contact-button svg,
.floating-whatsapp svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  fill: currentColor;
}

.contact-button > span:not(.contact-arrow) {
  display: flex;
  flex-direction: column;
}

.contact-button small {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.contact-button strong {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.contact-arrow {
  margin-inline-start: auto;
  font-family: inherit;
  font-size: 19px;
}

.social-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 12px;
  background: rgb(255 255 255 / 18%);
}

.social-links a {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: var(--wine);
  color: #f3e8e9;
  font-size: 14px;
  transition: background 180ms ease;
}

.social-links a:hover {
  background: var(--wine-dark);
}

.social-links a > span:last-child {
  color: var(--gold);
  font-family: inherit;
}

.contact-status {
  min-height: 18px;
  margin: 10px 0 0;
  color: #cdb9be;
  font-size: 13px;
  line-height: 1.8;
}

/* Footer */
.site-footer {
  padding-top: 35px;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 45px;
  padding-bottom: 32px;
}

.footer-brand img {
  width: auto;
  height: 37px;
  display: block;
}

.footer-main > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-main nav {
  display: flex;
  gap: 22px;
}

.footer-main nav a {
  color: var(--muted);
  font-size: 14px;
  transition: color 180ms ease;
}

.footer-main nav a:hover {
  color: var(--wine);
}

.footer-bottom {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-bottom > span {
  display: flex;
  gap: 5px;
}

.footer-bottom a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom a > span:last-child {
  color: var(--gold);
  font-family: inherit;
  font-size: 15px;
}

.floating-whatsapp {
  position: fixed;
  z-index: 30;
  bottom: 23px;
  inset-inline-end: 23px;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 30px;
  background: var(--wine);
  box-shadow: 0 10px 30px rgb(36 31 33 / 20%);
  color: var(--white);
  font-size: 13px;
  transition: transform 180ms ease, background 180ms ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px);
  background: var(--wine-dark);
}

.floating-whatsapp svg {
  width: 19px;
  height: 19px;
  color: var(--gold);
}

/* English refinements */
html[data-language="en"] body,
html[data-language="en"] button,
html[data-language="en"] a,
html[data-language="en"] summary {
  font-family: "IBM Plex Sans Arabic", Arial, sans-serif;
}

html[data-language="en"] h1 {
  font-size: clamp(43px, 4.8vw, 68px);
  letter-spacing: -.045em;
  line-height: 1.15;
}

html[data-language="en"] h2 {
  letter-spacing: -.035em;
  line-height: 1.25;
}

html[data-language="en"] h3,
html[data-language="en"] p,
html[data-language="en"] a,
html[data-language="en"] summary {
  line-height: 1.6;
}

html[data-language="en"] .eyebrow {
  letter-spacing: .07em;
  text-transform: uppercase;
}

html[data-language="en"] .hero-description,
html[data-language="en"] .section-intro > p,
html[data-language="en"] .about-description,
html[data-language="en"] .specs-intro {
  line-height: 1.8;
}

/* Custom text positioning from the visual editor */
:root {
  --move-factor: 1;
}

[data-text-styled="true"] {
  translate: calc(var(--tx, 0px) * var(--move-factor, 1)) calc(var(--ty, 0px) * var(--move-factor, 1));
}

/* Reveal motion */
.reveal-init {
  opacity: 0;
  transform: translateY(20px);
}

.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.22, .75, .25, 1);
}

.reveal-lag-1 {
  transition-delay: 100ms;
}

.reveal-lag-2 {
  transition-delay: 200ms;
}

/* Laptop and tablet */
@media (max-width: 1100px) {
  .shell {
    width: min(var(--shell), calc(100% - 56px));
  }

  .header-inner {
    gap: 20px;
  }

  .brand img {
    height: 47px;
  }

  .main-nav {
    gap: 18px;
  }

  .main-nav a {
    font-size: 12.5px;
  }

  .main-nav .nav-contact {
    padding-inline: 12px;
  }

  .hero {
    gap: 45px;
  }

  .hero-note {
    inset-inline-end: -12px;
  }

  .project-copy {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .project-copy > p {
    max-width: 290px;
  }

  .footer-main {
    grid-template-columns: auto 1fr;
  }

  .footer-main nav {
    grid-column: 1 / -1;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 76px;
    --move-factor: 0.65;
  }

  /* The hero glow bleeds 28px past the shell on desktop; on phones the shell
     margin is smaller than that, which made the page scroll sideways. */
  .hero::before {
    inset-inline: 0;
  }

  .menu-toggle {
    position: relative;
    display: grid;
  }

  .main-nav {
    position: fixed;
    z-index: 45;
    top: var(--header-height);
    inset-inline: 0;
    height: calc(100svh - var(--header-height));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 28px;
    transform: translateY(-12px);
    visibility: hidden;
    opacity: 0;
    background: var(--paper);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  }

  .main-nav.is-open {
    transform: none;
    visibility: visible;
    opacity: 1;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    min-height: 62px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 20px;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav .nav-contact {
    justify-content: center;
    min-height: 54px;
    margin-top: 28px;
    padding: 10px 20px;
    border: 1px solid var(--wine);
    background: var(--wine);
    color: var(--white);
    font-size: 14px;
  }

  .main-nav .quote-trigger {
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin-top: 10px;
    padding: 10px 20px;
    background: transparent;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-block: 54px 82px;
  }

  h1 {
    font-size: clamp(38px, 5.7vw, 51px);
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero-points {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 28px;
  }

  .hero-points li {
    flex-direction: row;
    align-items: center;
    padding: 10px 13px;
  }

  .hero-image-wrap {
    height: 510px;
  }

  .hero-note {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-intro {
    max-width: 580px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .product-card:last-child .product-image {
    height: 100%;
    aspect-ratio: auto;
  }

  .material-feature {
    grid-template-columns: 1fr;
  }

  .material-visual > img {
    height: auto;
    max-height: 530px;
    aspect-ratio: 1.35;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card:not(.project-card-wide) {
    margin-top: 0;
  }

  .project-card figure,
  .project-card-wide figure {
    height: 360px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .about-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 0 0 35px;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }

  .about-heading .eyebrow {
    grid-column: 1 / -1;
  }

  .about-year {
    align-self: end;
    margin: 0;
  }

  .specs-grid {
    gap: 40px;
  }

  .specs-visual > img {
    min-height: 390px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .contact-actions {
    max-width: 480px;
  }
}

/* Project sites page */
.page-hero {
  position: relative;
  min-height: min(700px, calc(100svh - var(--header-height)));
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(44px, 6vw, 88px);
  padding-block: 54px 88px;
}

.page-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 18px -28px 40px;
  background-image:
    radial-gradient(circle at 82% 16%, rgb(217 180 107 / 15%), transparent 55%);
  background-size: 100% 100%;
  mask-image: radial-gradient(ellipse 92% 88% at 50% 46%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 92% 88% at 50% 46%, #000 55%, transparent 100%);
  pointer-events: none;
}

@media (max-width: 900px) {
  /* Same sideways-scroll guard as .hero::before. */
  .page-hero::before {
    inset-inline: 0;
  }
}

.page-hero-copy {
  position: relative;
  z-index: 2;
}

.page-hero-copy h1 {
  font-size: clamp(40px, 4.9vw, 64px);
}

.page-hero-description {
  max-width: 540px;
  margin-bottom: 31px;
  color: var(--muted);
  font-size: 16px;
  line-height: 2.05;
}

.pj-hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.pj-hero-points li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 14px 14px 15px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: rgb(255 253 248 / 82%);
  box-shadow: 0 10px 26px -18px rgb(36 31 33 / 18%);
  backdrop-filter: blur(6px);
}

.pj-hero-points li:first-child {
  border-top-color: var(--wine);
}

.pj-hero-points li > span:first-child {
  color: var(--wine);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.pj-hero-points li > span:nth-child(2) {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.pj-hero-points li > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* Site types */
.pj-types-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.pj-types-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.pj-type-card {
  position: relative;
  min-width: 0;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: var(--paper);
  box-shadow: 0 16px 38px -24px rgb(36 31 33 / 12%);
  transition: transform 280ms cubic-bezier(.2, .75, .25, 1), border-color 280ms ease, box-shadow 280ms ease;
}

.pj-type-card:nth-child(4),
.pj-type-card:nth-child(5) {
  grid-column: span 3;
  border-top-color: var(--wine);
}

.pj-type-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 26px 54px -18px rgb(36 31 33 / 15%);
}

.pj-type-index {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  color: var(--gold);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: .08em;
}

.pj-type-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 600;
}

.pj-type-kicker::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--gold);
}

.pj-type-card h3 {
  margin: 1px 0 2px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
}

.pj-type-card > p:not(.pj-type-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.pj-types-note {
  max-width: 720px;
  margin: 30px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

/* Process */
.pj-process-section {
  background: var(--ink);
  color: var(--white);
}

.pj-process > div {
  position: relative;
  display: grid;
  grid-template-columns: 104px 1fr;
  align-items: center;
  gap: 26px;
  padding: 23px 6px;
  border-bottom: 1px solid rgb(255 255 255 / 11%);
  transition: background 220ms ease;
}

.pj-process > div:first-child {
  border-top: 1px solid rgb(255 255 255 / 11%);
}

.pj-process > div:hover {
  background: rgb(255 255 255 / 3.5%);
}

.pj-process > div > span {
  color: var(--gold);
  font-family: inherit;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .04em;
}

.pj-process h3 {
  margin: 0 0 7px;
  color: var(--white);
  font-size: 20px;
  font-weight: 500;
}

.pj-process p {
  margin: 0;
  max-width: 640px;
  color: #b9b1ac;
  font-size: 15px;
  line-height: 2;
}

/* Gallery */
.pj-gallery-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.pj-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pj-gallery-grid .project-card {
  margin-top: 0;
  padding: 16px 16px 20px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: var(--paper);
  box-shadow: 0 18px 42px -24px rgb(36 31 33 / 12%);
  transition: transform 280ms cubic-bezier(.2, .75, .25, 1), border-color 280ms ease, box-shadow 280ms ease;
}

.pj-gallery-grid .project-card:nth-child(4n + 3) {
  border-top-color: var(--wine);
}

.pj-gallery-grid .project-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 28px 60px -20px rgb(36 31 33 / 16%);
}

.pj-gallery-grid figure {
  height: auto;
  aspect-ratio: 1.42;
  margin: 0 0 18px;
}

.pj-gallery-grid .visual-tag {
  top: 12px;
  inset-inline-start: 12px;
}

.pj-gallery-grid .project-copy p {
  color: var(--wine);
}

.pj-gallery-grid .project-copy > p {
  max-width: none;
  color: var(--muted);
}

.pj-gallery-grid .project-copy h3 {
  font-size: 20px;
}

.pj-gallery-grid .media-note {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .pj-types-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .pj-type-card,
  .pj-type-card:nth-child(4),
  .pj-type-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .page-hero {
    min-height: auto;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-block: 44px 74px;
  }

  .pj-hero-points {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .pj-hero-points li {
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: start;
    gap: 2px 10px;
  }

  .pj-hero-points li > span:first-child {
    grid-row: 1 / 3;
    margin-top: 3px;
  }

  .pj-process > div {
    grid-template-columns: 64px 1fr;
    gap: 14px;
    padding: 18px 4px;
  }

  .pj-process > div > span {
    font-size: 22px;
  }

  .pj-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .pj-gallery-grid figure {
    aspect-ratio: 1.15;
  }
}

/* About page */
.ab-story-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.ab-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 92px);
  margin-top: 34px;
}

.ab-story-copy > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 2.15;
}

.ab-story-copy > p:last-child {
  margin-bottom: 0;
}

.ab-story-copy > p:first-child {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.95;
}

.ab-story-figure {
  margin: 0;
  padding: 14px 14px 0;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: var(--white);
  box-shadow: 0 18px 42px -24px rgb(36 31 33 / 14%);
}

.ab-story-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.45;
  object-fit: cover;
}

.ab-story-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* Make section */
.ab-make-section {
  background: var(--ink);
  color: var(--white);
}

.ab-make-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ab-make-grid .project-card {
  margin: 0;
  padding: 16px 16px 20px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 42px -24px rgb(0 0 0 / 30%);
  transition: transform 280ms cubic-bezier(.2, .75, .25, 1), border-color 280ms ease, box-shadow 280ms ease;
}

.ab-make-grid .project-card:nth-child(3n) {
  border-top-color: var(--wine);
}

.ab-make-grid .project-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.ab-make-grid figure {
  height: auto;
  aspect-ratio: 1.45;
  margin: 0 0 16px;
  background: transparent;
}

.ab-make-grid figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: inherit;
  object-fit: cover;
}

.ab-make-grid .project-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ab-make-grid .project-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.ab-make-grid h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
}

.ab-make-section .pj-types-note {
  border-top-color: rgb(255 255 255 / 14%);
  color: #b9b1ac;
}

@media (max-width: 1100px) {
  .ab-make-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .ab-story-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 18px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --section-space: 76px;
    --move-factor: 0.35;
  }

  .shell {
    width: calc(100% - 36px);
  }

  .brand img {
    height: 40px;
  }

  .header-inner {
    gap: 12px;
  }

  .header-actions {
    gap: 7px;
  }

  .language-toggle {
    min-width: 40px;
    min-height: 40px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .main-nav {
    padding: 23px 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 37px;
    padding-block: 46px 72px;
  }

  .hero-copy {
    max-width: 520px;
  }

  .eyebrow {
    margin-bottom: 17px;
    font-size: 12.5px;
  }

  h1 {
    margin-bottom: 19px;
    font-size: clamp(40px, 11.4vw, 56px);
    line-height: 1.36;
  }

  h2 {
    font-size: clamp(30px, 8.5vw, 38px);
  }

  html[data-language="en"] h1 {
    font-size: clamp(38px, 10.8vw, 52px);
    line-height: 1.15;
  }

  .hero-description {
    margin-bottom: 25px;
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 19px;
  }

  .button {
    min-height: 51px;
    gap: 19px;
    padding-inline: 18px;
    font-size: 14px;
  }

  .hero-actions .text-link {
    font-size: 13px;
  }

  .hero-actions .link-line {
    display: none;
  }

  .hero-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 28px;
    padding-top: 0;
  }

  .hero-points li {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 10px 10px;
    font-size: 12px;
  }

  .hero-visual::before {
    inset: -8px -8px 24px 8px;
  }

  .hero-image-wrap {
    height: min(112vw, 470px);
    min-height: 340px;
  }

  .hero-visual figcaption {
    font-size: 12px;
  }

  .scroll-cue {
    bottom: 20px;
  }

  .section-heading {
    gap: 20px;
    margin-bottom: 34px;
  }

  .section-intro > p {
    margin-bottom: 17px;
    font-size: 13px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-card:last-child {
    grid-column: auto;
    display: flex;
  }

  .product-card:last-child .product-image {
    height: auto;
    aspect-ratio: 1.24;
  }

  .product-image {
    aspect-ratio: 1.42;
  }

  .product-copy {
    padding: 21px 21px 23px;
  }

  .product-copy h3 {
    font-size: 22px;
  }

  .hero-material-stamp {
    bottom: 18px;
    inset-inline-start: 18px;
  }

  .material-feature {
    margin-top: 48px;
  }

  .material-visual {
    padding: 11px 11px 0;
  }

  .material-visual > img {
    aspect-ratio: 1.08;
  }

  .material-visual figcaption {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding-block: 10px;
  }

  .material-copy {
    padding: 29px 23px 31px;
  }

  .material-copy h3 {
    font-size: 28px;
  }

  .material-register > div {
    grid-template-columns: 68px 1fr;
    gap: 13px;
  }

  .page-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pj-types-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pj-type-card {
    padding: 18px 16px 20px;
  }

  .pj-process > div {
    grid-template-columns: 44px 1fr;
    gap: 10px;
    align-items: start;
  }

  .pj-process > div > span {
    margin-top: 3px;
    font-size: 18px;
  }

  .pj-gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pj-gallery-grid figure,
  .project-card figure,
  .project-card-wide figure {
    height: auto;
    aspect-ratio: 1.22;
    margin-bottom: 16px;
  }

  .ab-make-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ab-story-copy > p:first-child {
    font-size: 14.5px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-copy {
    gap: 7px;
  }

  .project-copy h3 {
    font-size: 21px;
  }

  .project-copy > p {
    font-size: 13px;
  }

  .media-note {
    margin-top: 31px;
  }

  .about-heading {
    display: block;
    padding-bottom: 28px;
  }

  .about-year {
    margin-top: 26px;
  }

  .about-grid {
    gap: 34px;
  }

  .about-lead {
    font-size: 20px;
  }

  .about-description {
    margin-bottom: 35px;
    font-size: 13px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .values-grid > div {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0 10px;
    padding: 18px 18px 20px;
  }

  .values-grid > div > span {
    grid-row: 1 / 3;
    align-self: start;
    margin: 5px 0 0;
  }

  .values-grid h3,
  .values-grid p {
    grid-column: 2;
  }

  .specs-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .specs-visual {
    padding: 12px;
  }

  .specs-visual > img {
    min-height: 0;
    aspect-ratio: 1.15;
  }

  .specs-content {
    grid-row: 1;
  }

  .specs-intro {
    font-size: 13px;
  }

  .specs-accordion summary {
    min-height: 56px;
    font-size: 13px;
  }

  .specs-accordion details > p {
    margin-inline: 45px 20px;
  }

  .contact-card {
    gap: 30px;
    padding: 37px 24px;
  }

  .contact-copy h2 {
    font-size: clamp(31px, 8.5vw, 39px);
  }

  .contact-button {
    min-height: 72px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .footer-main nav {
    grid-column: auto;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 23px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding-block: 13px;
  }

  .floating-whatsapp {
    bottom: 15px;
    inset-inline-end: 15px;
    width: 49px;
    height: 49px;
    min-height: 49px;
    justify-content: center;
    padding: 0;
  }

  .floating-whatsapp span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .floating-whatsapp svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 380px) {
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding-inline: 19px;
  }
}

@media (min-width: 1600px) {
  :root {
    --shell: 1380px;
  }

  .hero-image-wrap {
    height: 630px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal-init,
  .reveal-in {
    opacity: 1;
    transform: none;
  }
}

/* ===== Portfolio — سابقة الأعمال ===== */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 18px;
}

.pf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 18px 22px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: var(--paper);
  box-shadow: 0 16px 38px -24px rgb(36 31 33 / 12%);
  transition: transform 280ms cubic-bezier(.2, .75, .25, 1), border-color 280ms ease, box-shadow 280ms ease;
}

.pf-card:nth-child(3n) {
  border-top-color: var(--wine);
}

.pf-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 24px 50px -20px rgb(36 31 33 / 15%);
}

.pf-card .pj-type-index {
  top: 15px;
  font-size: 9px;
}

.pf-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

.pf-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.pf-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 5px;
}

.pf-thumbs img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--white);
}

.pf-view {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgb(201 165 95 / 45%);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.pf-view:hover {
  border-color: var(--gold);
  background: rgb(201 165 95 / 14%);
}

.pf-card[hidden] {
  display: none;
}

/* ===== Portfolio map ===== */
.pf-map {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  margin-bottom: clamp(40px, 5vw, 64px);
  padding: clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--line);
  background: var(--white);
}

.pf-map[hidden] {
  display: none;
}

.pf-map-figure {
  margin: 0;
}

.pf-map-figure svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.pf-map-land {
  fill: var(--paper-deep);
  stroke: rgb(101 24 45 / 35%);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.pf-map-nile {
  fill: none;
  stroke: #c9b07a;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-pf-map-dots] g {
  cursor: pointer;
}

.pf-map-halo {
  fill: rgb(217 180 107 / 28%);
  transition: fill 180ms ease;
}

.pf-map-core {
  fill: var(--wine);
  stroke: var(--white);
  stroke-width: 2;
}

.pf-map-label {
  fill: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-anchor: middle;
  paint-order: stroke;
  stroke: var(--white);
  stroke-width: 4px;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

[data-pf-map-dots] g:hover .pf-map-label,
[data-pf-map-dots] g.is-active .pf-map-label {
  opacity: 1;
}

[data-pf-map-dots] g:hover .pf-map-halo,
[data-pf-map-dots] g.is-active .pf-map-halo {
  fill: rgb(101 24 45 / 22%);
}

.pf-map-figure figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.pf-map-kicker {
  margin-bottom: 6px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 600;
}

.pf-map-summary {
  margin-bottom: 22px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.5;
}

.pf-map-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.pf-map-list button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.pf-map-list button:hover {
  border-color: var(--gold);
}

.pf-map-list button[aria-pressed="true"] {
  border-color: var(--wine);
  background: var(--wine);
  color: var(--white);
}

.pf-map-list small {
  min-width: 26px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgb(217 180 107 / 25%);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.pf-map-list button[aria-pressed="true"] small {
  background: rgb(255 255 255 / 18%);
}

.pf-map-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.pf-map-reset {
  margin-top: 14px;
  padding: 10px 16px;
  border: 1px solid var(--wine);
  background: transparent;
  color: var(--wine);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.pf-map-reset:hover {
  background: rgb(101 24 45 / 6%);
}

@media (max-width: 900px) {
  .pf-map {
    grid-template-columns: 1fr;
  }
}

/* ===== Portfolio lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 44px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(26 19 15 / 90%);
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(940px, 100%);
  margin: 0;
  border: 1px solid var(--gold);
  background: var(--ink);
  box-shadow: 0 40px 120px -30px rgb(0 0 0 / 55%);
  animation: lightbox-pop 240ms cubic-bezier(.2, .75, .25, 1);
}

@keyframes lightbox-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lightbox-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 720px);
  object-fit: contain;
  background: rgb(255 255 255 / 4%);
}

.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border-top: 1px solid rgb(201 165 95 / 30%);
  background: var(--ink);
  color: #f3ece4;
  font-size: 14px;
}

.lightbox-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-count {
  flex-shrink: 0;
  color: var(--gold);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: .08em;
}

.lightbox-nav,
.lightbox-close {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgb(201 165 95 / 55%);
  border-radius: 999px;
  background: rgb(26 19 15 / 82%);
  color: var(--gold);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  inset-inline-start: 18px;
}

.lightbox-next {
  inset-inline-end: 18px;
}

.lightbox-close {
  top: 18px;
  inset-inline-end: 18px;
}

.lightbox-nav svg,
.lightbox-close svg {
  width: 19px;
  height: 19px;
}

/* Base chevron points right; the reading direction picks the mirroring. */
.lightbox-prev svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .lightbox-prev svg {
  transform: scaleX(1);
}

html[dir="rtl"] .lightbox-next svg {
  transform: scaleX(-1);
}

body.lightbox-open {
  overflow: hidden;
}

/* ===== Quote modal — اطلب عرض السعر ===== */
.main-nav .quote-trigger {
  flex-shrink: 0;
  padding: 9px 17px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--wine-dark);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.main-nav .quote-trigger:hover,
.main-nav .quote-trigger:focus-visible {
  background: var(--gold);
  color: var(--white);
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 44px);
}

.quote-modal[hidden] {
  display: none;
}

.quote-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(26 19 15 / 72%);
}

.quote-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(680px, 100%);
  max-height: calc(100vh - 2 * clamp(14px, 4vw, 44px));
  overflow-y: auto;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: var(--paper);
  box-shadow: 0 40px 120px -30px rgb(0 0 0 / 45%);
  animation: lightbox-pop 240ms cubic-bezier(.2, .75, .25, 1);
}

.quote-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.quote-head-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.35;
}

.quote-lead {
  max-width: 54ch;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 2;
}

.quote-close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.quote-close:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--white);
}

.quote-close svg {
  width: 18px;
  height: 18px;
}

.quote-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.quote-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.quote-field > span {
  color: var(--wine-dark);
  font-size: 13px;
  font-weight: 600;
}

.quote-field input,
.quote-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
}

.quote-field input:focus-visible,
.quote-field textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.quote-field + .quote-field,
.quote-form > .quote-field {
  margin-bottom: 14px;
}

.quote-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 26px 18px;
  border: 1px dashed rgb(201 165 95 / 55%);
  background: rgb(201 165 95 / 6%);
  text-align: center;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.quote-dropzone:hover,
.quote-dropzone:focus-visible,
.quote-dropzone.is-active {
  border-color: var(--gold);
  background: rgb(201 165 95 / 14%);
}

.quote-drop-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--wine-dark);
  font-size: 15px;
}

.quote-dropzone strong {
  color: var(--ink);
  font-size: 13px;
}

.quote-dropzone > span:not(.quote-drop-icon) {
  color: var(--muted);
  font-size: 13px;
}

.quote-files {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.quote-files li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
}

.quote-files li span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-files li small {
  flex-shrink: 0;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
}

.quote-files li button {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--wine);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.quote-files li button:hover {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--white);
}

.quote-status {
  margin: 14px 0 0;
  padding: 12px 15px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.9;
}

.quote-status.is-info {
  border-color: rgb(201 165 95 / 55%);
  background: rgb(201 165 95 / 10%);
  color: var(--wine-dark);
}

.quote-status.is-success {
  border-color: rgb(93 120 88 / 55%);
  background: rgb(93 120 88 / 12%);
  color: #3c5738;
}

.quote-status.is-error {
  border-color: rgb(146 69 92 / 55%);
  background: rgb(146 69 92 / 10%);
  color: var(--wine-dark);
}

.quote-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.quote-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid transparent;
  background: var(--wine);
  color: var(--white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.quote-submit:hover:enabled {
  background: var(--wine-dark);
  transform: translateY(-2px);
}

.quote-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.quote-submit.is-busy {
  opacity: .75;
}

.quote-submit-arrow {
  font-family: inherit;
  font-size: 17px;
  line-height: 1;
}

.quote-fallback {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wine);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.quote-fallback[hidden] {
  display: none;
}

.quote-privacy {
  max-width: 52ch;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

body.quote-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .quote-fields {
    grid-template-columns: 1fr;
  }

  .quote-head {
    margin-bottom: 18px;
  }

  .quote-close {
    width: 38px;
    height: 38px;
  }

  .quote-panel {
    padding: 22px 18px 26px;
  }
}

@media (max-width: 640px) {
  .lightbox {
    padding: 12px;
  }

  .lightbox-nav,
  .lightbox-close {
    width: 38px;
    height: 38px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 58px;
    transform: none;
  }

  .lightbox-prev {
    inset-inline-start: 10px;
  }

  .lightbox-next {
    inset-inline-end: 10px;
  }

  .lightbox-close {
    top: 10px;
    inset-inline-end: 10px;
  }

  .lightbox-caption {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* Stage hero (home): a full-bleed night render with the copy set over its
   darker lower edge. The header sits transparent over it until scrolling. */
.brand .brand-on-dark {
  display: none;
}

.has-stage:not(.menu-open) .site-header:not(.is-scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.has-stage:not(.menu-open) .site-header:not(.is-scrolled) .brand img {
  display: none;
}

.has-stage:not(.menu-open) .site-header:not(.is-scrolled) .brand .brand-on-dark {
  display: block;
}

@media (min-width: 901px) {
  .has-stage .site-header:not(.is-scrolled) .main-nav a {
    color: rgb(248 243 236 / 80%);
  }

  .has-stage .site-header:not(.is-scrolled) .main-nav a:hover,
  .has-stage .site-header:not(.is-scrolled) .main-nav a.is-active {
    color: var(--white);
  }

  .has-stage .site-header:not(.is-scrolled) .main-nav a::after {
    background: var(--gold);
  }

  .has-stage .site-header:not(.is-scrolled) .main-nav .nav-contact {
    border-color: rgb(248 243 236 / 55%);
    color: var(--white);
  }

  .has-stage .site-header:not(.is-scrolled) .main-nav .nav-contact:hover {
    border-color: var(--wine);
  }

  .has-stage .site-header:not(.is-scrolled) .main-nav .quote-trigger {
    color: var(--gold-light);
  }
}

.has-stage:not(.menu-open) .site-header:not(.is-scrolled) .language-toggle {
  border-color: rgb(248 243 236 / 30%);
  color: var(--white);
}

.has-stage:not(.menu-open) .site-header:not(.is-scrolled) .menu-toggle {
  border-color: rgb(248 243 236 / 35%);
}

.has-stage:not(.menu-open) .site-header:not(.is-scrolled) .menu-toggle span {
  background: var(--white);
}

.stage {
  position: relative;
  min-height: max(620px, 100svh);
  margin-top: calc(var(--header-height) * -1);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0d0f17;
  color: var(--paper);
}

.stage-media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.stage-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 42% 50%;
  animation: hero-enter 1.6s cubic-bezier(.22, .75, .25, 1) both;
}

.stage-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgb(10 12 20 / 88%) 0%, rgb(10 12 20 / 52%) 34%, rgb(10 12 20 / 0%) 60%),
    linear-gradient(to left, rgb(10 12 20 / 42%) 0%, rgb(10 12 20 / 0%) 52%),
    linear-gradient(180deg, rgb(10 12 20 / 48%) 0%, rgb(10 12 20 / 0%) 18%);
  pointer-events: none;
}

html[dir="ltr"] .stage-media::after {
  background:
    linear-gradient(0deg, rgb(10 12 20 / 88%) 0%, rgb(10 12 20 / 52%) 34%, rgb(10 12 20 / 0%) 60%),
    linear-gradient(to right, rgb(10 12 20 / 42%) 0%, rgb(10 12 20 / 0%) 52%),
    linear-gradient(180deg, rgb(10 12 20 / 48%) 0%, rgb(10 12 20 / 0%) 18%);
}

.stage-caption {
  position: absolute;
  z-index: 2;
  bottom: 118px;
  inset-inline-end: max(40px, calc((100vw - var(--shell)) / 2));
  color: rgb(248 243 236 / 60%);
  font-size: 13px;
}

.stage-inner {
  position: relative;
  z-index: 2;
  padding-block: calc(var(--header-height) + 40px) 76px;
}

.stage-copy {
  max-width: 700px;
}

.stage .eyebrow {
  color: var(--gold);
}

.stage h1 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: clamp(40px, 4.2vw, 60px);
  font-weight: 600;
  line-height: 1.25;
}

.stage h1 em {
  color: var(--gold-light);
  font-weight: 500;
}

.stage-lead {
  max-width: 500px;
  margin-bottom: 32px;
  color: rgb(248 243 236 / 78%);
  font-size: 16px;
  line-height: 2;
}

.stage-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.stage-actions .button-primary {
  border-color: rgb(217 180 107 / 45%);
}

.stage-actions .text-link {
  color: var(--white);
  font-size: 14px;
}

.stage-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 40px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgb(248 243 236 / 16%);
  list-style: none;
  color: rgb(248 243 236 / 72%);
  font-size: 13px;
}

.stage-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-points li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .stage {
    min-height: max(600px, 100svh);
  }

  .stage-media img {
    object-position: 46% 50%;
  }

  .stage-media::after,
  html[dir="ltr"] .stage-media::after {
    background:
      linear-gradient(0deg, rgb(10 12 20 / 92%) 0%, rgb(10 12 20 / 62%) 42%, rgb(10 12 20 / 0%) 70%),
      linear-gradient(180deg, rgb(10 12 20 / 50%) 0%, rgb(10 12 20 / 0%) 20%);
  }

  .stage-inner {
    padding-bottom: 48px;
  }

  .stage h1 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .stage-lead {
    margin-bottom: 26px;
    font-size: 14px;
  }

  .stage-actions {
    gap: 20px;
  }

  .stage-points {
    margin-top: 28px;
    padding-top: 18px;
    font-size: 12.5px;
  }

  .stage-caption {
    display: none;
  }
}

/* ===== Hidden-by-config elements (site.js: CHANNELS_ON_SITE, QUOTE_FORM_ENABLED) ===== */
.social-links[hidden],
.contact-status[hidden],
[data-contact-link][hidden],
.main-nav .quote-trigger[hidden] {
  display: none !important;
}

/* Bilingual generated text (product catalogue + product pages) */
html[data-language="en"] .lang-ar,
html:not([data-language="en"]) .lang-en {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.product-code {
  font-family: "IBM Plex Sans Arabic", Arial, sans-serif;
  direction: ltr;
  unicode-bidi: isolate;
  letter-spacing: .04em;
}

/* ===== Product catalogue — products.html#catalogue ===== */
.pc-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.pc-toolbar {
  position: sticky;
  z-index: 20;
  top: var(--header-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
  align-items: center;
  gap: 18px;
  margin: 0 0 8px;
  padding: 14px 0;
  background: rgb(255 253 248 / 96%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.pc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.pc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.pc-chip small {
  color: var(--muted);
  font-size: 11px;
}

.pc-chip:hover {
  border-color: var(--gold);
}

.pc-chip[aria-pressed="true"] {
  border-color: var(--wine);
  background: var(--wine);
  color: var(--white);
}

.pc-chip[aria-pressed="true"] small {
  color: var(--gold-light);
}

.pc-search input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #cdbfae;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: start;
}

html[dir="rtl"] .pc-search input:placeholder-shown {
  direction: rtl;
}

.pc-search input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.pc-count {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 13px;
}

.pc-group + .pc-group {
  margin-top: 54px;
}

.pc-group[hidden],
.pc-card[hidden] {
  display: none !important;
}

.pc-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.pc-group-head h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
}

.pc-group-head h3 small {
  margin-inline-start: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.pc-group-head > span {
  flex: 0 0 auto;
  color: var(--wine);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
}

.pc-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pc-card a {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.pc-card a:hover,
.pc-card a:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 36px -22px rgb(36 31 33 / 30%);
}

.pc-card figure {
  aspect-ratio: 7 / 9;
  margin: 0;
  overflow: hidden;
  background: #bdb3a6;
}

.pc-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pc-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  padding: 11px 12px 13px;
}

.pc-card .product-code {
  color: var(--wine);
  font-size: 13px;
  font-weight: 700;
  text-align: start;
}

.pc-card-name {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}

.pc-empty {
  margin: 10px 0 0;
  padding: 22px;
  border: 1px dashed #cdbfae;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.pc-empty[hidden] {
  display: none;
}

.pc-section .pj-types-note {
  margin-top: 46px;
}

@media (max-width: 1100px) {
  .pc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .pc-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pc-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .pc-chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .pc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pc-group-head {
    flex-direction: column;
    gap: 2px;
  }

  .pc-group-head h3 {
    font-size: 20px;
  }
}

/* ===== Product page — p/<CODE>/ ===== */
.pp-crumbs {
  padding-block: 22px 0;
}

.pp-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.pp-crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pp-crumbs li + li::before {
  content: "‹";
  color: var(--gold);
}

html[dir="ltr"] .pp-crumbs li + li::before {
  content: "›";
}

.pp-crumbs a:hover {
  color: var(--wine);
}

.pp-crumbs [aria-current] {
  color: var(--ink);
  font-weight: 600;
}

.pp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 90px);
  padding-block: 28px 80px;
}

.pp-visual {
  margin: 0;
  border: 1px solid var(--line);
  background: #bdb3a6;
  box-shadow: 0 30px 70px -40px rgb(36 31 33 / 45%);
}

.pp-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 9;
  display: block;
  object-fit: cover;
}

.pp-code-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.pp-code {
  display: inline-block;
  margin: 0 0 22px;
  padding: 8px 16px 8px 14px;
  border-inline-start: 4px solid var(--gold);
  background: var(--wine);
  color: var(--white);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.25;
}

.pp-family {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 14px;
  color: var(--wine);
  font-size: 14px;
  font-weight: 600;
}

.pp-family a:hover {
  text-decoration: underline;
}

.pp-family .pp-family-en {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pp-copy h1 {
  margin-bottom: 12px;
  font-size: clamp(32px, 3.6vw, 48px);
}

.pp-subtitle {
  max-width: 560px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}

.pp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.pp-tags li {
  padding: 5px 11px;
  border: 1px solid #d3c2ac;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  direction: ltr;
}

.pp-note {
  max-width: 560px;
  margin: 0 0 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.pp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.pp-actions .contact-button {
  min-width: min(100%, 340px);
}

.pp-related {
  padding-block: 70px 90px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.pp-related-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px 30px;
  margin-bottom: 26px;
}

.pp-related-head h2 {
  font-size: clamp(26px, 2.6vw, 34px);
}

.pp-related .pc-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .pp-related .pc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .pp-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 56px;
  }

  .pp-visual {
    width: min(100%, 520px);
    justify-self: center;
  }

  .pp-related .pc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pp-related .pc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pp-actions .contact-button {
    width: 100%;
  }
}

/* 404 */
.nf-section {
  min-height: calc(70svh - var(--header-height));
  display: grid;
  align-content: center;
  padding-block: 70px;
}

.nf-section p {
  max-width: 560px;
  color: var(--muted);
}

/* English product names are longer than the Arabic titles. */
html[data-language="en"] .pp-copy h1 {
  font-size: clamp(28px, 2.7vw, 38px);
  line-height: 1.3;
  letter-spacing: 0;
}
