/* Local accessibility controls. Visual adjustments apply only when requested. */
.a11y-launcher {
  position: fixed; left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 80;
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px;
  border: 1px solid #d4c6aa; border-radius: 28px; background: #20221ef5; color: #f3f0e8;
  font: 400 15px/1.4 var(--font); direction: rtl; box-shadow: 0 4px 18px #0004;
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
}
.a11y-launcher.is-dragging { cursor: grabbing; box-shadow: 0 8px 28px #0006; }
.a11y-dialog[data-side="right"] { left: auto; right: max(14px, env(safe-area-inset-right)); }
.a11y-launcher svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.a11y-dialog {
  position: fixed; inset: auto auto max(76px, calc(env(safe-area-inset-bottom) + 70px)) max(14px, env(safe-area-inset-left));
  margin: 0; width: min(390px, calc(100% - 28px)); max-width: none;
  max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain;
  padding: 24px; border: 1px solid #807862; border-radius: 24px;
  color: #f3f0e8; background: #20221e; box-shadow: 0 24px 80px #0008; font-family: var(--font); text-align: right;
}
.a11y-dialog::backdrop { background: #0005; }
.a11y-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.a11y-dialog h2 { margin: 0; font: 500 1.35rem/1.4 var(--font) !important; }
.a11y-close { flex-shrink: 0; display: grid; place-items: center; padding: 10px; width: 44px; height: 44px; border: 1px solid #807862; border-radius: 50%; background: transparent; color: inherit; }
.a11y-close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.7; fill: none; }
.a11y-text-label { display: block; margin-bottom: 8px; font-size: 1rem; }
.a11y-dialog select { width: 100%; min-height: 48px; padding: 10px; color: #f3f0e8; background: #151513; border: 1px solid #807862; border-radius: 10px; font: inherit; font-size: 1rem; }
.a11y-options { display: grid; gap: 10px; margin-top: 18px; }
.a11y-options button { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; width: 100%; min-height: 48px; padding: 12px; border: 1px solid #807862; border-radius: 12px; color: inherit; background: #292c26; text-align: right; font-size: 1rem; line-height: 1.5; }
.a11y-options button[aria-pressed="true"] { border-color: #e2d2b0; background: #e2d2b0; color: #171912; }
.a11y-options button:disabled { cursor: default; }
.a11y-state { font-size: .875rem; }
.a11y-position { border-top: 1px solid #807862; padding-top: 18px; margin-top: 18px; }
.a11y-position h3 { font: 500 1.0625rem/1.5 var(--font) !important; margin: 0 0 6px; }
.a11y-position p { font-size: .875rem; line-height: 1.7; color: #d0cfc7; }
.a11y-position-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.a11y-position-controls button { min-height: 44px; padding: 8px; border: 1px solid #807862; border-radius: 10px; background: #292c26; color: inherit; font: 400 .875rem/1.5 var(--font); }
.a11y-position-controls button[aria-pressed="true"] { color: #171912; background: #e2d2b0; border-color: #e2d2b0; }
.a11y-dialog .a11y-motion-note, .a11y-dialog .a11y-system-note, .a11y-dialog .a11y-storage-note { font-size: .875rem; line-height: 1.7; margin-top: 12px; color: #d0cfc7; }
.a11y-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #807862; }
.a11y-reset { padding: 10px 12px; min-height: 44px; border: 1px solid #807862; border-radius: 10px; background: transparent; color: inherit; font-size: .9375rem; }
.a11y-actions a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; text-decoration: underline; text-underline-offset: 4px; }
.a11y-dialog :focus-visible, .a11y-launcher:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.a11y-dialog [hidden] { display: none !important; }
main:focus { outline: none; }
body > footer { padding-bottom: max(80px, calc(env(safe-area-inset-bottom) + 64px)); }

html[data-a11y-text="125"] { font-size: 125%; }
html[data-a11y-text="150"] { font-size: 150%; }
html[data-a11y-text="200"] { font-size: 200%; }
html:not([data-a11y-text="100"])[data-a11y-text] :is(.intro-layout,.services-grid,.process-grid,.enquiry-panel,.catalog-intro,.catalog-pair) { grid-template-columns: minmax(0,1fr); }
html:not([data-a11y-text="100"])[data-a11y-text] :is(.intro-copy,.service p,.about-copy p,.enquiry-intro,.catalog-intro-copy) { max-width: 100%; }
html:not([data-a11y-text="100"])[data-a11y-text] .hero { height: auto; min-height: 100svh; padding: 10rem 6% 4rem; }
html:not([data-a11y-text="100"])[data-a11y-text] .hero-copy { position: relative; inset: auto; max-width: 100%; text-align: right; }
html:not([data-a11y-text="100"])[data-a11y-text] .hero h1 { font-size: 1.75rem; line-height: 1.4; }
html:not([data-a11y-text="100"])[data-a11y-text] .hero-copy .line { display: block; position: static; inset: auto; width: auto; font-size: inherit; line-height: inherit; text-align: right; }
html:not([data-a11y-text="100"])[data-a11y-text] .hero-baseline { position: relative; inset: auto; margin-top: 2rem; flex-wrap: wrap; gap: 20px; }
html:not([data-a11y-text="100"])[data-a11y-text] :is(.site-header,.catalog-header,.legal-page header) { position: relative; inset: auto; margin: 12px 16px; flex-wrap: wrap; }
html:not([data-a11y-text="100"])[data-a11y-text] .site-header > nav { flex-wrap: wrap; }
html:not([data-a11y-text="100"])[data-a11y-text] .header-services { display: none; }
html:not([data-a11y-text="100"])[data-a11y-text] .about-layout { display: flex; flex-direction: column; align-items: stretch; }
html:not([data-a11y-text="100"])[data-a11y-text] .about-copy { display: block; }
html:not([data-a11y-text="100"])[data-a11y-text] .about-portrait { max-width: 300px; }
html:not([data-a11y-text="100"])[data-a11y-text] .about-copy h2 { white-space: normal; }
html:not([data-a11y-text="100"])[data-a11y-text] .process-visual { position: relative; top: auto; }
html:not([data-a11y-text="100"])[data-a11y-text] :is(.form-row,.service-tabs,.contact-details) { grid-template-columns: minmax(0,1fr); }
html:not([data-a11y-text="100"])[data-a11y-text] :is(p,a,button,figcaption,label,h1,h2,h3,em) { overflow-wrap: anywhere; }
html:not([data-a11y-text="100"])[data-a11y-text] .brand { font-size: 20px; }
html:not([data-a11y-text="100"])[data-a11y-text] .site-header { grid-template-columns: minmax(0,1fr) 44px; }
html:not([data-a11y-text="100"])[data-a11y-text] .site-header > .mobile-menu-toggle { grid-column: 2; }
html:not([data-a11y-text="100"])[data-a11y-text] .gallery-navigation { flex-wrap: wrap; }
html:not([data-a11y-text="100"])[data-a11y-text] .gallery-choices { order: 3; flex: 1 0 100%; flex-wrap: wrap; }
html:not([data-a11y-text="100"])[data-a11y-text] .gallery-ready .gallery-controls { height: auto; min-height: 160px; }
html:not([data-a11y-text="100"])[data-a11y-text] .gallery-ready .space-scene { bottom: 160px; }
html:not([data-a11y-text="100"])[data-a11y-text] .scene-title { font-size: 1.75rem; }

html.a11y-links a:not(.brand):not(.footer-wordmark) { text-decoration: underline !important; text-decoration-thickness: 2px; text-underline-offset: 5px; }
html.a11y-contrast { --bg: #000; --deep: #000; --ink: #fff; --muted: #fff; --accent: #ffe3a1; --line: #aaa; }
html.a11y-contrast :is(p,h1,h2,h3,label,figcaption,.eyebrow,.index,.scene-category,.scene-title,.footer-baseline) { color: #fff !important; }
html.a11y-contrast :is(.site-header,.catalog-header,.legal-page header,.mobile-menu,.a11y-dialog,.a11y-launcher) { background: #000 !important; color: #fff; border-color: #fff; }
html.a11y-contrast :is(.hero-copy,.space-scene figcaption,.invitation-copy) { background: #000; padding: 16px; border-radius: 8px; }
html.a11y-contrast :is(a,button,input,textarea,select) { border-color: #fff; }
html.a11y-contrast :is(.brand,.footer-wordmark) { color: #fff; -webkit-text-fill-color: #fff; }
html.a11y-contrast .steps article { opacity: 1; }
html.a11y-reduced-motion *, html.a11y-reduced-motion *::before, html.a11y-reduced-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-reduced-motion { scroll-behavior: auto !important; }
html.a11y-reduced-motion :is(.entry-screen,.hero-video) { display: none !important; }
html.a11y-reduced-motion .hero-parallax { transform: none !important; }
html.a11y-reduced-motion .reveal { opacity: 1 !important; transform: none !important; }
html.a11y-reduced-motion .process-visual { position: relative; top: auto; }
@media (max-width: 750px) {
  .a11y-launcher { min-height: 44px; padding: 8px 12px; gap: 6px; font-size: 14px; }
  .a11y-dialog { padding: 20px; }
}
@media (forced-colors: active) {
  .a11y-launcher, .a11y-dialog, .a11y-options button, .a11y-close, .a11y-reset, .a11y-position-controls button { border: 1px solid ButtonText; }
  .a11y-options button[aria-pressed="true"], .a11y-position-controls button[aria-pressed="true"] { outline: 3px solid Highlight; }
}
