body { font-family: Ataero, Arial, sans-serif; }
h1,h2,h3,.brand,.wordmark,.home-brand { font-family: Ataero, Arial, sans-serif; }
p { line-height: 1.65; text-wrap: pretty; }
body main :is(h1,h2,h3),
body[class] main :is(h1,h2,h3) { text-wrap: balance; }
body main :is(li,dd,figcaption) { text-wrap: pretty; }
a,button,input,textarea,select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline:2px solid #5988cb; outline-offset:5px; }
.site-header .brand { display:inline-flex; align-items:center; gap:.5rem; }
.site-header .brand::before { content:""; width:30px; height:28px; background:url('logo/bahr-logo-dark.svg') center/contain no-repeat; }
.work-index .site-header .brand::before { filter:brightness(1.8); }
.portfolio-page .case-media { background:transparent; padding:0; color:var(--ink); }
.portfolio-page .portfolio-contact { background:transparent; color:var(--ink); border-top:1px solid var(--line); }
.portfolio-page .case-title { font-size:clamp(3rem,2rem + 7vw,9rem); }
.portfolio-page .case-story p { font-size:clamp(1.125rem,1rem + .6vw,1.5rem); }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto!important; } }
.portfolio-page .header-wordmark { display:inline-flex;align-items:center;gap:.35rem; }
.portfolio-page .header-wordmark::before { content:"";width:28px;height:28px;background:url('logo/bahr-logo-dark.svg') center/contain no-repeat; }
.portfolio-page .header .wordmark{width:auto;min-width:120px}
html[data-theme=dark] .portfolio-page .header-wordmark::before{filter:brightness(1.8)}

/* Shared sea currents sit behind the page content, never above its controls. */
body { isolation:isolate; }
.bahr-ambient {
  position:fixed;
  inset:0;
  z-index:-2;
  overflow:hidden;
  pointer-events:none;
  background:radial-gradient(ellipse at 90% 12%,#568ec219,transparent 60%);
}
.bahr-ambient::before {
  content:"";
  position:absolute;
  inset:-20%;
  background:radial-gradient(ellipse at 65% 35%,#85b5d830,transparent 35%),
    radial-gradient(ellipse at 30% 80%,#367ca51c,transparent 40%);
  animation:bahr-light 18s ease-in-out infinite alternate;
  animation-play-state:var(--bahr-play,paused);
}
/* silk.js paints water light once; it gathers at the page edges and fades out before the reading column. */
.bahr-silk {
  position:absolute;
  inset:-5%;
  width:110%;
  height:110%;
  opacity:.7;
  mask-image:radial-gradient(ellipse 72% 70% at 50% 48%,transparent 42%,#0008 72%,#000 100%);
  -webkit-mask-image:radial-gradient(ellipse 72% 70% at 50% 48%,transparent 42%,#0008 72%,#000 100%);
  animation:bahr-silk 36s ease-in-out infinite alternate;
  animation-play-state:var(--bahr-play,paused);
}
/* The landing hero adds light behind the Arabic mark, clear of the copy, and calms it after the opening. */
.home-gateway .bahr-silk {
  opacity:.85;
  mask-image:radial-gradient(ellipse 72% 70% at 50% 48%,transparent 42%,#0008 72%,#000 100%),radial-gradient(ellipse 30% 36% at 76% 32%,#0009,transparent 72%);
  -webkit-mask-image:radial-gradient(ellipse 72% 70% at 50% 48%,transparent 42%,#0008 72%,#000 100%),radial-gradient(ellipse 30% 36% at 76% 32%,#0009,transparent 72%);
}
@supports (animation-timeline:scroll()) {
  .home-gateway .bahr-silk {
    animation:bahr-silk 36s ease-in-out infinite alternate,bahr-silk-calm linear both;
    animation-timeline:auto,scroll(root block);
    animation-range:normal,0 90vh;
    animation-play-state:var(--bahr-play,paused),running;
  }
}
.bahr-ambient.is-alive { --bahr-play:running; }
/* The ambient layer owns the page backdrop; local illustrations keep their own artwork. */
.routing-backdrop,
.portfolio-page>bahr-wallpaper,
.catalog-hero>bahr-contours,
.home-opening-contours,
.home-route-contours,
.home-contact-contours,
.developer-map>bahr-contours,
.brief-aside>bahr-contours,
.hero>.case-terrain { display:none; }
@keyframes bahr-silk {
  from { transform:translate3d(-1.6%,1.2%,0) scale(1.01); }
  to { transform:translate3d(1.6%,-1.4%,0) scale(1.05); }
}
@keyframes bahr-silk-calm { to { opacity:.42; } }
@keyframes bahr-light {
  from { transform:translate3d(-4%,2%,0) scale(1); }
  to { transform:translate3d(4%,-3%,0) scale(1.12); }
}
/* Phones and reduced motion keep a fully still backdrop. */
@media(max-width:700px),(prefers-reduced-motion:reduce) {
  .bahr-ambient::before,.bahr-ambient .bahr-silk { animation:none; }
}
@media(max-width:700px) {
  /* Phones keep the light to the top and bottom edges; the narrow column between stays quiet. */
  .bahr-silk,.home-gateway .bahr-silk {
    mask-image:linear-gradient(#000,transparent 22%,transparent 78%,#000);
    -webkit-mask-image:linear-gradient(#000,transparent 22%,transparent 78%,#000);
  }
}
.home-development { padding-block:clamp(4rem,8vw,8rem);border-block:1px solid var(--line); }
.home-development h2 { margin-block:1.5rem; }
.home-development>p:not(.eyebrow) { max-width:48ch; margin-bottom:2rem; }
.development-intro { max-width:56ch; }
.development-list { display:grid;grid-template-columns:1fr 1fr;gap:4rem;margin-top:3rem; }
.development-list article { border-top:1px solid var(--line);padding-block:1.5rem; }
.development-list h3 { font-size:clamp(2rem,1.5rem + 2vw,3.5rem);margin-block:1.2rem; }
.development-list p { max-width:42ch; margin-bottom:1.5rem; }
.development-list a { display:inline-flex;align-items:center;min-height:44px; }
.development-status { display:inline-block;font-size:.75rem;letter-spacing:.04em;color:var(--muted); }
@media(max-width:767px) { .development-list { grid-template-columns:1fr;gap:1.5rem; } }

/* Page introductions share a centered reading column and place artwork below it. */
.wrap { max-width:80rem; }
.bahr-home .home-pad { max-width:80rem; margin-inline:auto; width:100%; }
.bahr-home .home-opening-grid {
  grid-template-columns:minmax(0,1fr);
  min-height:0;
  margin-block:3rem 1rem;
  gap:2.5rem;
}
.bahr-home .home-opening-copy { text-align:center; width:100%; }
.bahr-home h1 { max-width:22ch; margin-inline:auto; font-size:clamp(3rem,1.6rem + 5.5vw,7rem); letter-spacing:-.025em; line-height:1.12; }
.bahr-home .home-intro { margin-inline:auto; margin-top:2rem; max-width:58ch; font-size:clamp(1.125rem,1rem + .6vw,1.5rem); line-height:1.65; letter-spacing:0; }
.bahr-home .home-pathways { justify-content:center; }
.bahr-home .home-visual { width:100%; height:19rem; min-height:0; aspect-ratio:auto; }
.bahr-home .home-mark { width:17rem; }
.bahr-home .home-down { display:flex;justify-content:center;width:max-content;margin-inline:auto; }
.catalog-hero,
.routing-hero,
.developer-hero,
.contact-page .opening {
  text-align:center;
  padding-top:clamp(3rem,6vw,6rem);
}
.detail-hero,
.routing-hero,
.developer-hero,
.contact-page .opening-grid {
  grid-template-columns:minmax(0,1fr);
  justify-items:center;
  gap:3rem;
}
.catalog-hero h1,
.routing-hero h1,
.developer-hero h1,
.contact-page .opening h1 {
  max-width:22ch;
  margin-inline:auto;
  font-size:clamp(3rem,1.6rem + 5.5vw,7rem);
  letter-spacing:-.025em;
  line-height:1.12;
}
.catalog-hero .intro,
.routing-hero p,
.developer-hero .intro,
.contact-page .opening .intro {
  max-width:58ch;
  margin-inline:auto;
  font-size:clamp(1.125rem,1rem + .6vw,1.5rem);
  line-height:1.65;
  letter-spacing:0;
}
.catalog-hero .editorial-figure { width:min(100%,50rem);text-align:left; }
.routing-hero .routing-mark { width:16rem; }
.developer-hero .developer-map { width:min(100%,48rem);text-align:left; }
.developer-hero .developer-actions { justify-content:center; }
.contact-page .opening .intro { border:0;padding:0; }
@media(max-width:767px) {
  .bahr-home .home-opening-grid { margin-top:2rem; }
  .bahr-home .home-visual { height:15rem; }
  .bahr-home .home-mark { width:13rem; }
}

/* Keep editorial type open while compact labels retain their own scale. */
body[class] main :is(h2,h3) { letter-spacing:-.025em; line-height:1.16; }
body main :is(.intro,.case-story p) { line-height:1.65; }
.workflow-page .workflow-hero h1 { letter-spacing:-.025em; line-height:1.12; }
/* Service and product heroes share the inner page title rhythm; each page keeps its own size and width. */
body main :is(.offer-hero,.mob-hero,.tts-hero) h1 { letter-spacing:-.025em; line-height:1.12; overflow-wrap:anywhere; }
.websites-page .offer-hero h1 { max-width:min(100%,17ch); }
.workflow-page .workflow-hero .intro { font-size:clamp(1.125rem,1rem + .6vw,1.5rem); line-height:1.65; }
.bahr-home :is(.home-section-heading>p,.home-delivery-heading>p,.home-route>p,.home-feature-copy>p:not(.home-overline),.home-steps p,.home-development>p:not(.eyebrow),.home-contact-bottom>p) { font-size:clamp(1.125rem,1rem + .3vw,1.3rem); line-height:1.65; }
.bahr-home .home-delivery-note { font-size:1rem; line-height:1.65; }
.bahr-home .home-link,.bahr-home .home-pathways>a { font-size:1rem; }
.bahr-home .home-steps li { border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;padding-inline:0; }
.bahr-home .home-steps { gap:clamp(1.5rem,3vw,3rem); }

.work-opening h1,.portfolio-page .case-title { line-height:1.12; }

/* Shared type steps: section titles, card and diagram headings, and small labels. */
:root { --type-section:clamp(2rem,1.3rem + 3vw,3.75rem);--type-card:1.375rem;--type-diagram:1.125rem;--type-label:.8125rem;--track-label:.08em; }
/* Section titles share a quieter scale; page titles keep their existing hierarchy. */
body main :is(.section-heading,.showcase-heading,.next) h2,
body[class] main :is(.home-section-heading,.home-delivery-heading,.home-feature-copy,.home-contact-grid,.studio-heading,.solution-copy,.catalog-cta,.archive-heading,.portfolio-contact,.brief-aside,.next,.case-story,.integration-heading,.offerings-heading,.showcase-heading) h2 {
  font-size:var(--type-section);
  line-height:1.16;
}
/* Work index steps down from the page title: featured project, then project cards. */
.work-index .featured-copy h2 { font-size:var(--type-section); }
.work-index .card-caption h3 { font-size:clamp(var(--type-card),1rem + 1.5vw,2.25rem); }
body.catalog-page main .solution-copy h2 { font-size:clamp(1.75rem,1.2rem + 2.4vw,3.5rem); }

.catalog-hero>.eyebrow,.catalog-hero>div>.eyebrow,.developer-lead>.eyebrow { margin-inline:auto; }

.expertise-art { grid-column:3;grid-row:1/5;align-self:center;margin:1rem 0 2rem;min-width:0;position:relative; }
.expertise-art>a { display:block;border:1px solid #12386b30;border-radius:12px;overflow:hidden;background:#f5f5ef; }
.expertise-art img { display:block;width:100%;height:auto;aspect-ratio:1.12;object-fit:cover;object-position:top; }
.expertise-art-bar { display:flex;align-items:center;gap:5px;padding:12px 16px;border-bottom:1px solid #12386b25;background:#f4f4ee;color:#12386b; }
.expertise-art-bar i { width:5px;height:5px;border-radius:50%;background:#12386b60; }
.expertise-art-bar>span { margin-left:auto;font-size:10px;letter-spacing:.06em; }
.expertise-art figcaption { display:flex;justify-content:space-between;gap:1rem;margin-top:1.5rem;font-size:14px;line-height:1.5; }
.expertise-art--mobile { max-width:26rem;justify-self:center; }
.expertise-art--mobile>a { border-radius:26px; }
.expertise-art--mobile img { aspect-ratio:1;object-fit:contain; }
@media(max-width:767px) { .expertise-art { grid-column:1/-1;grid-row:auto;width:100%;margin-top:2rem; } }
@media(prefers-reduced-motion:reduce) { .expertise-art>a { transform:none;transition:none; } }

/* Shared tactile response uses translate so it does not replace an arrival transform. */
@media(prefers-reduced-motion:no-preference) {
  :is(.action,.button,.draft-action button,.home-pathways>a,.home-contact-arrow,.solution-chooser nav>a,.portfolio-card,.home-link,.showcase-link,.inline-link) {
    transition:translate .3s cubic-bezier(.2,.75,.25,1),box-shadow .3s,border-color .25s,background-color .25s,color .25s;
  }
  :is(.action,.button,.draft-action button,.home-pathways>a,.home-contact-arrow,.solution-chooser nav>a,.portfolio-card):focus-visible {
    translate:0 -4px;
    box-shadow:0 12px 24px -16px #12386b80;
  }
  :is(.home-link,.showcase-link,.inline-link):focus-visible { translate:3px 0; }
  .home-pathways a:focus-visible .home-arrow,.home-link:focus-visible span { transform:translate(3px,-3px); }
  @media(hover:hover) and (pointer:fine) {
    :is(.action,.button,.draft-action button,.home-pathways>a,.home-contact-arrow,.solution-chooser nav>a,.portfolio-card):hover {
      translate:0 -4px;
      box-shadow:0 12px 24px -16px #12386b80;
    }
    :is(.home-link,.showcase-link,.inline-link):hover { translate:3px 0; }
  }
  :is(.action,.button,.draft-action button,.home-pathways>a,.home-contact-arrow,.solution-chooser nav>a):active { translate:0 1px; }
}

/* Shell tokens leave client artwork and video colors intact. */
/* Light is coastal daylight: a pale sea-blue page, deeper blue panels and deep navy text.
   --surface is the calm panel for cards and figures, --surface-strong the emphasised or selected one,
   --header-bg keeps the bar and its menus a step lighter than the page. */
html:root,html[data-theme=light] body {
  --bg:#edf4f8;--ink:#12386b;--muted:#344b63;--line:#12386b38;--blue:#1f4e91;
  --surface:#dde9f2;--surface-strong:#cadeec;--header-bg:#f7fafc;
  color-scheme:light;
}
html[data-theme=dark],html[data-theme=dark] body {
  --bg:#09182b;--ink:#edf2f8;--muted:#b8c9dd;--line:#aac9ed42;--blue:#a9ccf8;
  --surface:#0f2238;--surface-strong:#15304e;--header-bg:#09182b;
  color-scheme:dark;
}
body { background:var(--bg);color:var(--ink); }
.shared-theme-toggle { font:inherit;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:2rem;padding:.6rem 1rem;min-height:44px;cursor:pointer; }
.site-header,.site-footer,.home-header,.footer { color:var(--ink); }
.portfolio-page .case-media { border:1px solid var(--line);border-radius:12px;overflow:hidden; }
.journey-payload pre,#journey-result { white-space:pre-wrap;overflow-wrap:anywhere;font-size:clamp(.75rem,1vw,1rem); }
.journey-ai svg { width:100px; }

/* Page-specific shell aliases follow the selected mode; artwork keeps its palette. */
body.bahr-home { --silver:#f5f5ef; }
body.contact-page { --contact-blue:var(--ink);--contact-paper:var(--bg);--field-border:var(--line); }
.contact-page .field input,.contact-page .field textarea { background:var(--bg);border-color:var(--line); }
.developers-page :is(.presentation-expertise,.presentation-work) { --presentation-navy:var(--ink);--presentation-paper:var(--bg);--presentation-rule:var(--line); }
.presentation-expertise .capability-ai,.presentation-expertise .workflow-art { background:var(--bg); }
html[data-theme=dark] :is(.home-brand img,.site-header .brand::before) { filter:brightness(0) invert(1); }
html[data-theme=light] .work-index .site-header .brand::before { filter:none; }
html:root { --accent:var(--blue); }
.current-panel,.hero-media,.video-frame,.paper { background:var(--bg); }
.scene-card,.scene-card-muted { fill:var(--bg);stroke:var(--line); }
.scene-grid { stroke:var(--line); }
.paper mark { background:var(--line);color:var(--ink); }
html[data-theme=dark] .button { color:var(--bg); }
.expertise-project>a { background:var(--bg);border:1px solid var(--line);border-radius:12px; }
.portfolio-page { --work-blue:var(--ink); }


/* The About header is the shared shell for every content route. */
.bahr-header { position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%;min-height:76px;padding:16px clamp(18px,5vw,88px);border-bottom:1px solid var(--line);background:var(--header-bg,var(--bg));color:var(--ink); }
.bahr-header .bahr-brand { display:inline-flex;align-items:center;gap:.5rem;min-width:44px;justify-content:center;min-height:44px;font-size:30px;letter-spacing:-.06em;line-height:1;text-decoration:none; }
.bahr-brand img { display:block;width:30px;height:28px;object-fit:contain; }
html[data-theme=dark] .bahr-brand img { filter:brightness(0) invert(.85); }
.bahr-header .header-nav { display:flex;align-items:center;gap:clamp(.25rem,1vw,.875rem); }
.bahr-header .header-nav a { display:inline-flex;align-items:center;min-height:44px;padding-inline:.875rem;font-size:1rem;text-decoration:none;border-radius:2rem; }
.bahr-header .header-nav a:is(:hover,:focus-visible) { text-decoration:underline;text-underline-offset:5px; }
.bahr-header .header-nav a[aria-current] { text-decoration:underline;text-underline-offset:5px; }
.bahr-header .header-actions { display:flex;align-items:center;gap:8px; }
.bahr-header .lang-switch,#menu-panel .lang-switch { display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:2rem;color:var(--ink);font-size:.875rem;text-decoration:none; }
.bahr-header .lang-switch:is(:hover,:focus-visible),#menu-panel .lang-switch:is(:hover,:focus-visible) { border-color:var(--ink); }
@font-face { font-family:"Bahr Arabic";src:url('/assets/fonts/readex-pro-arabic-regular.woff2') format('woff2');font-weight:100 450;font-display:swap;unicode-range:U+0600-06FF,U+FB50-FDFF,U+FE70-FEFF; }
.lang-switch:lang(ar) { font-family:"Bahr Arabic",Ataero,system-ui,sans-serif; }
.bahr-header .theme-toggle,#menu-panel .theme-toggle { position:static;display:grid;place-items:center;mix-blend-mode:normal;width:44px;height:44px;padding:0;background:transparent;border:1px solid var(--line);border-radius:50%;color:var(--ink);cursor:pointer; }
.bahr-header .theme-toggle span,#menu-panel .theme-toggle span { display:block;width:15px;height:15px;border:1px solid var(--ink);border-radius:50%;background:linear-gradient(90deg,var(--ink) 50%,transparent 50%); }
.bahr-header .menu-toggle { position:static;display:none;flex-shrink:0;width:44px;height:44px;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:0;border:1px solid var(--line);border-radius:0;background:var(--header-bg,var(--bg));color:var(--ink);cursor:pointer; }
.bahr-header .menu-toggle span { display:block;width:22px;height:1px;background:var(--ink);transition:transform .2s ease,opacity .2s ease; }
/* The same button turns into a close mark while the panel is open. */
.bahr-header .menu-toggle[aria-expanded=true] span:nth-child(1) { transform:translateY(6px) rotate(45deg); }
.bahr-header .menu-toggle[aria-expanded=true] span:nth-child(2) { opacity:0; }
.bahr-header .menu-toggle[aria-expanded=true] span:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }
/* Phone navigation drops down from the sticky header and scrolls inside itself on short screens. */
#menu-panel { position:absolute;top:calc(100% + 1px);inset-inline:0;display:flex;flex-wrap:wrap;align-items:center;gap:12px;max-height:calc(100vh - 100% - 1px);max-height:calc(100dvh - 100% - 1px);overflow-y:auto;overscroll-behavior:contain;padding:4px clamp(18px,5vw,88px) 16px;color:var(--ink);background:var(--header-bg,var(--bg));border-bottom:1px solid var(--line);box-shadow:0 14px 24px -18px #0006; }
#menu-panel[hidden] { display:none; }
#menu-panel .header-nav { display:flex;flex-direction:column;align-items:stretch;flex-basis:100%;gap:0; }
#menu-panel .header-nav a { display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:48px;padding:0 2px;font-size:1.125rem;line-height:1.3;border-bottom:1px solid var(--line);border-radius:0;text-decoration:none; }
#menu-panel .header-nav a:is(:hover,:focus-visible,[aria-current]) { text-decoration:underline;text-underline-offset:5px; }
#menu-panel .header-nav a[aria-current]::after { content:"";flex-shrink:0;width:7px;height:7px;border-radius:50%;background:currentColor; }
#menu-panel .header-actions { display:flex; }
@media(max-width:700px) { .bahr-header .menu-toggle { display:flex; } }
@media(prefers-reduced-motion:reduce) { .bahr-header .menu-toggle span { transition:none; } }
html:not(.js) .bahr-header { flex-wrap:wrap; }
html:not(.js) .bahr-header .header-nav { flex-wrap:wrap; }
html:not(.js) .bahr-header :is(.menu-toggle,.theme-toggle) { display:none; }

/* Header groups are native disclosures: a panel hanging under its trigger on wider screens, expanding rows on phones. */
.bahr-header { --nav-tint:color-mix(in srgb,var(--ocean-shallow) 24%,var(--header-bg,var(--bg))); }
.bahr-header .nav-group>summary { display:flex;align-items:center;gap:.5rem;min-height:44px;padding-inline:.875rem;list-style:none;cursor:pointer;border-radius:2rem;transition:background-color .2s ease; }
.bahr-header .nav-group>summary::-webkit-details-marker { display:none; }
.bahr-header .nav-group>summary::after { content:"";flex-shrink:0;width:5px;height:5px;margin-top:-3px;border-right:1.5px solid;border-bottom:1.5px solid;rotate:45deg;opacity:.7;transition:rotate .25s ease,margin .25s ease; }
.bahr-header .nav-group[open]>summary::after { rotate:225deg;margin-top:3px; }
.bahr-header .nav-group>summary:is(:focus-visible,[aria-current]) span { text-decoration:underline;text-underline-offset:5px; }
.bahr-header .nav-panel { display:grid;gap:2px;padding-block:4px 12px; }
.bahr-header .nav-column { display:grid;gap:2px;align-content:start; }
.bahr-header .nav-heading { margin:.5rem .75rem .35rem;font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted); }
.bahr-header .header-nav .nav-panel a { display:flex;align-items:center;gap:.85rem;min-height:44px;padding:.5rem .75rem .5rem .5rem;font-size:1rem;line-height:1.3;text-decoration:none;border:0;border-radius:10px;transition:background-color .2s ease; }
.bahr-header .header-nav .nav-panel a:is(:hover,:focus-visible) { text-decoration:none;background:color-mix(in srgb,var(--ocean-shallow) 18%,transparent); }
.bahr-header .header-nav .nav-panel a[aria-current] strong { text-decoration:underline;text-underline-offset:4px; }
.bahr-header .nav-panel strong { margin-inline-end:auto;font-weight:inherit;white-space:nowrap; }
/* Services closes with a compact row to the overview of every service and product. */
.bahr-header .header-nav .nav-panel .nav-overview { grid-column:1/-1;justify-content:space-between;margin-top:4px;padding-inline:.75rem;font-size:.875rem;border-top:1px solid var(--line);border-radius:0 0 10px 10px; }
.bahr-header .header-nav .nav-panel .nav-overview[aria-current] { text-decoration:underline;text-underline-offset:4px; }
/* Each destination carries a small ocean tile that fills with deep navy as it is chosen. */
.bahr-header .nav-icon { display:grid;flex:none;place-items:center;width:36px;height:36px;color:var(--ocean-deep);border-radius:10px;
  background:linear-gradient(145deg,color-mix(in srgb,var(--ocean-shallow) 42%,transparent),color-mix(in srgb,var(--ocean-shallow) 12%,transparent));
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ocean-mid) 20%,transparent);transition:color .25s ease,background .25s ease,transform .25s ease,box-shadow .25s ease; }
.bahr-header .nav-icon svg { width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round; }
.bahr-header .header-nav .nav-panel a:is(:hover,:focus-visible) .nav-icon { color:#f5f5ef;background:linear-gradient(145deg,#3f7ac0,#12386b);box-shadow:0 8px 16px -10px #12386bcc; }
.bahr-header .header-nav .nav-action { border:1px solid var(--ink);margin-inline-start:.25rem;padding-inline:1.1rem;transition:background-color .2s ease,color .2s ease; }
.bahr-header .header-nav .nav-action:is(:hover,:focus-visible) { text-decoration:none;color:var(--bg);background:var(--ink); }
.bahr-header .header-nav .nav-action[aria-current] { text-decoration:none;box-shadow:inset 0 0 0 1px var(--ink); }
/* Touch screens keep :hover on the last tapped item, so only real pointers get hover fills. */
@media(hover:hover) {
  .bahr-header .nav-group>summary:hover,.bahr-header .header-nav>.nav-link:hover { text-decoration:none;background:color-mix(in srgb,var(--ink) 6%,transparent); }
}
@media(min-width:701px) {
  .bahr-header .header-nav { gap:0; }
  .bahr-header .nav-group { position:relative; }
  .bahr-header .nav-group[open]>summary { background:color-mix(in srgb,var(--ink) 7%,transparent); }
  /* Centred under its trigger and dropped to the bar's lower edge (16px padding, 1px rule, 8px air).
     script.js sets --shift when a centred panel would cross the screen edge; the notch stays on the trigger. */
  .bahr-header .nav-panel { --caret:calc(50% - var(--shift,0px));position:absolute;top:calc(100% + 25px);left:50%;translate:calc(-50% + var(--shift,0px)) 0;z-index:1;width:max-content;min-width:15rem;padding:8px;color:var(--ink);
    background:radial-gradient(120% 90% at var(--caret) 0%,var(--nav-tint),var(--header-bg,var(--bg)) 70%);border:1px solid var(--line);border-radius:14px;
    box-shadow:0 30px 60px -30px #0a1d3899,0 12px 24px -18px #0a1d3859,inset 0 1px 0 #ffffff80;transform-origin:var(--caret) 0; }
  .bahr-header .nav-columns { grid-template-columns:repeat(2,max-content);column-gap:8px; }
  html[data-theme=dark] .bahr-header .nav-panel { box-shadow:0 30px 60px -28px #000d,0 0 0 1px #aac9ed14,inset 0 1px 0 #ffffff14; }
  /* A notch points back at the trigger; it also bridges the gap so a pointer travelling down stays inside the group. */
  .bahr-header .nav-panel::after { content:"";position:absolute;top:-7px;left:var(--caret);width:12px;height:12px;translate:-50% 0;rotate:45deg;background:var(--nav-tint);border-top:1px solid var(--line);border-left:1px solid var(--line);border-top-left-radius:3px; }
  .bahr-header .nav-panel::before { content:"";position:absolute;inset-inline:0;bottom:100%;height:30px; }
  /* A small arrow slides in on the chosen row. */
  .bahr-header .header-nav .nav-panel a::after { content:"→";flex:none;width:1em;opacity:0;translate:-6px 0;color:var(--ocean-mid);transition:opacity .2s ease,translate .2s ease; }
  .bahr-header .header-nav .nav-panel a:is(:hover,:focus-visible)::after,.bahr-header .header-nav .nav-panel .nav-overview::after { opacity:1;translate:0 0; }
  /* While a panel is open the page behind it softens and dims; the header stays sharp above it.
     A click on the scrim only closes the panel, so it can never follow a link it covers. */
  body::after { content:"";position:fixed;inset:0;z-index:12;visibility:hidden;opacity:0;pointer-events:none;
    background:color-mix(in srgb,var(--bg) 38%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
    transition:opacity .25s ease,visibility 0s linear .25s; }
  body:has(.bahr-header .nav-group[open])::after { visibility:visible;opacity:1;pointer-events:auto;transition:opacity .25s ease; }
  .bahr-header:has(.nav-group[open]) { z-index:13; }
}
/* Mid widths keep the full bar on one line. */
@media(min-width:701px) and (max-width:1023px) {
  .bahr-header { gap:12px;padding-inline:18px; }
  .bahr-header .nav-group>summary,.bahr-header .header-nav>a { padding-inline:.6rem;font-size:.9375rem; }
  .bahr-header .nav-group>summary { gap:.4rem; }
  .bahr-header .header-nav .nav-action { padding-inline:.85rem; }
}
@media(min-width:701px) and (prefers-reduced-motion:no-preference) {
  .bahr-header .nav-group[open]>.nav-panel { animation:nav-panel-in .28s cubic-bezier(.2,.8,.2,1); }
  .bahr-header .nav-group[open] .nav-panel a { animation:nav-item-in .36s cubic-bezier(.2,.8,.2,1) both; }
  .bahr-header .nav-group[open] .nav-panel a:nth-of-type(2) { animation-delay:.05s; }
  .bahr-header .nav-group[open] .nav-column+.nav-column a { animation-delay:.07s; }
  .bahr-header .nav-group[open] .nav-column+.nav-column a:nth-of-type(2) { animation-delay:.12s; }
  .bahr-header .nav-group[open] .nav-overview { animation-delay:.16s; }
}
@keyframes nav-panel-in { from { opacity:0;transform:translateY(-6px) scale(.98); } }
@keyframes nav-item-in { from { opacity:0;transform:translateY(-4px); } }
@keyframes nav-pulse { 0% { box-shadow:0 0 0 0 color-mix(in srgb,var(--ocean-mid) 55%,transparent); } 70%,100% { box-shadow:0 0 0 6px transparent; } }
@media(prefers-reduced-motion:reduce) {
  .bahr-header :is(.nav-group>summary,.nav-group>summary::after,.nav-panel a,.nav-panel a::after,.nav-icon,.nav-action),body::after,body:has(.bahr-header .nav-group[open])::after { transition:none; }
}
/* Phones: each group is a full-width row whose links expand below it. */
#menu-panel .nav-group { border-bottom:1px solid var(--line); }
#menu-panel .nav-group>summary { justify-content:space-between;min-height:48px;padding:0 2px;font-size:1.125rem;line-height:1.3;border-radius:0; }
#menu-panel .nav-group>summary::after { width:7px;height:7px;margin-inline-end:6px; }
#menu-panel .nav-heading { margin-inline:8px; }
#menu-panel .header-nav .nav-panel a { justify-content:flex-start;gap:.85rem;min-height:48px;padding:.4rem 8px;font-size:1rem;border:0;border-radius:10px; }
#menu-panel .header-nav .nav-panel a[aria-current]::after { content:none; }
#menu-panel .header-nav .nav-panel .nav-overview { margin-top:4px;font-size:.9375rem;border-top:1px solid var(--line);border-radius:0; }
#menu-panel .nav-icon { width:34px;height:34px; }
#menu-panel .header-nav .nav-action { justify-content:center;min-height:48px;margin:16px 0 4px;border:1px solid var(--ink);border-radius:2rem; }
#menu-panel .header-nav .nav-action[aria-current]::after { content:none; }

/* Inner routes share a shell; case metadata and functional panels keep their layout. */
.inner-page { --page-space:clamp(3rem,6vw,6rem); }
.inner-page :is(.wrap,.portfolio-main,.home-pad) { width:100%;max-width:80rem;margin-inline:auto;padding-inline:clamp(20px,4.5vw,80px); }
.inner-page :is(.catalog-hero,.developer-hero,.opening,.work-opening,.portfolio-main,.qvs-page .hero) { padding-top:var(--page-space); }
.inner-page :is(.work-opening,.hero-copy) { text-align:center; }
.inner-page :is(.work-opening h1,.case-title,.hero-copy h1) { text-align:center; max-width:22ch;margin-inline:auto;font-size:clamp(3rem,1.6rem + 5.5vw,7rem);line-height:1.12;letter-spacing:-.025em; }
.inner-page :is(.work-intro,.case-lead,.hero-copy .intro) { text-align:center; max-width:58ch;margin-inline:auto; }
.inner-page .work-intro-actions { justify-content:center; }
.inner-page :is(.site-footer,.home-footer,footer.wrap,.footer) { border-top:1px solid var(--line);padding-block:3rem;margin-top:var(--page-space);background:transparent; }
.qvs-page .hero-grid { grid-template-columns:1fr; }
.qvs-page .hero-media { width:min(100%,48rem);margin-inline:auto; }

.inner-page .case-intro .section-label,.inner-page .case-meta { text-align:start; }
.inner-page :is(.work-intro .intro,.case-lead,.hero-copy .intro,.home-delivery-heading:has(h1)>p) { font-size:clamp(1.125rem,1rem + .6vw,1.5rem);line-height:1.65; }

/* Light surfaces use the shared sea-blue panels without tinting client artwork. */
html[data-theme=light] :is(.home-routes,.home-delivery,.portfolio-contact) {
  background:linear-gradient(135deg,color-mix(in srgb,var(--surface) 70%,transparent),transparent 70%);
}
html[data-theme=light] :is(.home-visual,.brief-aside,.developer-map) {
  background:var(--surface);
}
html[data-theme=light] :is(.home-footer,.site-footer) {
  background:linear-gradient(0deg,color-mix(in srgb,var(--surface) 80%,transparent),transparent);
}
html[data-theme=light] main :is(a,button):focus-visible {
  outline-color:var(--ink);
  outline-offset:5px;
}
@media (hover:hover) {
  html[data-theme=light] .home-pathways>a:is(:hover,:focus-visible) {
    background:linear-gradient(90deg,var(--surface-strong),transparent);
    border-color:var(--ink);
  }
}

/* Keep Arabic brand links comfortably tappable. */
footer :is(.brand,.wordmark,.home-brand) { display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px; }
footer :is(.brand,.wordmark,.home-brand) img { display:block;width:30px;height:28px;object-fit:contain; }
html[data-theme=dark] footer :is(.brand,.wordmark,.home-brand) img { filter:brightness(0) invert(.85); }

/* Optical alignment for the Arabic-only brand, retaining the 44px link target. */
.bahr-header .bahr-brand img,footer :is(.brand,.wordmark,.home-brand) img { width:38px;height:34px;object-fit:contain; }
.bahr-header .bahr-brand img { width:48px;height:42px;transform:translateY(-1px); }
html[data-theme=light] .bahr-brand img,html[data-theme=light] footer :is(.brand,.wordmark,.home-brand) img { filter:brightness(0) saturate(100%) invert(21%) sepia(32%) saturate(1627%) hue-rotate(178deg) brightness(90%) contrast(95%); }

/* Ocean details: a native sea-coloured scrollbar, a small breaking wave that rides reading progress, and quiet wave marks.
   The homepage shoreline stays the main expression; inner pages echo it with the same woodblock crest at small scale. */
/* The scrollbar track matches --header-bg, so the header reads as running edge to edge beside it. */
html:root,html[data-theme=light] { --ocean-deep:#12386b;--ocean-mid:#24559b;--ocean-shallow:#9db2cc;--ocean-track:#f7fafc; }
html[data-theme=dark] { --ocean-deep:#a9ccf8;--ocean-mid:#577cac;--ocean-shallow:#3c6192;--ocean-track:#09182b; }
/* Filled crest (static and live), trailing water and section mark per theme: layered navy water, a hooked lip and silver foam. */
html:root,html[data-theme=light] { --wave-crest:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 48 24%27%3E%3Cg transform=%27translate%280 0%29%27%3E%3Cpath fill=%27%2312386b%27 d=%27M0 24V19.2C8 17.6 15 12.6 20.5 7C24.5 3 30 1.2 35.5 2.4C40.5 3.6 43.6 7.2 42.8 10.6C42.2 13 39.4 13.6 38 11.8C37 10.4 37.6 8.8 39 8.6C37 6.6 33.2 6.8 31 9.6C27.6 13.8 29.8 19.6 35.4 22.4C38.6 23.8 41.6 24 44 24Z%27/%3E%3Cpath fill=%27%2324559b%27 d=%27M31 9.6C27.6 13.8 29.8 19.6 35.4 22.4C38.6 23.8 41.6 24 44 24H33C29 21.4 26.6 17 27.6 13.2C28.2 11.4 29.4 10.2 31 9.6Z%27/%3E%3Cpath fill=%27%237392bb%27 d=%27M27 24C33 21.4 38 20.6 42 21.2C44.6 21.6 46.6 22.6 48 24Z%27/%3E%3Cg fill=%27%23f5f5ef%27%3E%3Ccircle cx=%2736.4%27 cy=%2713.6%27 r=%27.55%27/%3E%3Ccircle cx=%2738.6%27 cy=%2715.8%27 r=%27.45%27/%3E%3Ccircle cx=%2735.6%27 cy=%2717.4%27 r=%27.4%27/%3E%3Ccircle cx=%2740.4%27 cy=%2714.2%27 r=%27.4%27/%3E%3C/g%3E%3Cg fill=%27none%27 stroke=%27%239db2cc%27 stroke-width=%27.7%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M22.6 9.6C24.6 14 26.6 18.6 30.6 22.4%27/%3E%3Cpath d=%27M18.6 12.6C20.8 16.2 23 19.6 26.4 22.6%27/%3E%3Cpath d=%27M14.2 15.6C16 18.4 18.2 20.8 21.2 23%27/%3E%3Cpath d=%27M27 7.2C27.6 9 28.4 10.2 29.4 11%27/%3E%3C/g%3E%3Cpath fill=%27%23f5f5ef%27 stroke=%27%2312386b%27 stroke-width=%27.45%27 stroke-linejoin=%27round%27 d=%27M15.6 12.2C19.8 6.4 25.8 1.6 33 1.3C39.2 1.1 43.8 4.6 44.2 9.2C44.5 12.2 42.2 14.4 39.6 13C41.4 12.6 42 10.9 40.9 9.7C40.8 11.4 39 12 38.2 10.6C39.4 9.8 39.4 7.9 37.8 7.3C37.6 9 35.6 9.4 35.1 7.8C34.4 9.2 32.2 9.2 32.2 7.4C31 8.9 29 8.6 29.1 6.9C27.6 8.4 25.8 8.2 26 6.5C24.6 8.4 22.4 8.8 22.5 7.4C20.6 9.6 18.4 11.2 15.6 12.2Z%27/%3E%3Cg fill=%27%23f5f5ef%27 stroke=%27%2312386b%27 stroke-width=%27.3%27%3E%3Ccircle cx=%2745.9%27 cy=%276.2%27 r=%27.85%27/%3E%3Ccircle cx=%2746.9%27 cy=%279.6%27 r=%27.65%27/%3E%3Ccircle cx=%2745.2%27 cy=%273.2%27 r=%27.6%27/%3E%3Ccircle cx=%2747.3%27 cy=%2713%27 r=%27.5%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");--wave-water:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 96 24%27%3E%3Cpath fill=%27%237392bb%27 d=%27M0 24V19.4C9 17.8 18 17.6 27 18.8C36 20 44 19.6 53 18.2C63 16.8 74 17.4 84 18.9C88 19.5 92 19.6 96 19.4V24Z%27/%3E%3Cpath fill=%27%2312386b%27 d=%27M0 24V20.8C14 20 30 21.6 48 20.6C64 19.8 80 21.4 96 20.8V24Z%27/%3E%3Cpath fill=%27none%27 stroke=%27%239db2cc%27 stroke-width=%27.6%27 stroke-linecap=%27round%27 d=%27M9 22.6C14 21.9 19 21.9 24 22.5M57 22.3C61 21.8 66 21.9 70 22.4M80 23C82 22.7 85 22.7 87 23%27/%3E%3Cpath fill=%27%23f5f5ef%27 stroke=%27%2312386b%27 stroke-width=%27.3%27 d=%27M47 18.6C49 17.4 52 17.2 54.4 17.9C52.6 18 51.2 18.6 50.4 19.3C49.6 18.8 48.4 18.6 47 18.6Z%27/%3E%3Cellipse cx=%2716%27 cy=%2718.1%27 rx=%271.2%27 ry=%27.45%27 fill=%27%23f5f5ef%27 stroke=%27%2312386b%27 stroke-width=%27.3%27/%3E%3C/svg%3E");--wave-motif:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 120 24%27%3E%3Cpath fill=%27%237392bb%27 d=%27M0 24C14 23.4 26 22 36 20.4V24ZM84 24C94 22.6 104 22.4 120 24Z%27/%3E%3Cpath fill=%27%2312386b%27 d=%27M4 24C16 23.6 28 21.8 36.4 19.4V24Z%27/%3E%3Cg transform=%27translate%2836 0%29%27%3E%3Cpath fill=%27%2312386b%27 d=%27M0 24V19.2C8 17.6 15 12.6 20.5 7C24.5 3 30 1.2 35.5 2.4C40.5 3.6 43.6 7.2 42.8 10.6C42.2 13 39.4 13.6 38 11.8C37 10.4 37.6 8.8 39 8.6C37 6.6 33.2 6.8 31 9.6C27.6 13.8 29.8 19.6 35.4 22.4C38.6 23.8 41.6 24 44 24Z%27/%3E%3Cpath fill=%27%2324559b%27 d=%27M31 9.6C27.6 13.8 29.8 19.6 35.4 22.4C38.6 23.8 41.6 24 44 24H33C29 21.4 26.6 17 27.6 13.2C28.2 11.4 29.4 10.2 31 9.6Z%27/%3E%3Cpath fill=%27%237392bb%27 d=%27M27 24C33 21.4 38 20.6 42 21.2C44.6 21.6 46.6 22.6 48 24Z%27/%3E%3Cg fill=%27%23f5f5ef%27%3E%3Ccircle cx=%2736.4%27 cy=%2713.6%27 r=%27.55%27/%3E%3Ccircle cx=%2738.6%27 cy=%2715.8%27 r=%27.45%27/%3E%3Ccircle cx=%2735.6%27 cy=%2717.4%27 r=%27.4%27/%3E%3Ccircle cx=%2740.4%27 cy=%2714.2%27 r=%27.4%27/%3E%3C/g%3E%3Cg fill=%27none%27 stroke=%27%239db2cc%27 stroke-width=%27.7%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M22.6 9.6C24.6 14 26.6 18.6 30.6 22.4%27/%3E%3Cpath d=%27M18.6 12.6C20.8 16.2 23 19.6 26.4 22.6%27/%3E%3Cpath d=%27M14.2 15.6C16 18.4 18.2 20.8 21.2 23%27/%3E%3Cpath d=%27M27 7.2C27.6 9 28.4 10.2 29.4 11%27/%3E%3C/g%3E%3Cpath fill=%27%23f5f5ef%27 stroke=%27%2312386b%27 stroke-width=%27.45%27 stroke-linejoin=%27round%27 d=%27M15.6 12.2C19.8 6.4 25.8 1.6 33 1.3C39.2 1.1 43.8 4.6 44.2 9.2C44.5 12.2 42.2 14.4 39.6 13C41.4 12.6 42 10.9 40.9 9.7C40.8 11.4 39 12 38.2 10.6C39.4 9.8 39.4 7.9 37.8 7.3C37.6 9 35.6 9.4 35.1 7.8C34.4 9.2 32.2 9.2 32.2 7.4C31 8.9 29 8.6 29.1 6.9C27.6 8.4 25.8 8.2 26 6.5C24.6 8.4 22.4 8.8 22.5 7.4C20.6 9.6 18.4 11.2 15.6 12.2Z%27/%3E%3Cg fill=%27%23f5f5ef%27 stroke=%27%2312386b%27 stroke-width=%27.3%27%3E%3Ccircle cx=%2745.9%27 cy=%276.2%27 r=%27.85%27/%3E%3Ccircle cx=%2746.9%27 cy=%279.6%27 r=%27.65%27/%3E%3Ccircle cx=%2745.2%27 cy=%273.2%27 r=%27.6%27/%3E%3Ccircle cx=%2747.3%27 cy=%2713%27 r=%27.5%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");--wave-crest-live:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 48 24%27%3E%3Cstyle%3E.w%7Btransform-origin:24px 24px%3Banimation:w 5.6s ease-in-out infinite%7D.l%7Btransform-origin:31px 5px%3Banimation:l 5.6s ease-in-out infinite%7D.f%7Banimation:f 5.6s ease-in-out infinite%7D.s circle%7Bopacity:0%3Banimation:s 5.6s ease-out infinite%7D.s circle:nth-child%282%29%7Banimation-delay:.12s%7D.s circle:nth-child%283%29%7Banimation-delay:.22s%7D.s circle:nth-child%284%29%7Banimation-delay:.32s%7D.s circle:nth-child%285%29%7Banimation-delay:.18s%7D.d circle%7Banimation:d 5.6s ease-in-out infinite%7D.d circle:nth-child%282n%29%7Banimation-delay:-1.4s%7D%40keyframes w%7B0%25,100%25%7Btransform:scale%281,.84%29 skewX%28-4deg%29%7D45%25%7Btransform:scale%281,.99%29 skewX%281deg%29%7D62%25%7Btransform:scale%281,.97%29 skewX%283deg%29%7D80%25%7Btransform:scale%281,.91%29 skewX%280%29%7D%7D%40keyframes l%7B0%25,100%25%7Btransform:rotate%28-7deg%29%7D45%25%7Btransform:rotate%280%29%7D62%25%7Btransform:rotate%289deg%29 translate%280,.6px%29%7D80%25%7Btransform:rotate%282deg%29%7D%7D%40keyframes f%7B0%25,100%25%7Btransform:translate%28-1.5px,.4px%29%7D50%25%7Btransform:translate%281.5px,-.3px%29%7D%7D%40keyframes s%7B0%25,52%25%7Bopacity:0%3Btransform:translate%28-1.6px,1.6px%29%7D60%25%7Bopacity:1%7D82%25%7Bopacity:0%3Btransform:translate%28.9px,-1.2px%29%7D100%25%7Bopacity:0%7D%7D%40keyframes d%7B0%25,100%25%7Bopacity:.25%7D50%25%7Bopacity:1%7D%7D%3C/style%3E%3Cg class=%27w%27%3E%3Cpath fill=%27%2312386b%27 d=%27M0 24V19.2C8 17.6 15 12.6 20.5 7C24.5 3 30 1.2 35.5 2.4C40.5 3.6 43.6 7.2 42.8 10.6C42.2 13 39.4 13.6 38 11.8C37 10.4 37.6 8.8 39 8.6C37 6.6 33.2 6.8 31 9.6C27.6 13.8 29.8 19.6 35.4 22.4C38.6 23.8 41.6 24 44 24Z%27/%3E%3Cpath fill=%27%2324559b%27 d=%27M31 9.6C27.6 13.8 29.8 19.6 35.4 22.4C38.6 23.8 41.6 24 44 24H33C29 21.4 26.6 17 27.6 13.2C28.2 11.4 29.4 10.2 31 9.6Z%27/%3E%3Cg fill=%27none%27 stroke=%27%239db2cc%27 stroke-width=%27.7%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M22.6 9.6C24.6 14 26.6 18.6 30.6 22.4%27/%3E%3Cpath d=%27M18.6 12.6C20.8 16.2 23 19.6 26.4 22.6%27/%3E%3Cpath d=%27M14.2 15.6C16 18.4 18.2 20.8 21.2 23%27/%3E%3Cpath d=%27M27 7.2C27.6 9 28.4 10.2 29.4 11%27/%3E%3C/g%3E%3Cg class=%27d%27 fill=%27%23f5f5ef%27%3E%3Ccircle cx=%2736.4%27 cy=%2713.6%27 r=%27.55%27/%3E%3Ccircle cx=%2738.6%27 cy=%2715.8%27 r=%27.45%27/%3E%3Ccircle cx=%2735.6%27 cy=%2717.4%27 r=%27.4%27/%3E%3Ccircle cx=%2740.4%27 cy=%2714.2%27 r=%27.4%27/%3E%3C/g%3E%3Cg class=%27l%27%3E%3Cpath fill=%27%23f5f5ef%27 stroke=%27%2312386b%27 stroke-width=%27.45%27 stroke-linejoin=%27round%27 d=%27M15.6 12.2C19.8 6.4 25.8 1.6 33 1.3C39.2 1.1 43.8 4.6 44.2 9.2C44.5 12.2 42.2 14.4 39.6 13C41.4 12.6 42 10.9 40.9 9.7C40.8 11.4 39 12 38.2 10.6C39.4 9.8 39.4 7.9 37.8 7.3C37.6 9 35.6 9.4 35.1 7.8C34.4 9.2 32.2 9.2 32.2 7.4C31 8.9 29 8.6 29.1 6.9C27.6 8.4 25.8 8.2 26 6.5C24.6 8.4 22.4 8.8 22.5 7.4C20.6 9.6 18.4 11.2 15.6 12.2Z%27/%3E%3C/g%3E%3C/g%3E%3Cg class=%27f%27%3E%3Cpath fill=%27%237392bb%27 d=%27M27 24C33 21.4 38 20.6 42 21.2C44.6 21.6 46.6 22.6 48 24Z%27/%3E%3C/g%3E%3Cg class=%27s%27 fill=%27%23f5f5ef%27 stroke=%27%2312386b%27 stroke-width=%27.3%27%3E%3Ccircle cx=%2745.9%27 cy=%276.2%27 r=%27.95%27/%3E%3Ccircle cx=%2746.9%27 cy=%279.8%27 r=%27.75%27/%3E%3Ccircle cx=%2745%27 cy=%273%27 r=%27.7%27/%3E%3Ccircle cx=%2747.3%27 cy=%2713%27 r=%27.55%27/%3E%3Ccircle cx=%2743.6%27 cy=%271.4%27 r=%27.5%27/%3E%3C/g%3E%3C/svg%3E"); }
html[data-theme=dark] { --wave-crest:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 48 24%27%3E%3Cg transform=%27translate%280 0%29%27%3E%3Cpath fill=%27%233c6192%27 d=%27M0 24V19.2C8 17.6 15 12.6 20.5 7C24.5 3 30 1.2 35.5 2.4C40.5 3.6 43.6 7.2 42.8 10.6C42.2 13 39.4 13.6 38 11.8C37 10.4 37.6 8.8 39 8.6C37 6.6 33.2 6.8 31 9.6C27.6 13.8 29.8 19.6 35.4 22.4C38.6 23.8 41.6 24 44 24Z%27/%3E%3Cpath fill=%27%2333598a%27 d=%27M31 9.6C27.6 13.8 29.8 19.6 35.4 22.4C38.6 23.8 41.6 24 44 24H33C29 21.4 26.6 17 27.6 13.2C28.2 11.4 29.4 10.2 31 9.6Z%27/%3E%3Cpath fill=%27%2312386b%27 d=%27M27 24C33 21.4 38 20.6 42 21.2C44.6 21.6 46.6 22.6 48 24Z%27/%3E%3Cg fill=%27%23edf2f8%27%3E%3Ccircle cx=%2736.4%27 cy=%2713.6%27 r=%27.55%27/%3E%3Ccircle cx=%2738.6%27 cy=%2715.8%27 r=%27.45%27/%3E%3Ccircle cx=%2735.6%27 cy=%2717.4%27 r=%27.4%27/%3E%3Ccircle cx=%2740.4%27 cy=%2714.2%27 r=%27.4%27/%3E%3C/g%3E%3Cg fill=%27none%27 stroke=%27%23a9ccf8%27 stroke-width=%27.7%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M22.6 9.6C24.6 14 26.6 18.6 30.6 22.4%27/%3E%3Cpath d=%27M18.6 12.6C20.8 16.2 23 19.6 26.4 22.6%27/%3E%3Cpath d=%27M14.2 15.6C16 18.4 18.2 20.8 21.2 23%27/%3E%3Cpath d=%27M27 7.2C27.6 9 28.4 10.2 29.4 11%27/%3E%3C/g%3E%3Cpath fill=%27%23edf2f8%27 stroke=%27%23cfe0f4%27 stroke-width=%27.45%27 stroke-linejoin=%27round%27 d=%27M15.6 12.2C19.8 6.4 25.8 1.6 33 1.3C39.2 1.1 43.8 4.6 44.2 9.2C44.5 12.2 42.2 14.4 39.6 13C41.4 12.6 42 10.9 40.9 9.7C40.8 11.4 39 12 38.2 10.6C39.4 9.8 39.4 7.9 37.8 7.3C37.6 9 35.6 9.4 35.1 7.8C34.4 9.2 32.2 9.2 32.2 7.4C31 8.9 29 8.6 29.1 6.9C27.6 8.4 25.8 8.2 26 6.5C24.6 8.4 22.4 8.8 22.5 7.4C20.6 9.6 18.4 11.2 15.6 12.2Z%27/%3E%3Cg fill=%27%23edf2f8%27 stroke=%27%23cfe0f4%27 stroke-width=%27.3%27%3E%3Ccircle cx=%2745.9%27 cy=%276.2%27 r=%27.85%27/%3E%3Ccircle cx=%2746.9%27 cy=%279.6%27 r=%27.65%27/%3E%3Ccircle cx=%2745.2%27 cy=%273.2%27 r=%27.6%27/%3E%3Ccircle cx=%2747.3%27 cy=%2713%27 r=%27.5%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");--wave-water:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 96 24%27%3E%3Cpath fill=%27%2312386b%27 d=%27M0 24V19.4C9 17.8 18 17.6 27 18.8C36 20 44 19.6 53 18.2C63 16.8 74 17.4 84 18.9C88 19.5 92 19.6 96 19.4V24Z%27/%3E%3Cpath fill=%27%233c6192%27 d=%27M0 24V20.8C14 20 30 21.6 48 20.6C64 19.8 80 21.4 96 20.8V24Z%27/%3E%3Cpath fill=%27none%27 stroke=%27%23a9ccf8%27 stroke-width=%27.6%27 stroke-linecap=%27round%27 d=%27M9 22.6C14 21.9 19 21.9 24 22.5M57 22.3C61 21.8 66 21.9 70 22.4M80 23C82 22.7 85 22.7 87 23%27/%3E%3Cpath fill=%27%23edf2f8%27 stroke=%27%23cfe0f4%27 stroke-width=%27.3%27 d=%27M47 18.6C49 17.4 52 17.2 54.4 17.9C52.6 18 51.2 18.6 50.4 19.3C49.6 18.8 48.4 18.6 47 18.6Z%27/%3E%3Cellipse cx=%2716%27 cy=%2718.1%27 rx=%271.2%27 ry=%27.45%27 fill=%27%23edf2f8%27 stroke=%27%23cfe0f4%27 stroke-width=%27.3%27/%3E%3C/svg%3E");--wave-motif:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 120 24%27%3E%3Cpath fill=%27%2312386b%27 d=%27M0 24C14 23.4 26 22 36 20.4V24ZM84 24C94 22.6 104 22.4 120 24Z%27/%3E%3Cpath fill=%27%233c6192%27 d=%27M4 24C16 23.6 28 21.8 36.4 19.4V24Z%27/%3E%3Cg transform=%27translate%2836 0%29%27%3E%3Cpath fill=%27%233c6192%27 d=%27M0 24V19.2C8 17.6 15 12.6 20.5 7C24.5 3 30 1.2 35.5 2.4C40.5 3.6 43.6 7.2 42.8 10.6C42.2 13 39.4 13.6 38 11.8C37 10.4 37.6 8.8 39 8.6C37 6.6 33.2 6.8 31 9.6C27.6 13.8 29.8 19.6 35.4 22.4C38.6 23.8 41.6 24 44 24Z%27/%3E%3Cpath fill=%27%2333598a%27 d=%27M31 9.6C27.6 13.8 29.8 19.6 35.4 22.4C38.6 23.8 41.6 24 44 24H33C29 21.4 26.6 17 27.6 13.2C28.2 11.4 29.4 10.2 31 9.6Z%27/%3E%3Cpath fill=%27%2312386b%27 d=%27M27 24C33 21.4 38 20.6 42 21.2C44.6 21.6 46.6 22.6 48 24Z%27/%3E%3Cg fill=%27%23edf2f8%27%3E%3Ccircle cx=%2736.4%27 cy=%2713.6%27 r=%27.55%27/%3E%3Ccircle cx=%2738.6%27 cy=%2715.8%27 r=%27.45%27/%3E%3Ccircle cx=%2735.6%27 cy=%2717.4%27 r=%27.4%27/%3E%3Ccircle cx=%2740.4%27 cy=%2714.2%27 r=%27.4%27/%3E%3C/g%3E%3Cg fill=%27none%27 stroke=%27%23a9ccf8%27 stroke-width=%27.7%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M22.6 9.6C24.6 14 26.6 18.6 30.6 22.4%27/%3E%3Cpath d=%27M18.6 12.6C20.8 16.2 23 19.6 26.4 22.6%27/%3E%3Cpath d=%27M14.2 15.6C16 18.4 18.2 20.8 21.2 23%27/%3E%3Cpath d=%27M27 7.2C27.6 9 28.4 10.2 29.4 11%27/%3E%3C/g%3E%3Cpath fill=%27%23edf2f8%27 stroke=%27%23cfe0f4%27 stroke-width=%27.45%27 stroke-linejoin=%27round%27 d=%27M15.6 12.2C19.8 6.4 25.8 1.6 33 1.3C39.2 1.1 43.8 4.6 44.2 9.2C44.5 12.2 42.2 14.4 39.6 13C41.4 12.6 42 10.9 40.9 9.7C40.8 11.4 39 12 38.2 10.6C39.4 9.8 39.4 7.9 37.8 7.3C37.6 9 35.6 9.4 35.1 7.8C34.4 9.2 32.2 9.2 32.2 7.4C31 8.9 29 8.6 29.1 6.9C27.6 8.4 25.8 8.2 26 6.5C24.6 8.4 22.4 8.8 22.5 7.4C20.6 9.6 18.4 11.2 15.6 12.2Z%27/%3E%3Cg fill=%27%23edf2f8%27 stroke=%27%23cfe0f4%27 stroke-width=%27.3%27%3E%3Ccircle cx=%2745.9%27 cy=%276.2%27 r=%27.85%27/%3E%3Ccircle cx=%2746.9%27 cy=%279.6%27 r=%27.65%27/%3E%3Ccircle cx=%2745.2%27 cy=%273.2%27 r=%27.6%27/%3E%3Ccircle cx=%2747.3%27 cy=%2713%27 r=%27.5%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");--wave-crest-live:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 48 24%27%3E%3Cstyle%3E.w%7Btransform-origin:24px 24px%3Banimation:w 5.6s ease-in-out infinite%7D.l%7Btransform-origin:31px 5px%3Banimation:l 5.6s ease-in-out infinite%7D.f%7Banimation:f 5.6s ease-in-out infinite%7D.s circle%7Bopacity:0%3Banimation:s 5.6s ease-out infinite%7D.s circle:nth-child%282%29%7Banimation-delay:.12s%7D.s circle:nth-child%283%29%7Banimation-delay:.22s%7D.s circle:nth-child%284%29%7Banimation-delay:.32s%7D.s circle:nth-child%285%29%7Banimation-delay:.18s%7D.d circle%7Banimation:d 5.6s ease-in-out infinite%7D.d circle:nth-child%282n%29%7Banimation-delay:-1.4s%7D%40keyframes w%7B0%25,100%25%7Btransform:scale%281,.84%29 skewX%28-4deg%29%7D45%25%7Btransform:scale%281,.99%29 skewX%281deg%29%7D62%25%7Btransform:scale%281,.97%29 skewX%283deg%29%7D80%25%7Btransform:scale%281,.91%29 skewX%280%29%7D%7D%40keyframes l%7B0%25,100%25%7Btransform:rotate%28-7deg%29%7D45%25%7Btransform:rotate%280%29%7D62%25%7Btransform:rotate%289deg%29 translate%280,.6px%29%7D80%25%7Btransform:rotate%282deg%29%7D%7D%40keyframes f%7B0%25,100%25%7Btransform:translate%28-1.5px,.4px%29%7D50%25%7Btransform:translate%281.5px,-.3px%29%7D%7D%40keyframes s%7B0%25,52%25%7Bopacity:0%3Btransform:translate%28-1.6px,1.6px%29%7D60%25%7Bopacity:1%7D82%25%7Bopacity:0%3Btransform:translate%28.9px,-1.2px%29%7D100%25%7Bopacity:0%7D%7D%40keyframes d%7B0%25,100%25%7Bopacity:.25%7D50%25%7Bopacity:1%7D%7D%3C/style%3E%3Cg class=%27w%27%3E%3Cpath fill=%27%233c6192%27 d=%27M0 24V19.2C8 17.6 15 12.6 20.5 7C24.5 3 30 1.2 35.5 2.4C40.5 3.6 43.6 7.2 42.8 10.6C42.2 13 39.4 13.6 38 11.8C37 10.4 37.6 8.8 39 8.6C37 6.6 33.2 6.8 31 9.6C27.6 13.8 29.8 19.6 35.4 22.4C38.6 23.8 41.6 24 44 24Z%27/%3E%3Cpath fill=%27%2333598a%27 d=%27M31 9.6C27.6 13.8 29.8 19.6 35.4 22.4C38.6 23.8 41.6 24 44 24H33C29 21.4 26.6 17 27.6 13.2C28.2 11.4 29.4 10.2 31 9.6Z%27/%3E%3Cg fill=%27none%27 stroke=%27%23a9ccf8%27 stroke-width=%27.7%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M22.6 9.6C24.6 14 26.6 18.6 30.6 22.4%27/%3E%3Cpath d=%27M18.6 12.6C20.8 16.2 23 19.6 26.4 22.6%27/%3E%3Cpath d=%27M14.2 15.6C16 18.4 18.2 20.8 21.2 23%27/%3E%3Cpath d=%27M27 7.2C27.6 9 28.4 10.2 29.4 11%27/%3E%3C/g%3E%3Cg class=%27d%27 fill=%27%23edf2f8%27%3E%3Ccircle cx=%2736.4%27 cy=%2713.6%27 r=%27.55%27/%3E%3Ccircle cx=%2738.6%27 cy=%2715.8%27 r=%27.45%27/%3E%3Ccircle cx=%2735.6%27 cy=%2717.4%27 r=%27.4%27/%3E%3Ccircle cx=%2740.4%27 cy=%2714.2%27 r=%27.4%27/%3E%3C/g%3E%3Cg class=%27l%27%3E%3Cpath fill=%27%23edf2f8%27 stroke=%27%23cfe0f4%27 stroke-width=%27.45%27 stroke-linejoin=%27round%27 d=%27M15.6 12.2C19.8 6.4 25.8 1.6 33 1.3C39.2 1.1 43.8 4.6 44.2 9.2C44.5 12.2 42.2 14.4 39.6 13C41.4 12.6 42 10.9 40.9 9.7C40.8 11.4 39 12 38.2 10.6C39.4 9.8 39.4 7.9 37.8 7.3C37.6 9 35.6 9.4 35.1 7.8C34.4 9.2 32.2 9.2 32.2 7.4C31 8.9 29 8.6 29.1 6.9C27.6 8.4 25.8 8.2 26 6.5C24.6 8.4 22.4 8.8 22.5 7.4C20.6 9.6 18.4 11.2 15.6 12.2Z%27/%3E%3C/g%3E%3C/g%3E%3Cg class=%27f%27%3E%3Cpath fill=%27%2312386b%27 d=%27M27 24C33 21.4 38 20.6 42 21.2C44.6 21.6 46.6 22.6 48 24Z%27/%3E%3C/g%3E%3Cg class=%27s%27 fill=%27%23edf2f8%27 stroke=%27%23cfe0f4%27 stroke-width=%27.3%27%3E%3Ccircle cx=%2745.9%27 cy=%276.2%27 r=%27.95%27/%3E%3Ccircle cx=%2746.9%27 cy=%279.8%27 r=%27.75%27/%3E%3Ccircle cx=%2745%27 cy=%273%27 r=%27.7%27/%3E%3Ccircle cx=%2747.3%27 cy=%2713%27 r=%27.55%27/%3E%3Ccircle cx=%2743.6%27 cy=%271.4%27 r=%27.5%27/%3E%3C/g%3E%3C/svg%3E"); }
@media not (forced-colors:active) {
  @supports not selector(::-webkit-scrollbar) {
    html { scrollbar-color:var(--ocean-mid) var(--ocean-track); }
    body { scrollbar-color:auto; }
  }
  html::-webkit-scrollbar { width:12px;height:12px;background:var(--ocean-track); }
  html::-webkit-scrollbar-thumb { min-height:48px;border:3px solid transparent;border-radius:12px;background:linear-gradient(var(--ocean-mid),var(--ocean-deep)) padding-box; }
  html::-webkit-scrollbar-thumb:hover { border-width:2px; }
  html::-webkit-scrollbar-corner { background:var(--ocean-track); }
}

/* The crest travels along the header's lower edge with reading progress, water filling in behind it.
   It sits under the header's own content (negative z-index inside the sticky header). Its track rests on the bottom   border, so the crest clears the 44px controls and their focus outline instead of rising behind them. */
.bahr-header { --crest:14px; }
@supports (animation-timeline:scroll()) {
  @media (prefers-reduced-motion:no-preference) and (not (forced-colors:active)) {
    .bahr-header::before,.bahr-header::after {
      content:"";position:absolute;bottom:0;height:var(--crest);pointer-events:none;
      animation:linear both;animation-timeline:scroll(root block);
    }
    .bahr-header::before { z-index:-1;width:calc(var(--crest) * 2);background:var(--wave-crest) center/calc(var(--crest) * 2) var(--crest) no-repeat;animation-name:ocean-crest; }
    .bahr-header::after { z-index:-2;inset-inline-start:0;background:var(--wave-water) 0 100%/calc(var(--crest) * 4) var(--crest) repeat-x;animation-name:ocean-wake; }
    html[dir=rtl] .bahr-header::before { transform:scaleX(-1); }
    /* While the shared background motion is live (on screen, tab visible), the crest itself breaks:
       it swells, curls its lip, throws spray and settles inside its own SVG, and the water behind drifts. */
    html:has(.bahr-ambient.is-alive) .bahr-header::before { background-image:var(--wave-crest-live); }
    html:has(.bahr-ambient.is-alive) .bahr-header::after { animation:ocean-wake linear both,ocean-drift 7s linear infinite;animation-timeline:scroll(root block),auto; }
  }
}
@keyframes ocean-drift { to { background-position-x:calc(var(--crest) * -4); } }
@keyframes ocean-crest { from { inset-inline-start:0; } to { inset-inline-start:calc(100% - var(--crest) * 2); } }
@keyframes ocean-wake { from { width:6px; } to { width:calc(100% - var(--crest) * 1.75); } }

/* One chapter mark mid-page and one before the close: a small breaking wave resting on the section's hairline. */
.catalog-page :is(.solution-chooser+.solution-row,.catalog-cta),
.developers-page :is(.developer-offerings,.site-footer),
.work-index :is(.archive,.portfolio-contact),
.portfolio-page .portfolio-contact,
.qvs-page :is(.showcase,.next),
.contact-page .next { --wave-offset:0px;--wave-inset:0px; }
.developers-page .developer-offerings { --wave-offset:-2rem; }
/* The contact form panel runs to its section edge, so this mark settles just inside the next section. */
.contact-page .next { --wave-offset:3rem; }
.work-index :is(.archive,.portfolio-contact) { --wave-offset:calc(clamp(5rem,12vw,12rem) / -2 + 12px); }
.developers-page .site-footer,.qvs-page :is(.showcase,.next),.contact-page .next { --wave-inset:clamp(20px,4.5vw,80px); }
.portfolio-page .portfolio-contact { --wave-inset:var(--padding,0px); }
@media not (forced-colors:active) {
  .catalog-page :is(.solution-chooser+.solution-row,.catalog-cta),
  .developers-page :is(.developer-offerings,.site-footer),
  .work-index :is(.archive,.portfolio-contact),
  .portfolio-page .portfolio-contact,
  .qvs-page :is(.showcase,.next),
  .contact-page .next { position:relative; }
  .catalog-page :is(.solution-chooser+.solution-row,.catalog-cta)::before,
  .developers-page :is(.developer-offerings,.site-footer)::before,
  .work-index :is(.archive,.portfolio-contact)::before,
  .portfolio-page .portfolio-contact::before,
  .qvs-page :is(.showcase,.next)::before,
  .contact-page .next::before {
    content:"";position:absolute;top:calc(var(--wave-offset) - 24.5px);inset-inline-start:var(--wave-inset);width:120px;height:24px;pointer-events:none;
    background:var(--wave-motif) center/120px 24px no-repeat;
  }
  html[dir=rtl] :is(.catalog-page,.developers-page,.work-index,.portfolio-page,.qvs-page,.contact-page) :is(.solution-row,.catalog-cta,.developer-offerings,.site-footer,.archive,.portfolio-contact,.showcase,.next)::before { transform:scaleX(-1); }
}
@media print { .bahr-header::before,.bahr-header::after { display:none; } }

/* Footer social links share one cell so grid footers keep their columns. */
.footer-social { display:flex;flex-wrap:wrap;align-items:center;gap:0 1.25rem; }
.footer-social a { display:inline-flex;align-items:center;min-height:44px; }
.footer-top .footer-social { align-items:start; }
.footer-top .footer-social a { min-height:0; }
