:root {
  color-scheme: dark;
  --page: #061b26;
  --ink: #f6f9fa;
  --muted: #c4d0d6;
  --accent: #08cbd6;
  --accent-ink: #032129;
  --rule: #d0e5eb66;
  --focus: #78f1f2;
  --gutter: clamp(1.5rem, 4.55vw, 6rem);
  --floating-inset: clamp(.75rem, 2vw, 2rem);
  --header-clearance: calc(7rem + env(safe-area-inset-top, 0px));
  --notice-clearance: 0px;
  --glass: #082330f0;
  font-family: "Aptos", "Segoe UI", Arial, Tahoma, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 20rem; background: var(--page); scroll-padding-block: var(--header-clearance) var(--notice-clearance); }
body { margin: 0; color: var(--ink); background: var(--page); }
.site-shell { padding-block-end: var(--notice-clearance); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }
button:hover, a:hover { text-decoration-thickness: 2px; }
.hero-shell { min-height: 100svh; min-height: 100vh; min-height: 100svh; padding-block-start: var(--header-clearance); display: flex; flex-direction: column; position: relative; isolation: isolate; overflow: hidden; }
/* Outside the hero's clipping/stacking context, so the header floats over every section. */
.site-header {
  position: fixed; z-index: 30;
  top: max(.75rem, env(safe-area-inset-top, 0px));
  inset-inline: max(var(--floating-inset), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: .85rem clamp(1rem, 2vw, 2rem); border: 1px solid var(--rule); border-radius: 1.1rem;
  background: var(--glass); box-shadow: inset 0 1px 0 #d9fbff24, 0 10px 30px #000c1438, 0 2px 5px #000c1426;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.brand { width: clamp(10rem, 14vw, 13.5rem); display: block; flex: 0 0 auto; text-decoration: none; }
.brand svg { width: 100%; height: auto; display: block; }
.brand .brand-light { display: none; }
.preferences { display: flex; align-items: center; gap: 1.7rem; font-size: .9rem; }
.language-control { display: flex; align-items: center; gap: .65rem; }
.language { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-width: 44px; min-height: 44px; padding: .4rem .2rem; border: 0; background: transparent; color: var(--muted); }
.language[aria-pressed="true"] { color: var(--ink); font-weight: 650; }
.language:hover { color: var(--ink); }
.separator { color: var(--muted); opacity: .8; }
.control-divider { height: 2rem; width: 1px; background: var(--rule); }
.theme-control { display: flex; align-items: center; gap: .7rem; border: 0; background: transparent; padding: .4rem 0; min-height: 44px; }
.light-label { color: var(--muted); }
.dark-label { font-weight: 650; }
.switch-track { width: 3.6rem; height: 1.85rem; border: 1px solid #aad6df88; border-radius: 99px; position: relative; display: block; background: #07243166; }
.switch-thumb { position: absolute; width: 1.35rem; height: 1.35rem; background: var(--accent); border-radius: 50%; top: .19rem; inset-inline-start: 1.91rem; transition: inset-inline-start .25s ease, background .25s ease; }
.hero-main { display: flex; flex: 1; align-items: center; padding: 3rem var(--gutter) 4.6rem; outline: none; }
.copy { width: 40%; max-width: 42rem; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 1.3rem; color: #57ebec; font-weight: 600; font-size: clamp(.875rem, 1.1vw, 1.2rem); letter-spacing: .27em; }
h1 { font-size: clamp(4rem, 7.6vw, 9rem); line-height: .99; font-weight: 700; letter-spacing: -.06em; margin: 0 0 1.65rem; }
h1 span { display: block; }
.lead { margin: 0 0 .75rem; font-size: clamp(1.3rem, 1.85vw, 2rem); line-height: 1.32; letter-spacing: -.018em; font-weight: 450; }
.description { margin: 0; max-width: 31rem; color: var(--muted); font-size: clamp(1rem, 1.18vw, 1.22rem); line-height: 1.65; }
.contact-button { display: inline-flex; gap: 1.1rem; align-items: center; justify-content: center; margin-top: 2.45rem; background: var(--accent); color: var(--accent-ink); min-height: 3.55rem; padding: .9rem 1.65rem; border: 1px solid #74f3eb66; border-radius: 99px; font-size: 1.05rem; font-weight: 600; text-decoration: none; box-shadow: 0 0 32px #0bced61a; transition: box-shadow .2s ease, transform .2s ease; }
.contact-button:hover { box-shadow: 0 0 34px #0bced642; transform: translateY(-2px); }
.scene { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.scene-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: opacity .7s ease; }
.light-image { opacity: 0; }
.scene-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #04182199 0%, #0418214d 30%, transparent 46%), linear-gradient(0deg, #0418214d, transparent 16%); }
.site-footer { margin: 0 var(--gutter); padding: 1.25rem 0 1.9rem; border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; font-size: .875rem; z-index: 2; }
.site-footer p { margin: 0; letter-spacing: .14em; line-height: 1.6; }
.email { color: var(--muted); text-decoration: none; letter-spacing: .06em; padding: .6rem 0; overflow-wrap: anywhere; }
.email:hover { color: var(--ink); text-decoration: underline; }
.motion-control { border: 0; background: transparent; display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .875rem; min-height: 44px; padding: .5rem; }
.motion-control:hover { color: var(--ink); }
.play-icon { display: none; }
.js-only { display: none; }
.js .js-only { display: flex; }
.skip-link { position: fixed; top: .5rem; inset-inline-start: 1rem; z-index: 50; transform: translateY(-180%); padding: .8rem 1rem; background: var(--page); border: 1px solid var(--accent); text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
[data-theme="light"] { color-scheme: light; --page: #e7f1f5; --ink: #082b39; --muted: #315567; --rule: #34586b66; --focus: #005d70; --accent: #006e7b; --accent-ink: #fff; --glass: #f0f8fcf2; }
[data-theme="light"] .dark-image { opacity: 0; }
[data-theme="light"] .light-image { opacity: 1; }
[data-theme="light"] .brand-dark { display: none; }
[data-theme="light"] .brand .brand-light { display: block; }
[data-theme="light"] .eyebrow { color: #005c68; }
[data-theme="light"] .switch-track { background: #f7ffff88; border-color: #31596c99; }
[data-theme="light"] .switch-thumb { inset-inline-start: .21rem; }
[data-theme="light"] .light-label { color: var(--ink); font-weight: 650; }
[data-theme="light"] .dark-label { color: var(--muted); font-weight: 400; }
[data-theme="light"] .scene-shade { background: linear-gradient(90deg, #f4fafcd9 0%, #f4fafc80 29%, transparent 46%), linear-gradient(0deg, #ecf7ff8c, transparent 16%); }
[data-motion="paused"] .pause-icon { display: none; }
[data-motion="paused"] .play-icon { display: block; }
[lang="ar"] { font-family: Tahoma, "Segoe UI", Arial, sans-serif; }
[lang="ar"] .copy { text-align: right; }
[lang="ar"] .eyebrow, [lang="ar"] .site-footer p { letter-spacing: 0; }
[lang="ar"] h1 { letter-spacing: -.025em; line-height: 1.25; font-size: clamp(3.2rem, 6.2vw, 7rem); }
[lang="ar"] .hero-main { direction: rtl; }
[lang="ar"] .copy { direction: rtl; }
[lang="ar"] .scene { transform: scaleX(-1); }
[lang="ar"] .contact-button svg { transform: scaleX(-1); }
@media (min-width: 1100px) and (max-aspect-ratio: 7/5) {
  .scene-image { object-position: 44% center; }
  .copy { width: 44%; }
}
@media (max-width: 1099px) {
  .site-header { gap: 1rem; }
  .brand { width: 11.5rem; }
  .preferences { gap: 1rem; }
  .hero-main { flex-direction: column; align-items: stretch; padding: 1.6rem 0 0; }
  .copy { width: 100%; max-width: none; padding: 0 var(--gutter) 2.3rem; }
  h1 { font-size: clamp(4rem, 10vw, 7rem); }
  h1 span { display: inline; }
  h1 span + span::before { content: ' '; }
  .lead { font-size: clamp(1.3rem, 3vw, 1.7rem); }
  .description { max-width: 39rem; }
  .contact-button { margin-top: 1.5rem; }
  .scene { position: relative; inset: auto; z-index: 0; width: 100%; height: clamp(20rem, 60vw, 33rem); }
  .scene-image { width: 160%; max-width: none; height: 100%; left: -60%; object-fit: cover; object-position: right center; }
  .scene-shade { background: linear-gradient(var(--page), transparent 18%, transparent 80%, var(--page)); }
  [data-theme="light"] .scene-shade { background: linear-gradient(var(--page), transparent 18%, transparent 82%, var(--page)); }
  .site-footer { margin-top: 0; padding-top: .8rem; padding-bottom: 1.15rem; flex-wrap: wrap; }
  .site-footer .motion-control { order: 3; }
  [lang="ar"] h1 { font-size: clamp(3.4rem, 8vw, 6rem); }
}
@media (max-width: 599px) {
  :root { --header-clearance: calc(9rem + env(safe-area-inset-top, 0px)); }
  .site-header { flex-wrap: wrap; padding: .65rem .85rem; gap: .3rem; border-radius: .9rem; }
  .brand { width: 9rem; }
  .preferences { width: 100%; justify-content: space-between; gap: .4rem; padding-top: .25rem; border-top: 1px solid var(--rule); font-size: .82rem; }
  .site-header .language-control { gap: .25rem; }
  .site-header .theme-control { gap: .4rem; }
  .site-header .switch-track { width: 2.8rem; }
  .site-header .switch-thumb { inset-inline-start: 1.1rem; }
  [data-theme="light"] .site-header .switch-thumb { inset-inline-start: .21rem; }
  .control-divider { display: none; }
  .hero-main { padding-top: 1.4rem; }
  .eyebrow { margin-bottom: .9rem; font-size: .875rem; }
  h1 { font-size: clamp(3.4rem, 13.5vw, 5rem); line-height: 1.05; margin-bottom: 1.3rem; }
  h1 span { display: block; }
  h1 span + span::before { content: none; }
  .copy { padding-bottom: 1.6rem; }
  .lead { font-size: 1.35rem; }
  .description { font-size: 1rem; }
  .scene { height: clamp(19rem, 82vw, 28rem); }
  .site-footer { column-gap: .75rem; row-gap: .15rem; }
  .site-footer p { font-size: .8125rem; }
  .email { width: 100%; font-size: .875rem; }
  .site-footer .motion-control { margin-inline-start: -.5rem; }
  [lang="ar"] h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
  [lang="ar"] .scene { direction: ltr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .contact-button:hover { transform: none; }
}
@media (forced-colors: active) {
  .scene { display: none; }
  .contact-button, .switch-track { border: 1px solid ButtonText; }
  .switch-thumb { background: ButtonText; }
}

/* The canvas shares the exact source-image crop and the scene RTL transform. */
.scene-motion { opacity: 0; transition: none; }
.scene-motion.is-ready { opacity: 1; }
.js .motion-control { visibility: hidden; }
[data-motion-ready="true"] .motion-control { visibility: visible; }
@media (forced-colors: active) { .js .motion-control { display: none; } }

/* Raised lettering: a fine edge, short solid depth, then soft cast shadow.
   Both languages remain real selectable text and retain the same layout. */
h1 {
  color: #f4fafb;
  text-shadow: 0 -1px 0 #ffffff,
    0 1px 0 #c5dce1, 0 2px 0 #92adb7, 0 3px 0 #526e7b,
    0 5px 3px #00111c80, 0 12px 22px #000c1666;
}
.eyebrow { text-shadow: 0 1px 1px #001923cc, 0 3px 9px #000b144d; }
.lead { text-shadow: 0 1px 1px #00121bbb, 0 3px 9px #00101966; }
.description { text-shadow: 0 1px 2px #00121b99; }
.contact-button {
  background: linear-gradient(165deg, #38dde0 0%, #08cbd6 48%, #06b4c2 100%);
  box-shadow: inset 0 1px 0 #d0ffffb3, inset 0 -1px 0 #00697899,
    0 3px 0 #005361, 0 9px 19px #000e1a66;
  text-shadow: 0 1px 0 #8dffff55;
}
.contact-button:hover {
  box-shadow: inset 0 1px 0 #efffffd9, inset 0 -1px 0 #00697899,
    0 4px 0 #005361, 0 12px 24px #000e1a73;
}
.contact-button:active { transform: translateY(1px); box-shadow: inset 0 1px 3px #00485366, 0 1px 0 #005361, 0 4px 10px #000e1a4d; }
[data-theme="light"] h1 {
  color: #103442;
  text-shadow: 0 -1px 0 #f6ffffcc,
    0 1px 0 #527584, 0 2px 0 #7b9ba8, 0 3px 0 #a0bac3,
    0 5px 4px #204d5e30, 0 12px 20px #204d5e24;
}
[data-theme="light"] .eyebrow { text-shadow: 0 1px 0 #ffffffcc, 0 3px 5px #244a5924; }
[data-theme="light"] .lead { text-shadow: 0 1px 0 #ffffffd9, 0 3px 7px #244a5926; }
[data-theme="light"] .description { text-shadow: 0 1px 0 #ffffffbf; }
[data-theme="light"] .contact-button {
  background: linear-gradient(165deg, #007f8c, #006e7b 58%, #005967);
  box-shadow: inset 0 1px 0 #9ce5e880, inset 0 -1px 0 #003f4b99,
    0 3px 0 #004450, 0 9px 19px #1b4b5e38;
  text-shadow: 0 1px 1px #003443aa;
}
[data-theme="light"] .contact-button:hover { box-shadow: inset 0 1px 0 #c5ffff99, inset 0 -1px 0 #003f4b99, 0 4px 0 #004450, 0 12px 24px #1b4b5e47; }
[data-theme="light"] .contact-button:active { box-shadow: inset 0 1px 3px #002f4266, 0 1px 0 #004450, 0 4px 10px #1b4b5e2e; }
@media (forced-colors: active) {
  h1, .eyebrow, .lead, .description, .contact-button { text-shadow: none !important; }
  .contact-button { background: ButtonFace !important; color: ButtonText; box-shadow: none !important; }
  h1 { color: CanvasText !important; }
}


/* Company information begins after the original full-height opening scene. */
.site-main { outline: none; }
.company-content { padding: 0 var(--gutter); background: var(--page); position: relative; }
.content-section { padding-block: clamp(3.5rem, 7vw, 7rem); border-block-end: 1px solid var(--rule); }
.content-section h2 { margin: 0; max-width: 20ch; font-size: clamp(2rem, 3.7vw, 3.7rem); line-height: 1.12; font-weight: 550; letter-spacing: -.035em; text-wrap: balance; }
.content-section h3 { margin: 0; font-size: clamp(1.2rem, 1.6vw, 1.6rem); line-height: 1.35; font-weight: 550; letter-spacing: -.015em; }
.content-section p { font-size: 1.05rem; line-height: 1.8; margin-block: 0 1.15rem; }
.content-section p:last-child { margin-block-end: 0; }
.section-label { display: block; font-size: .78rem !important; line-height: 1.5 !important; font-weight: 650; letter-spacing: .19em; color: var(--accent); margin-block: 0 1.3rem !important; }
.section-intro { max-width: 42rem; color: var(--muted); margin-block: 1.5rem 0 !important; }
.content-muted { color: var(--muted); }
.company-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.intro-body { max-width: 43rem; padding-block-start: .15rem; }
.founder-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .7rem 1.2rem; margin-block-start: 2.1rem; }
.founder-line .section-label { margin: 0 !important; }
.service-list { list-style: none; padding: 0; margin: clamp(2.25rem, 4vw, 4rem) 0 0; }
.service-item { display: grid; grid-template-columns: 2.8rem minmax(12rem, .85fr) minmax(0, 1.3fr); gap: 1.5rem clamp(1.5rem, 4vw, 4.5rem); padding-block: 2.2rem; border-block-start: 1px solid var(--rule); align-items: baseline; }
.service-item p { margin: 0; color: var(--muted); max-width: 48rem; }
.service-number { color: var(--accent); font-size: .82rem; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.project-steps { list-style-position: inside; counter-reset: project-step; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; padding: 0; margin: 2.8rem 0 0; }
.project-steps li { padding: clamp(1.5rem, 2.5vw, 2.5rem); background: #10344166; border: 1px solid #b5e1e820; border-radius: .75rem; }
.project-steps li::before { counter-increment: project-step; content: "0" counter(project-step); display: block; font-size: .82rem; color: var(--accent); margin-block-end: 2.2rem; font-variant-numeric: tabular-nums; }
.project-steps h3 { margin-block-end: 1rem; }
.project-steps p { color: var(--muted); font-size: 1rem; }
.project-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 5vw, 6rem); align-items: center; }
.project-copy h2 { margin-block: 1.2rem 1.6rem; }
.project-status { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); border: 1px solid var(--rule); padding: .4rem .8rem; border-radius: 2rem; font-size: .8rem; }
.project-status::before { content: ""; width: .35rem; height: .35rem; border-radius: 50%; background: var(--accent); }
.project-figure { margin: 0; min-width: 0; }
.project-image-wrap { overflow: hidden; border: 1px solid #c4eaf426; border-radius: .75rem; background: #041823; aspect-ratio: 1.5; }
.project-image-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 74% center; }
.project-image-wrap .project-light { display: none; }
.project-figure figcaption { color: var(--muted); margin-block-start: 1rem; font-size: .84rem; line-height: 1.6; }
.faq-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.faq-list { border-block-start: 1px solid var(--rule); min-width: 0; }
.faq-list details { border-block-end: 1px solid var(--rule); }
.faq-list summary { display: flex; align-items: baseline; justify-content: space-between; gap: 1.2rem; list-style: none; padding-block: 1.5rem; cursor: pointer; font-size: 1.12rem; font-weight: 550; line-height: 1.6; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.faq-icon { color: var(--accent); font-size: 1.4rem; line-height: 1; flex: 0 0 auto; }
.faq-list details[open] .faq-icon { transform: rotate(45deg); }
.faq-list details > p { padding-block: 0 1.7rem; padding-inline-end: 2.5rem; margin: 0; color: var(--muted); font-size: 1rem; }
.contact-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.project-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 1.25rem; }
.project-contact .contact-button { margin-block-start: 0; }
.company-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 2rem; padding-block: 1.8rem 2.5rem; color: var(--muted); font-size: .75rem; line-height: 1.7; }
.company-footer p { margin: 0; }
[data-theme="light"] .project-steps li { background: #ffffff70; border-color: #34586b29; }
[data-theme="light"] .project-image-wrap { border-color: #34586b40; }
[data-theme="light"] .project-image-wrap .project-dark { display: none; }
[data-theme="light"] .project-image-wrap .project-light { display: block; }
[lang="ar"] .company-content { text-align: start; }
[lang="ar"] .section-label, [lang="ar"] .content-section h2, [lang="ar"] .content-section h3 { letter-spacing: 0; }
[lang="ar"] .content-section h2 { line-height: 1.5; }
[lang="ar"] .content-section h3 { line-height: 1.65; }
[lang="ar"] .content-section p { line-height: 1.95; }
@media (max-width: 1099px) {
  .service-item { grid-template-columns: 2rem minmax(11rem, .8fr) minmax(0, 1.2fr); gap: 1.5rem; }
  .project-steps { gap: .8rem; }
  .project-section { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 799px) {
  .company-intro, .project-section, .faq-section, .contact-section { grid-template-columns: 1fr; gap: 2.2rem; }
  .service-item { grid-template-columns: 2rem minmax(0, 1fr); gap: .85rem 1rem; }
  .service-item p { grid-column: 2; }
  .project-steps { grid-template-columns: 1fr; gap: .9rem; }
  .project-steps li { padding: 1.6rem; }
  .project-steps li::before { margin-block-end: 1.3rem; }
  .project-contact { align-items: flex-start; }
  .project-image-wrap { aspect-ratio: 1.7; }
  .company-footer { flex-direction: column; align-items: flex-start; }
}
@media (forced-colors: active) {
  .project-steps li, .project-status, .project-image-wrap { border-color: CanvasText; }
  .faq-icon, .section-label, .service-number { color: CanvasText; }
}

/* A non-modal floating notice. Both fixed surfaces inherit the document's RTL order. */
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.preference-notice {
  position: fixed; z-index: 40; bottom: max(.75rem, env(safe-area-inset-bottom, 0px));
  inset-inline: max(var(--floating-inset), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  max-width: 76rem; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem 2rem; padding: 1rem 1.25rem; border: 1px solid var(--rule); border-radius: 1rem;
  background: var(--glass); box-shadow: inset 0 1px 0 #d9fbff24, 0 12px 36px #000c1459, 0 2px 5px #000c1426;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); text-align: start;
  max-height: calc(100vh - var(--header-clearance) - 5rem - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - var(--header-clearance) - 5rem - env(safe-area-inset-bottom, 0px));
  overflow: auto; overscroll-behavior: contain; scroll-padding-block: 1rem;
}
.preference-notice > div:first-child { flex: 1 1 22rem; min-width: 0; }
.preference-notice h2 { margin: 0 0 .25rem; font-size: 1rem; line-height: 1.5; }
.preference-notice p { margin: 0; max-width: 68ch; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.privacy-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.privacy-choice { min-height: 48px; flex: 1 1 10rem; padding: .8rem 1rem; border: 1px solid var(--accent); border-radius: .65rem; background: transparent; color: var(--ink); font-weight: 600; font-size: .9rem; line-height: 1.5; box-shadow: inset 0 1px 0 #b7edf31a, 0 3px 7px #000c1426; }
.privacy-choice:hover, .privacy-choice[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.privacy-link { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .15rem; border: 0; background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: .24em; font-size: .9rem; line-height: 1.6; }
.privacy-dialog { width: min(44rem, calc(100% - 2rem)); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--rule); border-radius: 1.15rem; color: var(--ink); background: var(--page); box-shadow: inset 0 1px 0 #b7edf333, 0 22px 80px #000c1480; text-align: start; }
.privacy-dialog::backdrop { background: #001018b3; backdrop-filter: blur(5px); }
.privacy-dialog-inner { padding: clamp(1.25rem, 4vw, 2.5rem); }
.privacy-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.privacy-heading .section-label { margin-block-end: .5rem !important; }
.privacy-dialog h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.4; font-weight: 600; }
.privacy-dialog h3 { margin: 0 0 .6rem; font-size: 1.1rem; line-height: 1.6; }
.privacy-dialog p { margin-block: 0 1rem; line-height: 1.85; }
.privacy-close { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--rule); border-radius: 50%; background: transparent; font-size: 1.8rem; line-height: 1; }
.privacy-languages { margin-block: .6rem 1rem; }
.privacy-settings { border-block: 1px solid var(--rule); padding-block: 1.4rem 1rem; }
.privacy-settings > p, .privacy-section p, .privacy-note { color: var(--muted); font-size: .95rem; }
.privacy-settings .privacy-state { color: var(--ink); border-inline-start: 3px solid var(--accent); padding-inline-start: .8rem; font-size: .9rem; }
.privacy-settings .privacy-link { margin-block-start: .5rem; }
.privacy-section { padding-block-start: 1.4rem; }
.privacy-email { display: inline-block; overflow-wrap: anywhere; min-height: 44px; line-height: 1.7; }
.privacy-note { margin-block-start: 1rem !important; font-size: .8rem !important; }
.privacy-open { overflow: hidden; }
.privacy-fallback { padding: 2rem var(--gutter); max-width: 70rem; line-height: 1.8; }
[lang="ar"] .privacy-dialog h2, [lang="ar"] .preference-notice h2 { line-height: 1.7; }
@media (max-width: 599px) {
  .preference-notice { padding: .85rem; gap: .4rem; }
  .preference-notice > .privacy-actions { width: 100%; }
  .privacy-actions { gap: .6rem; }
  .privacy-choice { flex-basis: 7rem; font-size: .85rem; padding-inline: .6rem; }
  .privacy-dialog { width: calc(100% - 1rem); max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); }
}
@media (forced-colors: active) {
  .privacy-choice, .privacy-dialog, .privacy-close, .preference-notice, .site-header { border: 1px solid ButtonText; box-shadow: none; }
  .preference-notice, .site-header { background: Canvas; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .privacy-choice[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -4px; }
}
/* Short landscape screens retain a usable reading area between the floating controls. */
@media (min-width: 540px) and (max-height: 520px) {
  .site-header { flex-wrap: nowrap; padding-block: .45rem; gap: .75rem; }
  .site-header .brand { width: 7.5rem; }
  .site-header .preferences { width: auto; border: 0; padding: 0; gap: .8rem; }
  .preference-notice { padding-block: .65rem; }
}
