/* dmbtgroup.com: DMBT industrial engineering site. The page opens on a screen with the DMBT logo alone in
   the middle; scrolling down moves the logo into the header corner, and scrolling back to the top brings it
   back to the middle (see assets/site.js). On the first visit of a browser session the page scrolls down by
   itself after the logo appears. Colours follow the logo: orange #f5821f and charcoal #474747 on warm paper. */
:root {
  --orange: #f5821f;
  --orange-dk: #d96a0b;
  --charcoal: #474747;
  --ink: #23272a;
  --muted: #6b6f73;
  --paper: #f6f3ef;
  --white: #ffffff;
  --line: rgba(71, 71, 71, 0.14);
  --dark: #26292c;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; line-height: 1.55; }
html.play-intro body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Logo stage: the first screen, with the logo alone in the middle ---------- */
/* --p runs from 0 (page at the top, logo in the middle) to 1 (logo in the header corner); set by site.js. */
:root { --p: 1; --logo-w: min(78vw, 620px, 120vh); }
.stage { display: none; position: relative; height: calc(100vh - 72px); height: calc(100svh - 72px); min-height: 360px; overflow: hidden; }
html.js .stage { display: block; }
.stage::before { content: ""; position: absolute; inset: 0; opacity: calc(0.75 - var(--p) * 0.5);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 120px; background-position: center;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
}
.stage-line {
  position: absolute; left: 50%; top: calc(50% + var(--logo-w) * 0.215); height: 3px; width: calc(var(--logo-w) * 0.34);
  transform: translateX(-50%); border-radius: 9px; opacity: calc(1 - var(--p) * 2.5);
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}
html.play-intro .stage-line { animation: stage-line 1s 0.7s cubic-bezier(0.65, 0, 0.35, 1) both; }
.stage-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column;
  align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; color: var(--muted);
  font: 600 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; opacity: calc(1 - var(--p) * 3); }
.stage-cue::after { content: "↓"; font-size: 16px; color: var(--orange); animation: cue 1.8s ease-in-out infinite; }
html.play-intro .stage-cue { visibility: hidden; }
@keyframes cue { 50% { transform: translateY(5px); } }
.stage-skip { display: none; position: absolute; bottom: 24px; right: 24px; font: 600 12px var(--mono); letter-spacing: 0.08em;
  color: var(--muted); background: none; border: 0; cursor: pointer; text-transform: uppercase; }
html.play-intro .stage-skip { display: block; }
[dir="rtl"] .stage-skip { right: auto; left: 24px; }
/* The one logo that travels between the middle of the first screen and the header. */
.float-logo { display: none; position: fixed; left: 0; top: 0; z-index: 60; width: var(--logo-w); height: auto; max-width: none;
  transform-origin: 0 0; pointer-events: none; will-change: transform; }
html.js .float-logo { display: block; }
html.play-intro .float-logo { animation: logo-reveal 1.3s var(--ease) both; }
@keyframes logo-reveal { from { opacity: 0; filter: blur(14px); } to { opacity: 1; filter: blur(0); } }
@keyframes stage-line { from { transform: translateX(-50%) scaleX(0); } to { transform: translateX(-50%) scaleX(1); } }

/* ---------- Page reveal as the first-visit intro scrolls down ---------- */
html.play-intro .reveal { opacity: 0; transform: translateY(18px); }
html.ready .reveal { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
/* Sections further down fade in as they scroll into view. */
html.js .inview { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.js .inview.seen { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 239, calc(0.86 * var(--p)));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(71, 71, 71, calc(0.14 * var(--p)));
}
.header-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: block; flex: none; }
.brand img { display: block; height: 36px; width: auto; }
html.js:not(.subpage) .brand img { visibility: hidden; } /* on the home page the travelling logo is drawn over this spot */
.nav a[aria-current="page"]::after { transform: scaleX(1); }
html.play-intro:not(.ready) .nav, html.play-intro:not(.ready) .lang, html.play-intro:not(.ready) .menu-toggle { opacity: 0; }
.nav, .lang, .menu-toggle { transition: opacity 0.6s ease 0.15s; }
.nav { display: flex; align-items: center; gap: 26px; margin-inline-start: auto; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--charcoal); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--orange);
  transform: scaleX(0); transition: transform 0.25s; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.lang { display: flex; gap: 2px; font: 600 12px var(--mono); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.lang button { font: inherit; border: 0; background: none; color: var(--muted); padding: 5px 8px; border-radius: 6px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--charcoal); color: #fff; }
.menu-toggle { display: none; margin-inline-start: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 10px; font-weight: 650; font-size: 15px;
  border: 1.5px solid transparent; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dk); }
.btn-ghost { border-color: rgba(71, 71, 71, 0.35); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.arrow { transition: transform 0.2s; }
.btn:hover .arrow, .product:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(71,71,71,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71,71,71,0.07) 1px, transparent 1px),
    linear-gradient(rgba(71,71,71,0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71,71,71,0.11) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  mask-image: linear-gradient(180deg, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px var(--mono); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--charcoal); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); line-height: 1.04; letter-spacing: -0.035em; margin: 18px 0 20px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--orange); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.drawing { position: relative; background: rgba(255,255,255,0.7); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; box-shadow: 0 30px 60px -30px rgba(35,39,42,0.25); }
.drawing svg { display: block; width: 100%; height: auto; }
.drawing-meta { display: flex; justify-content: space-between; font: 600 11px var(--mono); letter-spacing: 0.1em; color: var(--muted);
  border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; text-transform: uppercase; }
.flow { stroke-dasharray: 6 8; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.pulse { animation: pulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 50% { opacity: 0.35; } }
.gauge { stroke-dasharray: 170 260; animation: gauge 3s var(--ease) 2.8s both; }
@keyframes gauge { from { stroke-dasharray: 0 260; } }

/* ---------- DMBT pillars ---------- */
.pillars { border-block: 1px solid var(--line); background: #fff; }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar { padding: 34px 28px; border-inline-start: 1px solid var(--line); }
.pillar:first-child { border-inline-start: 0; }
.pillar-letter { font-size: 44px; font-weight: 800; line-height: 1; color: var(--charcoal); letter-spacing: -0.04em; }
.pillar:nth-child(2) .pillar-letter { color: var(--orange); }
.pillar h3 { margin: 14px 0 6px; font-size: 17px; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
section[id] { scroll-margin-top: 72px; } /* keep the sticky header from covering a section opened by a link */
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.12; letter-spacing: -0.03em; margin: 14px 0 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px 32px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--orange); transform: scaleX(0);
  transform-origin: left; transition: transform 0.35s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -24px rgba(35,39,42,0.35); }
.card:hover::before { transform: scaleX(1); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(245,130,31,0.1); color: var(--orange-dk); }
.icon svg { width: 24px; height: 24px; }
.num { font: 600 12px var(--mono); color: var(--muted); letter-spacing: 0.1em; }
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Approach (dark) ---------- */
.dark { background: var(--dark); color: #eceae7; position: relative; overflow: hidden; }
.dark::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 48px 48px; }
.dark .eyebrow { color: #c9c6c2; }
.dark .section-head, .steps { position: relative; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(245,130,31,0.7) 0 8px, transparent 8px 16px); }
.step { position: relative; }
.step-node { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--dark);
  border: 2px solid var(--orange); font: 700 14px var(--mono); color: var(--orange); position: relative; }
.step h3 { margin: 22px 0 8px; font-size: 19px; color: #fff; }
.step p { margin: 0; color: #a9a7a4; font-size: 15.5px; }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.industry { border-top: 2px solid var(--charcoal); padding-top: 22px; }
.industry .icon { background: none; color: var(--charcoal); width: auto; height: auto; place-items: start; margin-bottom: 16px; }
.industry .icon svg { width: 34px; height: 34px; }
.industry h3 { margin: 0 0 6px; font-size: 18px; }
.industry p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Products ---------- */
.products-bg { background: #fff; border-block: 1px solid var(--line); }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product { display: flex; flex-direction: column; gap: 10px; padding: 30px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--paper); transition: border-color 0.25s, box-shadow 0.25s; }
.product:hover { border-color: var(--orange); box-shadow: 0 18px 36px -24px rgba(245,130,31,0.6); }
.product-name { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--orange); }
.product-logo { display: block; align-self: flex-start; height: 56px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 8px; }
.product p { margin: 0; color: var(--muted); }
.product .product-line { color: var(--ink); font-weight: 600; }
.product .product-for { font-size: 14px; }
.product-feats { list-style: none; padding: 14px 0 0; margin: 4px 0 6px; border-top: 1px solid var(--line); display: grid; gap: 9px; flex: 1; }
.product-feats li { position: relative; padding-inline-start: 22px; font-size: 14.5px; line-height: 1.45; }
.product-feats li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 5px; width: 10px; height: 6px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.product-go { display: block; font-weight: 650; color: var(--orange-dk); margin-top: 6px; }
.product .arrow { color: var(--orange); }
.product small { display: block; font: 600 11.5px var(--mono); letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }

/* ---------- Experts ---------- */
.experts-bg { background: #fff; border-block: 1px solid var(--line); }
.experts { display: grid; gap: 24px; }
.expert { display: grid; grid-template-columns: 290px 1fr; gap: 52px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 20px; padding: 44px; }
/* Expert photo: square, shown as a circle; without a photo, a <div class="avatar"> with initials works too. */
.avatar { display: grid; place-items: center; width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
  background: var(--charcoal); color: #fff; font-size: 40px; font-weight: 800; letter-spacing: -0.02em;
  border: 4px solid var(--paper); box-shadow: 0 0 0 2px var(--orange), 0 14px 30px -14px rgba(35, 39, 42, 0.45); }
.expert-name { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; margin: 22px 0 6px; }
.expert-role { margin: 0; color: var(--orange-dk); font-weight: 650; }
.expert-org { margin: 4px 0 22px; color: var(--muted); font-size: 15px; }
.expert-links { display: flex; flex-wrap: wrap; gap: 8px; }
.expert-bio { margin: 0 0 28px; font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 34px; border-block: 1px solid var(--line); }
.facts div { padding: 18px 18px; border-inline-start: 1px solid var(--line); }
.facts div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.facts dt { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--orange); }
.facts dd { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
.expert h4 { margin: 0 0 14px; font: 600 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.edu { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.edu li { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.edu li:last-child { border-bottom: 0; padding-bottom: 0; }
.edu strong { font-size: 15.5px; }
.edu .yr { font: 600 13px var(--mono); color: var(--muted); }
.edu span:not(.yr) { grid-column: 1 / -1; color: var(--muted); font-size: 14.5px; }
@media (max-width: 960px) {
  .expert { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) { .expert { padding: 24px; } }
/* Full CV: sections flow in two columns on wide screens. */
.cv { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 36px; columns: 2; column-gap: 56px; }
.cv-sec { break-inside: avoid; margin-bottom: 36px; }
.cv-sec.cv-chips { column-span: all; }
.cv h4 { padding-bottom: 10px; border-bottom: 2px solid var(--orange); display: inline-block; margin-bottom: 16px; }
.cv h5 { margin: 4px 0 10px; font-size: 15px; }
.cv-intro { margin: -4px 0 12px; color: var(--muted); font-size: 14.5px; }
.cv-tl, .cv-list { list-style: none; padding: 0; margin: 0; }
.cv-tl li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cv-tl li:last-child { border-bottom: 0; }
.cv-tl strong { display: block; font-size: 15px; }
.cv-tl span:not(.yr) { display: block; color: var(--muted); font-size: 14px; }
.cv-tl .yr { flex: none; font: 600 12.5px var(--mono); color: var(--muted); padding-top: 2px; white-space: nowrap; }
.cv-books strong { font-style: italic; }
.cv-list li { position: relative; padding: 8px 0; padding-inline-start: 18px; font-size: 15px; }
.cv-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 17px; width: 7px; height: 7px; border-radius: 2px; background: var(--orange); }
.cv .chips { margin-bottom: 20px; }
.cv-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
@media (max-width: 960px) { .cv { columns: 1; padding-top: 28px; } }

[dir="rtl"] .expert h4 { letter-spacing: 0; font-family: var(--sans); font-size: 14px; }
[dir="rtl"] .cv-books strong { font-style: normal; }

/* ---------- Experts page ---------- */
.page-hero { position: relative; overflow: hidden; padding: 80px 0 24px; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(71,71,71,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(71,71,71,0.07) 1px, transparent 1px);
  background-size: 24px 24px; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: -0.035em; margin: 16px 0 16px; }
.experts-list { padding-top: 40px; }
.expert-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 24px; }
.expert-card { display: flex; flex-direction: column; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px;
  transition: box-shadow 0.25s, transform 0.25s; }
.expert-card:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -26px rgba(35, 39, 42, 0.4); }
.expert-card-top { display: flex; gap: 18px; align-items: center; }
.expert-card .avatar { width: 92px; height: 92px; flex: none; border-color: #fff; }
.expert-card .expert-name { font-size: 20px; margin: 0 0 4px; }
.expert-card .expert-org { margin: 2px 0 0; font-size: 14px; }
.expert-card .chips { margin: 0; }
.expert-card .btn { align-self: flex-start; margin-top: auto; }
.facts-sm { grid-template-columns: repeat(3, 1fr); margin: 0; }
.facts-sm div { padding: 14px 12px; }
.facts-sm dt { font-size: 24px; }
.facts-sm dd { font-size: 13px; }
/* Cards line up with each other: the photo, name, title, place, figures, expertise and button of every card in
   a row sit on shared grid rows, so each line starts at the same height in all cards. */
@supports (grid-template-rows: subgrid) {
  .expert-cards { row-gap: 24px; }
  .expert-card { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; }
  .expert-card-top, .expert-card-top > div { display: contents; }
  .expert-card .avatar { margin-bottom: 20px; }
  .expert-card .expert-name { margin: 0 0 6px; }
  .expert-card .expert-role { margin: 0 0 4px; }
  .expert-card .expert-org { margin: 0 0 22px; }
  .expert-card .facts-sm { margin: 0 0 22px; align-self: start; }
  .expert-card .chips { margin: 0 0 26px; align-self: start; align-content: flex-start; }
  .expert-card .btn { margin-top: 0; align-self: end; justify-self: start; }
}
@media (max-width: 960px) {
  .facts-sm { grid-template-columns: repeat(3, 1fr); }
  .facts-sm div:nth-child(3) { border-inline-start: 1px solid var(--line); padding-inline-start: 12px; }
  .facts-sm div:nth-child(n+3) { border-top: 0; }
}

/* ---------- Expert overlay: full profile and CV over the page, with a back button ---------- */
.sheet { display: none; position: fixed; inset: 0; z-index: 90; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); }
.sheet.open { display: block; animation: sheet-in 0.45s var(--ease); }
html:not(.js) .sheet:target { display: block; }
html.sheet-open body { overflow: hidden; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(28px); } }
.sheet-bar { position: sticky; top: 0; z-index: 2; background: rgba(246, 243, 239, 0.92); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sheet-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.sheet-bar img { height: 30px; width: auto; }
.sheet-back { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 10px; background: #fff;
  border: 1.5px solid rgba(71, 71, 71, 0.3); font-weight: 650; font-size: 15px; transition: border-color 0.2s; }
.sheet-back:hover { border-color: var(--ink); }
.sheet-back .arrow { color: var(--orange); transition: transform 0.2s; }
.sheet-back:hover .arrow { transform: translateX(-3px); }
[dir="rtl"] .sheet-back:hover .arrow { transform: scaleX(-1) translateX(-3px); }
.sheet-body { padding: 36px 0 80px; }
.sheet .expert { background: #fff; }
@media (max-width: 760px) { .sheet-body { padding: 20px 0 56px; } .sheet-bar img { height: 24px; } }

/* ---------- Contact ---------- */
.contact { background: var(--orange); color: #fff; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.contact-in { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 56px; padding: 84px 0; }
.contact-lines { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.contact-lines li { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.contact-lines span { font: 600 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.contact-lines a { font-size: 22px; font-weight: 700; color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.45); text-underline-offset: 5px; }
.contact-lines a:hover { text-decoration-color: #fff; }
.contact-form { background: #fff; color: var(--ink); border-radius: 18px; padding: 30px; display: grid; gap: 14px;
  box-shadow: 0 30px 60px -30px rgba(35, 39, 42, 0.5); }
.contact-form h3 { margin: 0 0 4px; font-size: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--charcoal); }
.contact-form input, .contact-form textarea { font: inherit; font-weight: 400; font-size: 15px; color: var(--ink); background: var(--paper);
  border: 1px solid rgba(71, 71, 71, 0.22); border-radius: 10px; padding: 11px 12px; width: 100%; }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; background: #fff; }
.contact-form .btn { justify-self: start; }
.contact .form-note { margin: 0; font-size: 13px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-weight: 650; color: var(--orange-dk);
  border-bottom: 2px solid rgba(245, 130, 31, 0.35); padding-bottom: 3px; }
.text-link:hover { border-color: var(--orange); }
.text-link:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .text-link:hover .arrow { transform: scaleX(-1) translateX(3px); }
.contact h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 12px; }
.contact p { margin: 0; max-width: 34em; color: rgba(255,255,255,0.9); font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 36px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand img { height: 32px; width: auto; display: block; }
.site-footer h4 { margin: 0 0 12px; font: 600 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--charcoal); }
.site-footer a:hover { color: var(--orange-dk); }
.footer-contact li { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-contact span { min-width: 64px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; }
.footer-tag { font: 600 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .pillars-grid, .industries { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { border-inline-start: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .steps::before { display: none; }
  .products { grid-template-columns: 1fr; }
  .contact-in { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .header-in { gap: 12px; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .lang { margin-inline-start: auto; }
  .menu-toggle { margin-inline-start: 0; }
  .brand img { height: 30px; }
  .hero { padding: 44px 0 64px; }
  .section { padding: 72px 0; }
  .cards, .pillars-grid, .industries, .steps { grid-template-columns: 1fr; }
  .pillar { border-inline-start: 0; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: 0; }
  .product { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html .reveal, html.js .inview { opacity: 1; transform: none; }
}

/* ---------- Right-to-left (Arabic) ---------- */
[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow, [dir="rtl"] .product:hover .arrow { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .card::before { transform-origin: right; }
[dir="rtl"] .hero h1, [dir="rtl"] .section-head h2, [dir="rtl"] .contact h2 { letter-spacing: 0; line-height: 1.25; }
[dir="rtl"] .eyebrow, [dir="rtl"] .footer-tag, [dir="rtl"] .site-footer h4, [dir="rtl"] .contact-lines span, [dir="rtl"] .stage-skip, [dir="rtl"] .stage-cue { letter-spacing: 0; font-family: var(--sans); font-size: 14px; }
.drawing svg { direction: ltr; }
