/* PorsTech Atlas — Dubai · stijlblad
   Gewone CSS, geen frameworks. Eigen lettertype (Inter, SIL OFL 1.1) vanaf dezelfde server.
   Thema via data-theme="day|night" op <html>. Echte foto als achtergrond, met een
   zachte leeslaag (scrim) aan de tekstkant en heldere glaspanelen voor de inhoud. */

@font-face { font-family: "Inter Atlas"; src: url("fonts/inter-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Atlas"; src: url("fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Atlas"; src: url("fonts/inter-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #0e2230;
  --muted: #3a4f5c;
  --gold: #774d00;
  --gold-soft: #c99a3d;
  --cyan: #0a5b69;
  --surface: rgba(255, 255, 255, .84);
  --surface-2: rgba(255, 255, 255, .62);
  --hairline: rgba(14, 34, 48, .11);
  --hairline-2: rgba(14, 34, 48, .18);
  --scrim: 250, 247, 241;
  --scrim-a: .9;
  --header: rgba(252, 250, 246, .82);
  --shadow: 0 1px 2px rgba(14, 34, 48, .06), 0 18px 48px -18px rgba(14, 34, 48, .32);
  --btn-1: #f1c467;
  --btn-2: #dea23a;
  --btn-ink: #23180a;
  --focus: #0a5b69;
  --world-bg: #e9e4da;
  --radius: 20px;
  --wrap: 1180px;
  --text-col: 640px;
  --font: "Inter Atlas", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "Segoe UI", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, "Geeza Pro", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

:root[data-theme="night"] {
  color-scheme: dark;
  --ink: #f2f6f7;
  --muted: #c3d1d6;
  --gold: #f3c66d;
  --gold-soft: #e0ad4f;
  --cyan: #86dde6;
  --surface: rgba(7, 20, 31, .76);
  --surface-2: rgba(7, 20, 31, .5);
  --hairline: rgba(255, 255, 255, .10);
  --hairline-2: rgba(255, 255, 255, .18);
  --scrim: 4, 14, 23;
  --scrim-a: .84;
  --header: rgba(5, 16, 26, .78);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 22px 56px -20px rgba(0, 0, 0, .6);
  --btn-1: #f3c66d;
  --btn-2: #dc9f36;
  --btn-ink: #1a1205;
  --focus: #86dde6;
  --world-bg: #06121c;
}

/* ---------- basis ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--world-bg);
  font: 400 17px/1.65 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body { font-family: var(--font-ar); font-size: 18px; line-height: 1.85; }
html[lang="ar"] bdi[dir="ltr"], html[lang="ar"] code { font-family: var(--font); }

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  width: auto; height: auto; clip: auto; clip-path: none; z-index: 50;
  inset-inline-start: 16px; top: 12px; padding: 10px 14px;
  background: var(--surface); color: var(--ink); border-radius: 10px; box-shadow: var(--shadow);
}

/* ---------- achtergrond: foto + meetlijnen + leeslaag ---------- */
.world { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--world-bg); overflow: hidden; }
.world img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; }
/* leeslaag: sterk aan de tekstkant, loopt zacht uit naar de foto */
.world::after {
  content: ""; position: absolute; inset: 0;
  --start: max(0px, (100vw - var(--wrap)) / 2);
  background:
    linear-gradient(90deg,
      rgba(var(--scrim), var(--scrim-a)) 0,
      rgba(var(--scrim), var(--scrim-a)) calc(var(--start) + var(--text-col) + 56px),
      rgba(var(--scrim), calc(var(--scrim-a) * .35)) calc(var(--start) + var(--text-col) + 300px),
      rgba(var(--scrim), 0) calc(var(--start) + var(--text-col) + 560px));
}
html[dir="rtl"] .world::after {
  background:
    linear-gradient(270deg,
      rgba(var(--scrim), var(--scrim-a)) 0,
      rgba(var(--scrim), var(--scrim-a)) calc(var(--start) + var(--text-col) + 56px),
      rgba(var(--scrim), calc(var(--scrim-a) * .35)) calc(var(--start) + var(--text-col) + 300px),
      rgba(var(--scrim), 0) calc(var(--start) + var(--text-col) + 560px));
}
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ---------- kopbalk ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header);
  border-bottom: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.brand { color: var(--ink); text-decoration: none; line-height: 1.15; display: inline-block; }
.brand-name { display: block; font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
.brand-name strong { color: var(--gold); font-weight: 700; }
.brand-place { display: block; font-size: .75rem; color: var(--muted); margin-top: 3px; letter-spacing: .01em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.site-nav a {
  display: inline-block; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .93rem;
  padding: 7px 12px; border-radius: 999px;
}
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline-2); font-weight: 600; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--hairline-2); background: var(--surface-2);
  color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 600;
}
.pill:hover { background: var(--surface); }

/* ---------- typografie ---------- */
h1, h2, h3 { margin: 0 0 16px; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.04; letter-spacing: -.035em; }
h1 .place { display: block; color: var(--gold); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.15; letter-spacing: -.025em; }
h3, h2.h3 { font-size: 1.14rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; margin-bottom: 8px; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.eyebrow {
  display: block; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 14px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .92rem; }
.lead { font-size: clamp(1.12rem, 1.7vw, 1.32rem); line-height: 1.55; color: var(--ink); max-width: 36em; }
.muted { color: var(--muted); }
.fine { font-size: .84rem; line-height: 1.6; color: var(--muted); }
bdi, code { unicode-bidi: isolate; }
code { font-family: var(--mono); font-size: .86em; direction: ltr; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline); }
.nw, html[dir="rtl"] bdi { white-space: nowrap; }
h1 bdi { white-space: normal; }

/* statuslabel */
.status {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  padding: 5px 12px 5px 10px; border-radius: 999px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline-2);
  color: var(--ink); font-weight: 600; font-size: .8rem;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(224, 173, 79, .25); }
.status + .eyebrow { margin-top: -4px; }

/* ---------- secties en panelen ---------- */
main { padding-bottom: 32px; }
.section { padding: clamp(28px, 5vw, 56px) 0; }
.film {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  padding: clamp(22px, 3.6vw, 40px);
}
.copy { max-width: 780px; width: 100%; }
.end { display: flex; justify-content: flex-end; }
.end > * { min-width: 0; }

/* hero: geen paneel; tekst staat op de leeslaag naast de foto */
.hero { min-height: calc(100svh - 68px); max-height: 980px; display: flex; align-items: center; padding: clamp(48px, 8vw, 96px) 0; }
.hero .wrap { width: 100%; min-width: 0; }
.hero .film { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; max-width: var(--text-col); }
.hero .lead { margin-top: 6px; }
.hero p:not(.lead):not(.status):not(.eyebrow) { color: var(--muted); max-width: 34em; }
.page-about .hero, .page-contact .hero, .page-investors .hero { min-height: 0; padding-bottom: clamp(16px, 3vw, 32px); }

/* kaarten */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 20px; }
.grid > .film { padding: clamp(22px, 2.6vw, 30px); }
.team .film h2 { margin-bottom: 4px; }
.role { color: var(--gold); font-weight: 600; font-size: .9rem; margin-bottom: 12px; }

.steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 74px; }
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; top: 24px; inset-inline-start: clamp(22px, 2.6vw, 30px);
  font-size: .82rem; font-weight: 700; letter-spacing: .06em; color: var(--gold);
  padding: 4px 10px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline-2);
}
.steps li.film { padding: 74px clamp(22px, 2.6vw, 30px) clamp(22px, 2.6vw, 30px); }

.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline-2); }
.after { margin-top: 18px; }

.checklist { margin: 16px 0 0; }
.checklist div { display: grid; grid-template-columns: minmax(130px, .45fr) minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--hairline); }
.checklist dt { font-weight: 600; color: var(--gold); }
.checklist dd { margin: 0; color: var(--muted); }

.table-wrap { overflow-x: auto; margin-top: 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--hairline-2); }
table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: .95rem; }
th, td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; background: var(--surface-2); }
html[lang="ar"] th { letter-spacing: 0; text-transform: none; font-size: .9rem; }

.statement { font-size: clamp(1.12rem, 2vw, 1.38rem); line-height: 1.55; font-weight: 500; border-inline-start: 3px solid var(--gold-soft); padding-inline-start: 20px; margin: 4px 0 0; }

/* vragenlijst */
.questions { list-style: none; counter-reset: q; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.questions li { counter-increment: q; position: relative; padding: 14px 0 14px 48px; border-bottom: 1px solid var(--hairline); color: var(--muted); }
html[dir="rtl"] .questions li { padding: 14px 48px 14px 0; }
.questions li::before { content: counter(q, decimal-leading-zero); position: absolute; inset-inline-start: 0; top: 14px; font-weight: 700; font-size: .85rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.questions strong { color: var(--ink); font-weight: 600; }

/* ---------- knoppen ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.gg-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  min-height: 48px; max-width: 100%; padding: 12px 22px; border-radius: 12px;
  border: 1px solid rgba(120, 80, 10, .35);
  background: linear-gradient(180deg, var(--btn-1), var(--btn-2));
  color: var(--btn-ink); font-weight: 600; font-size: .95rem; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 8px 22px -8px rgba(150, 100, 15, .55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.gg-button:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 12px 26px -8px rgba(150, 100, 15, .6); text-decoration: none; }
.gg-button.secondary {
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--hairline-2); box-shadow: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.gg-button.secondary:hover { background: var(--surface); box-shadow: none; }
.gg-button bdi { font-weight: 500; opacity: .85; }
.actions.film { display: flex; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }

/* ---------- voettekst ---------- */
.site-footer { padding: 8px 0 32px; }
.footer-inner {
  display: grid; gap: 18px 40px; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  box-shadow: var(--shadow); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  padding: clamp(20px, 3vw, 32px);
}
.footer-inner p { margin: 0 0 8px; max-width: 70ch; }
.footer-brand { font-size: .95rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-soft); }
.footer-links { font-size: .86rem; margin-top: 4px; }
.shared-brand { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .78rem; }
.shared-brand img { display: block; width: 220px; max-width: 100%; height: auto; padding: 12px 14px; border-radius: 12px; box-sizing: content-box; background: rgba(8, 24, 36, .92); }

/* ---------- smalle schermen ---------- */
@media (max-width: 900px) {
  /* tekst loopt over de hele breedte: leeslaag overal gelijk */
  .world::after, html[dir="rtl"] .world::after { background: rgba(var(--scrim), var(--scrim-a)); }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 0; }
  body { font-size: 16px; }
  html[lang="ar"] body { font-size: 17px; }
  .site-header { position: relative; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .header-inner { gap: 8px 12px; }
  .site-nav a { padding: 6px 10px; font-size: .9rem; }
  .hero { min-height: 0; padding: 40px 0 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .checklist div { grid-template-columns: 1fr; }
  .world img { object-position: 30% 60%; }
  html[dir="rtl"] .world img { object-position: 70% 60%; }
  .table-wrap { overflow: visible; box-shadow: none; border-radius: 0; }
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
  tbody tr:last-child { border-bottom: 0; }
  td { border: 0; padding: 2px 0; }
  td::before { content: attr(data-label); display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
  html[lang="ar"] td::before { letter-spacing: 0; text-transform: none; font-size: .85rem; }
  .questions li { padding-inline-start: 40px; }
  html[dir="rtl"] .questions li { padding: 14px 40px 14px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .world, .controls, .skip { display: none; }
  body { background: #fff; color: #0e2230; }
  .film, .site-header, .footer-inner { background: #fff; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid #bbb; }
}
.actions + .fine { margin-top: 12px; }
