/* Home introduces Bahr AI; detail belongs to the destination pages. */
.home-gateway .home-opening-grid{min-height:0;margin-block:clamp(3rem,7vw,6rem);align-items:center}
/* Enlarged text breaks a word that cannot fit the column rather than running under the page edge, which overflow-x:clip would hide. */
.home-gateway h1{color:var(--ink);font-size:clamp(2.5rem,1.5rem + 4.6vw,4.5rem);overflow-wrap:break-word}
.home-gateway .home-opening-copy{align-self:center}
.home-gateway .home-visual{overflow:hidden;min-height:260px}
.home-gateway .home-mark{width:min(52%,240px)}
html[data-theme=dark] .home-gateway .home-mark img{filter:brightness(0) invert(1)}

.home-gateway .home-routes,.home-gateway .home-contact{background:transparent;color:var(--ink)}
.home-gateway .home-route-list{display:grid;grid-template-columns:1fr;gap:2rem}
.home-gateway .home-route,.home-gateway .home-route:hover,.home-gateway .home-route:focus-within{display:flex;flex-direction:column;align-items:flex-start;min-height:0;gap:0;background:transparent;color:var(--ink);border:0;border-top:1px solid var(--line);border-radius:0;padding:1.5rem 0}
.home-gateway .home-route h3{font-size:clamp(1.6rem,2.4vw,2.5rem);margin:0 0 1rem}
.home-gateway .home-route p{margin-bottom:1rem}
.home-gateway .home-feature-grid{grid-template-columns:1fr;gap:2rem;margin-block:3rem 5rem}
.home-gateway .home-feature-copy{min-width:0}
/* Project names sit below the Client work title. */
.home-gateway .home-feature-copy h3{font-size:clamp(1.75rem,1.2rem + 1.4vw,2.5rem);margin-bottom:1.5rem}
.home-gateway .home-project-media{margin:0;min-width:0;border:1px solid var(--line);border-radius:4px;overflow:hidden}
.home-gateway .home-project-media img{display:block;width:100%;height:auto}
.home-gateway .home-about{padding-block:var(--section-space);border-top:1px solid var(--line)}
.home-gateway .home-about p{font-size:clamp(1.125rem,1rem + .3vw,1.3rem);line-height:1.65;max-width:38rem;margin-bottom:1.5rem}
.home-gateway .home-contact h2{max-width:64rem;margin-bottom:2rem}
@media(min-width:768px){
 .home-gateway .home-route-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(2rem,5vw,4rem)}
 .home-gateway .home-feature-grid{grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:4rem;align-items:center}
 .home-gateway .home-feature-grid:nth-of-type(even){grid-template-columns:minmax(0,3fr) minmax(0,2fr)}
 .home-gateway .home-feature-grid:nth-of-type(even) .home-feature-copy{grid-column:2;grid-row:1}
 .home-gateway .home-feature-grid:nth-of-type(even) .home-project-media{grid-column:1;grid-row:1}
}

.home-liquid-stage .sphere { -webkit-mask:url("logo/bahr-logo-dark.svg") center / 94% auto no-repeat;mask:url("logo/bahr-logo-dark.svg") center / 94% auto no-repeat; }

.home-liquid-stage,.home-liquid-stage .hero-art,.home-liquid-stage .sphere.liquid-ready { background:transparent; }
.home-liquid-stage .sphere.liquid-ready { -webkit-mask:none;mask:none; }

html[data-theme] .home-gateway .home-visual { background:transparent; }
.home-gateway .home-visual::before { display:none; }

.home-gateway .home-mark { display:grid;width:min(70vw,320px);margin:0 auto;aspect-ratio:1;pointer-events:auto; }
.home-gateway .home-mark img { width:94%;height:auto; }
.home-gateway.logo-transition-ready .bahr-brand { visibility:hidden; }
.home-gateway.logo-transition-ready.header-brand-visible .bahr-brand,.home-gateway.logo-transition-ready .bahr-brand:focus-within { visibility:visible; }

.home-gateway.header-brand-visible .home-mark { visibility:hidden; }

/* The page title group starts on the content column at every width; the mark, shore and scroll cue keep their places. */
.home-gateway .home-opening-copy { text-align:start; }
.home-gateway :is(h1,.home-intro) { margin-inline:0; }
.home-gateway .home-pathways { justify-content:flex-start; }
@media(min-width:900px) {
 .home-gateway .home-opening-grid { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(32px,5vw,80px); }
 .home-gateway h1 { font-size:clamp(3rem,4vw,4.5rem); }
 .home-gateway .home-mark { width:min(100%,440px); }
}

/* Until hero.js runs, show the state it sets (mark in the hero, header brand hidden), so the mark paints, and counts as LCP, at first paint
   rather than after every deferred script. Without scripting the header brand stays and the mark is hidden, as before. */
@media (scripting:enabled) { .home-gateway:not(.logo-transition-ready) .bahr-brand:not(:focus-within) { visibility:hidden; } }
@media (scripting:none) { .home-gateway .home-mark { visibility:hidden; } }
.home-gateway .home-liquid-stage { z-index:12; }
/* An open phone menu or nav panel sits above the travelling logo. */
.home-gateway .bahr-header:has(#menu-panel:not([hidden]),.nav-group[open]) { z-index:13; }
.home-gateway .home-liquid-stage.is-anchored { position:absolute; }

/* The full-viewport ambient layer owns the tint, not the bounded content columns. */
html[data-theme] .home-gateway .home-pad { background:transparent; }

/* An illustrative AI step: native radios swap the scenario, so it works by keyboard and without JS. */
.home-gateway .home-example { padding-block:var(--section-space);border-top:1px solid var(--line); }
.home-gateway .home-example .home-section-heading { grid-template-columns:1fr;gap:.75rem;margin:0 0 1.5rem; }
.home-gateway .home-example h2 { max-width:none; }
/* Section titles stay a step below the hero h1 at every width; the hero keeps its own scale. */
body.home-gateway main .home-section-heading h2 { font-size:clamp(2rem,1.5rem + 1.6vw,2.75rem); }
body.home-gateway main .home-contact h2 { font-size:clamp(2.4rem,1.6rem + 2vw,3rem); }
.home-example .example-controls { display:flex;flex-wrap:wrap;align-items:flex-end;gap:.75rem 1.5rem;margin-bottom:1.5rem; }
.home-example .example-picker { display:flex;flex-wrap:wrap;gap:.75rem;margin:0;padding:0;border:0;min-width:0; }
.home-example .example-legend { width:100%;margin-bottom:.75rem;padding:0;color:var(--muted);font-size:.875rem;letter-spacing:.06em;text-transform:uppercase; }
.home-example .example-option { display:inline-flex;align-items:center;gap:.6rem;min-height:44px;padding:.55rem 1.1rem;border:1px solid var(--line);border-radius:999px;cursor:pointer;color:var(--ink);transition:background-color .25s,border-color .25s; }
.home-example .example-option input { width:1rem;height:1rem;margin:0;accent-color:var(--blue); }
.home-example .example-option:has(input:checked) { border-color:var(--blue);background:color-mix(in srgb,var(--blue) 10%,transparent); }
.home-example .example-option:has(input:focus-visible) { outline:2px solid var(--blue);outline-offset:4px; }
/* Play is an action, not a third choice: squarer and filled, apart from the radio pills. */
.home-example .example-run { display:none;align-items:center;gap:.6rem;min-height:44px;margin:0 0 0 auto;padding:.55rem 1.25rem;border:1px solid var(--blue);border-radius:6px;background:var(--blue);color:var(--bg);font:inherit;cursor:pointer; }
.home-example .example-run:not(:disabled)::after { content:"→" / ""; }
.home-example .example-run:not(:disabled):hover { background:color-mix(in srgb,var(--blue) 82%,var(--ink)); }
.home-example .example-run:focus-visible { outline:2px solid var(--blue);outline-offset:4px; }
.home-example .example-run[hidden] { display:none; }
/* Stacked by default: compact gaps hold the vertical connectors; --core sizes the AI node. */
.home-example { --core:9rem;--flow-gap:4rem; }
.home-example .example-flows { padding-block:.5rem; }
.home-example .example-flow { display:none;gap:var(--flow-gap);margin:0 auto;padding:0;list-style:none;min-width:0;max-width:26rem;align-items:start; }
.home-example:has(#example-booking:checked) .example-flow-booking,
.home-example:has(#example-support:checked) .example-flow-support { display:grid; }
.home-example .example-step { position:relative;min-width:0; }
.home-example .example-step-title { margin:0 0 1rem;text-align:center;color:var(--ink);font-size:var(--type-diagram);line-height:1.4; }
.home-example [data-example-node] { color:var(--blue); }
.home-example .example-window { border:1px solid var(--blue);border-radius:10px;background:var(--bg);box-shadow:0 10px 0 -5px color-mix(in srgb,var(--blue) 12%,var(--bg));overflow:hidden; }
.home-example .example-app-bar { display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;border-bottom:1px solid var(--line);font-size:.875rem;color:var(--muted); }
.home-example .example-app-bar svg { width:1.25rem;height:1.25rem;fill:none;stroke:currentColor;stroke-width:1.5; }
.home-example .example-app-bar i { flex:1;height:1.25rem;border:1px solid var(--line);border-radius:3px; }
.home-example .example-message { margin:1.25rem 1rem 0;padding:1rem;border-radius:12px 12px 12px 0;background:color-mix(in srgb,var(--blue) 7%,var(--bg));color:var(--ink); }
.home-example .example-message p { margin:0;font-size:1.0625rem;line-height:1.8; }
.home-example mark { white-space:nowrap;color:var(--ink);background:color-mix(in srgb,var(--blue) 17%,var(--bg));padding:.1rem .15rem;border-bottom:1px solid var(--blue); }
.home-example .example-message-tail { display:block;margin:0 0 1.25rem 1rem;width:0;border:8px solid transparent;border-left-color:color-mix(in srgb,var(--blue) 7%,var(--bg));border-top:0; }
.home-example .example-ai-core { width:var(--core);aspect-ratio:1;margin:0 auto 1rem;border-radius:50%;background:radial-gradient(circle at 30% 25%,var(--bg) 12%,color-mix(in srgb,var(--blue) 22%,var(--bg))); }
.home-example .example-ai-core svg { display:block;width:100%;height:100%;fill:none;stroke:var(--blue);stroke-width:1.2;stroke-linejoin:round; }
.home-example .example-core-rim { stroke:var(--line); }
.home-example .example-core-shell { fill:color-mix(in srgb,var(--blue) 8%,var(--bg)); }
.home-example .example-core-facet { fill:color-mix(in srgb,var(--blue) 28%,var(--bg));stroke:none; }
.home-example .example-core-network { opacity:.65; }
.home-example .example-core-port { fill:var(--bg); }
.home-example .example-core-center { fill:var(--bg);stroke-width:2; }
.home-example .example-fields { margin:0 auto;max-width:21rem; }
.home-example .example-fields div { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:.75rem;padding:.6rem 0;border-bottom:1px solid var(--line); }
.home-example .example-fields dt { font-size:.875rem;line-height:1.5;color:var(--muted); }
.home-example .example-fields dd { margin:0;font-size:1rem;line-height:1.4;color:var(--ink);overflow-wrap:break-word; }
.home-example .example-calendar { position:relative;margin-top:.5rem;border:1px solid var(--blue);border-radius:8px;background:var(--bg);padding-bottom:1rem; }
.home-example .example-calendar::before,.home-example .example-calendar::after { content:"";position:absolute;top:-.65rem;width:.35rem;height:1.25rem;border:1px solid var(--blue);border-radius:1rem;background:var(--bg); }
.home-example .example-calendar::before { left:20%; }.home-example .example-calendar::after { right:20%; }
.home-example .example-calendar-head { padding:1.25rem 1rem .75rem;border-bottom:1px solid var(--line);font-size:1.2rem;color:var(--ink); }
.home-example .example-calendar-row { display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;font-size:.875rem;color:var(--muted); }
.home-example .example-calendar-row i { flex:1;border-top:1px solid var(--line); }
.home-example .example-calendar-event { display:flex;gap:.75rem;padding:0 1rem;font-size:.875rem;color:var(--ink); }
.home-example .example-calendar-event > div { display:grid;gap:.75rem;border-left:3px solid var(--blue);padding:.75rem;background:color-mix(in srgb,var(--blue) 8%,var(--bg));min-width:0; }
.home-example .example-calendar-event strong,.home-example .example-ticket strong { font-size:1rem;font-weight:500; }
.home-example .example-status { display:block;font-size:.875rem;line-height:1.4;border:1px solid var(--blue);border-radius:4px;padding:.3rem .5rem;width:fit-content; }
.home-example .example-queue { position:relative;margin:1rem .75rem 0 0;isolation:isolate;border-radius:8px; }
.home-example .example-queue::before,.home-example .example-queue::after { content:"";position:absolute;inset:-.5rem -.4rem .5rem .4rem;border:1px solid var(--line);border-radius:8px;background:var(--bg);z-index:-1; }
.home-example .example-queue::before { inset:-1rem -.8rem 1rem .8rem; }
.home-example .example-ticket { display:grid;gap:1rem;padding:1.5rem;border:1px solid var(--blue);border-radius:8px;background:var(--bg);color:var(--ink);clip-path:polygon(0 0,100% 0,100% 52%,calc(100% - 8px) 57%,100% 62%,100% 100%,0 100%,0 62%,8px 57%,0 52%); }
.home-example .example-ticket > span:first-child { color:var(--muted);font-size:.875rem; }
.home-example .example-ticket strong { padding-bottom:1.5rem;border-bottom:1px dashed var(--line); }
.home-example .example-link { position:absolute;bottom:calc(-1 * var(--flow-gap));left:calc(50% - 3rem);width:6rem;height:var(--flow-gap);color:var(--blue); }
.home-example .example-link span { position:absolute;left:3.75rem;top:calc(50% - .65rem);font-size:.875rem; }
.home-example .example-link svg { position:absolute;top:calc(50% - .75rem);left:1.5rem;display:block;width:3rem;height:1.5rem;transform:rotate(90deg);overflow:visible;fill:none;stroke:currentColor;stroke-width:1.5; }
.home-example .example-pulse { opacity:0;stroke-width:4;stroke-dasharray:.18 1; }
.home-example .example-foot { display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:1rem 2rem;margin-top:2rem; }
.home-example .example-foot p { margin:0;color:var(--muted);font-size:.9375rem; }
/* Tablets: a wider stack, with the AI node beside the fields it produces. */
@media(min-width:600px) {
 .home-example { --core:11rem; }
 .home-example .example-flow { max-width:38rem; }
 .home-example .example-extraction { display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:2rem; }
 .home-example .example-ai-core { margin:0; }
 .home-example .example-fields { margin:0;max-width:none; }
}
@media(min-width:960px) {
 .home-example { --core:12.5rem;--flow-gap:clamp(4rem,10vw - 2rem,5.5rem); }
 .home-example .example-run { display:inline-flex; }
 .home-example .example-flow { grid-template-columns:repeat(3,minmax(0,1fr));max-width:none; }
 .home-example .example-extraction { display:block; }
 .home-example .example-ai-core { margin:0 auto 1.25rem; }
 .home-example .example-fields { margin:0 auto;max-width:21rem; }
 .home-example .example-link { top:6.15rem;right:calc(-1 * var(--flow-gap));bottom:auto;left:auto;width:calc(var(--flow-gap) + (100% - var(--core))/2);height:2rem; }
 .home-example .example-step:first-child .example-link { right:calc(-1 * var(--flow-gap) - (100% - var(--core))/2); }
 .home-example .example-link span { top:0;left:0;width:100%;text-align:center; }
 .home-example .example-link svg { top:1.75rem;left:0;width:100%;transform:none; }
}
@media(prefers-reduced-motion:reduce) { .home-example .example-option { transition:none; } }

/* Water accents outside the hero: a quiet edge ripple and a slow footer swell. */
.home-gateway { --water-ripple:#2a6bb0;--water-near:#6db7da;--water-far:#cdeceb; }
html[data-theme=dark] .home-gateway { --water-ripple:#a9ccf8;--water-near:#18498c;--water-far:#0c2a57; }

/* A quiet ripple travels in from the frame edge; the client artwork itself is untouched. */
.home-gateway .home-project-media { position:relative; }
.home-gateway .home-project-media::before,.home-gateway .home-project-media::after {
 content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;
 box-shadow:inset 0 0 0 1.5px var(--water-ripple);
}
@media(hover:hover) {
 .home-gateway .home-project-media:hover::before { animation:home-edge-ripple 1.6s cubic-bezier(.2,.7,.3,1); }
 .home-gateway .home-project-media:hover::after { animation:home-edge-ripple 1.6s .3s cubic-bezier(.2,.7,.3,1); }
}
.home-gateway .home-feature-grid:has(a:focus-visible) .home-project-media::before { animation:home-edge-ripple 1.6s cubic-bezier(.2,.7,.3,1); }
@keyframes home-edge-ripple { 0% { opacity:0;transform:scale(1); } 18% { opacity:.5; } 100% { opacity:0;transform:scale(.955); } }

/* A broad, slow swell rises behind the footer; it follows the shared background-motion control. */
.home-gateway .home-footer { position:relative; }
.home-gateway .home-footer::before,.home-gateway .home-footer::after {
 content:"";position:absolute;bottom:100%;left:calc(50% - 50vw);z-index:-1;width:100vw;height:clamp(52px,7vw,108px);pointer-events:none;
 background:linear-gradient(0deg,var(--water-near),var(--water-far));opacity:.45;transform-origin:50% 100%;
 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 100' preserveAspectRatio='none'%3E%3Cpath d='M0 60C150 20 300 20 450 60S750 100 900 60V100H0Z'/%3E%3C/svg%3E") 0 100%/900px 100% repeat-x;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 100' preserveAspectRatio='none'%3E%3Cpath d='M0 60C150 20 300 20 450 60S750 100 900 60V100H0Z'/%3E%3C/svg%3E") 0 100%/900px 100% repeat-x;
 animation:home-footer-swell 22s ease-in-out infinite alternate paused;
}
.home-gateway .home-footer::after { height:clamp(36px,5vw,76px);opacity:.35;-webkit-mask-position:420px 100%;mask-position:420px 100%;animation-duration:31s;animation-delay:-11s; }
.home-gateway:has(.bahr-ambient.is-alive) .home-footer::before,.home-gateway:has(.bahr-ambient.is-alive) .home-footer::after { animation-play-state:running; }
@keyframes home-footer-swell { from { transform:translate3d(0,8%,0) scaleY(.7); } to { transform:translate3d(0,0,0) scaleY(1); } }

/* Sculpted shoreline along the opening's lower edge. hero.js draws it and flattens it into contours toward Solutions. */
.home-gateway {
 --shore-h:clamp(150px,min(14.6vw,26svh),340px);
 /* Woodblock sea mixed only from the brand tokens: navy ink in front, brand blue behind, paper tints for the far water and foam. */
 --sea-back:color-mix(in srgb,var(--blue) 42%,var(--bg));--sea-back-glaze:color-mix(in srgb,var(--blue) 24%,var(--bg));--sea-back-line:color-mix(in srgb,var(--blue) 14%,var(--bg));
 --sea-mid:var(--blue);--sea-mid-glaze:color-mix(in srgb,var(--blue) 62%,var(--bg));--sea-mid-line:color-mix(in srgb,var(--blue) 42%,var(--bg));
 --sea-front:var(--ink);--sea-front-glaze:var(--blue);--sea-front-line:color-mix(in srgb,var(--blue) 55%,var(--bg));
 --sea-edge:var(--ink);--sea-foam:var(--bg);
}
/* Dark water keeps the brand navy of the dark CTA (--current) as its mid layer, lifted toward the dark-theme blue in front and sunk into the page behind; foam is the dark-theme ink. */
html[data-theme=dark] .home-gateway {
 --sea-back:color-mix(in srgb,var(--current) 55%,var(--bg));--sea-back-glaze:color-mix(in srgb,var(--blue) 14%,var(--sea-back));--sea-back-line:color-mix(in srgb,var(--blue) 24%,var(--sea-back));
 --sea-mid:var(--current);--sea-mid-glaze:color-mix(in srgb,var(--blue) 22%,var(--current));--sea-mid-line:color-mix(in srgb,var(--blue) 34%,var(--current));
 --sea-front:color-mix(in srgb,var(--blue) 28%,var(--current));--sea-front-glaze:color-mix(in srgb,var(--blue) 46%,var(--current));--sea-front-line:color-mix(in srgb,var(--blue) 62%,var(--current));
 --sea-edge:var(--bg);--sea-foam:var(--ink);
}
/* The copy and scroll cue keep clear water above the crests. */
.home-gateway .home-opening:has(.home-shore) { position:relative;padding-bottom:calc(var(--shore-h) - 1.25rem); }
@media(min-width:900px) { .home-gateway .home-opening:has(.home-shore) .home-opening-grid { margin-block:clamp(2rem,4vw,3.5rem) 1rem; } }
/* Phones read headline, then the mark on the water, then the actions. Only the decorative mark and shore move, so focus order still follows the page.
   A spacer across the first six rows stretches the mark's row until both actions end just above the bottom of the first screen (below the 77px header and 22px padding);
   the size-contained mark then fills that row as a square, so spare height becomes logo and short phones get a smaller logo rather than hidden actions. */
@media(max-width:700px) {
 .home-gateway .home-opening:has(.home-shore) { display:grid;grid-template:auto auto auto minmax(4rem,1fr) auto auto auto / minmax(0,1fr);padding-bottom:2rem; }
 .home-gateway .home-opening:has(.home-shore)::before { content:"";grid-row:1/7;grid-column:1;min-height:calc(100svh - 99px - .75rem);pointer-events:none; }
 .home-gateway .home-opening:has(.home-shore) :is(.home-opening-grid,.home-opening-copy) { display:contents; }
 .home-gateway .home-opening:has(.home-shore) :is(.home-kicker,h1,.home-intro,.home-mark,.home-shore,.home-pathways,.home-down) { grid-column:1;min-width:0; }
 .home-gateway .home-opening:has(.home-shore) .home-kicker { grid-row:1; }
 .home-gateway .home-opening:has(.home-shore) h1 { grid-row:2;margin-top:1rem; }
 .home-gateway .home-opening:has(.home-shore) .home-intro { grid-row:3;margin-top:1rem; }
 .home-gateway .home-opening:has(.home-shore) .home-mark { grid-row:4;align-self:end;justify-self:center;width:auto;height:min(100% - .5rem,90vw,400px);min-height:0;aspect-ratio:1;contain:size;margin-top:.25rem; }
 .home-gateway .home-opening:has(.home-shore) .home-shore { grid-row:5;position:relative;bottom:auto;margin-top:calc(var(--shore-h) * -.45); }
 /* The front water fades out higher here, so the first action sits on clear page rather than at the foot of the dark band. */
 .home-gateway .home-opening:has(.home-shore) .home-shore { -webkit-mask-image:linear-gradient(#000 62%,transparent 88%);mask-image:linear-gradient(#000 62%,transparent 88%); }
 .home-gateway .home-opening:has(.home-shore) .home-pathways { grid-row:6;margin-top:1rem; }
 .home-gateway .home-opening:has(.home-shore) .home-down { grid-row:7;margin-top:1rem; }
}
/* Full-bleed art inside the centred column must not widen the page past a classic scrollbar. */
html:has(>body.home-gateway),body.home-gateway { overflow-x:clip; }
.home-shore {
 position:absolute;bottom:0;left:calc(50% - 50vw);z-index:-1;width:100vw;height:var(--shore-h);overflow:clip;pointer-events:none;
 -webkit-mask-image:linear-gradient(#000 80%,transparent);mask-image:linear-gradient(#000 80%,transparent);
}
/* One 1440-unit tile spans the frame (or six shore-heights on narrow screens), centred like xMidYMax slice. */
.home-shore .shore-layer {
 --tile:max(100%,calc(var(--shore-h) * 6));
 position:absolute;bottom:0;left:calc(50% - var(--tile) * 2 / 3);width:calc(var(--tile) * 7 / 3);aspect-ratio:3360/240;
 animation:shore-bob ease-in-out infinite alternate paused;will-change:transform;
}
.home-shore .shore-drift { height:100%;animation:shore-drift linear infinite paused;will-change:transform; }
.home-shore svg { display:block;width:100%;height:100%; }
.home-shore .shore-back { animation-duration:9s; }
.home-shore .shore-mid { animation-duration:7s;animation-delay:-2s; }
.home-shore .shore-front { animation-duration:6s;animation-delay:-4s; }
.home-shore .shore-back .shore-drift { animation-duration:150s; }
.home-shore .shore-mid .shore-drift { animation-duration:104s; }
.home-shore .shore-front .shore-drift { animation-duration:74s; }
/* Idle motion follows the shared background-motion control and rests once the logo has docked. */
.home-gateway:has(.bahr-ambient.is-alive):not(.header-brand-visible) .home-shore :is(.shore-layer,.shore-drift) { animation-play-state:running; }
.home-shore path { transition:fill .5s,stroke .5s; }
.home-shore .shore-back { --fill:var(--sea-back);--glaze:var(--sea-back-glaze);--line:var(--sea-back-line); }
.home-shore .shore-mid { --fill:var(--sea-mid);--glaze:var(--sea-mid-glaze);--line:var(--sea-mid-line); }
.home-shore .shore-front { --fill:var(--sea-front);--glaze:var(--sea-front-glaze);--line:var(--sea-front-line); }
.home-shore .shore-fill { fill:var(--fill); }
.home-shore .shore-glaze { fill:var(--glaze); }
.home-shore :is(.shore-edge,.shore-inner,.shore-flow,.shore-vein,.shore-contour) { fill:none;stroke-width:1;stroke-linecap:round;vector-effect:non-scaling-stroke; }
.home-shore .shore-edge { stroke:var(--sea-edge);stroke-width:1.25; }
.home-shore .shore-contour { stroke:var(--sea-edge); }
.home-shore .shore-inner { stroke:var(--line); }
.home-shore .shore-flow { stroke:var(--fill); }
.home-shore .shore-foam { fill:var(--sea-foam);stroke:var(--sea-edge);stroke-width:1;stroke-linejoin:round;vector-effect:non-scaling-stroke; }
.home-shore .shore-vein { stroke:var(--glaze);stroke-width:1.2; }
.home-shore .shore-spray { fill:var(--sea-foam); }
@keyframes shore-drift { from { transform:translate3d(calc(-300% / 7),0,0); } to { transform:translate3d(0,0,0); } }
@keyframes shore-bob { from { transform:translate3d(0,-2px,0); } to { transform:translate3d(0,3px,0); } }
@media(prefers-reduced-motion:reduce) { .home-shore :is(.shore-layer,.shore-drift) { animation:none; } }

.home-example .example-run:disabled { cursor:default;color:var(--muted);border-color:var(--line);background:transparent; }

/* Closing sections: short groups on the content column, with the heading, copy and link sharing one left edge. The hero above keeps its own geometry. */
.home-gateway .home-feature-grid:last-child { margin-bottom:0; }
.home-gateway :is(.home-about,.home-contact) { padding-block:var(--page-space);text-align:start; }
.home-gateway .home-about .home-section-heading { grid-template-columns:minmax(0,1fr);justify-items:start;gap:1.25rem;margin-block:0; }
.home-gateway .home-about .home-section-heading p { margin:0;text-wrap:pretty; }
.home-gateway .home-about .home-section-heading p + p { margin-top:1rem; }
.home-gateway .home-contact h2 { margin:0 0 1.25rem; }
.home-gateway .home-contact-bottom { flex-direction:column;align-items:flex-start;gap:1rem; }
/* The contact section already ends the page with its own space; it also leaves room for the footer swell. */
.home-gateway .home-contact { padding-block:calc(var(--page-space) / 2) calc(var(--page-space) + clamp(52px,7vw,108px)); }
body.home-gateway footer.home-footer { margin-top:0; }

/* Clients: a quiet index of every client, each name leading to its case study. */
.home-gateway .home-clients { padding-block:clamp(2.5rem,5vw,4rem);border-top:1px solid var(--line); }
body.home-gateway main .home-clients-title { margin:0 0 1.5rem;color:var(--muted);font-size:.875rem;font-weight:400;letter-spacing:.06em;text-transform:uppercase; }
.home-gateway .home-client-list { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1.5rem;margin:0;padding:0;list-style:none; }
.home-gateway .home-client-list a { display:flex;flex-direction:column;gap:.3rem;min-height:44px;padding:1rem 0;border-top:1px solid var(--line);color:var(--ink);text-decoration:none; }
.home-gateway .home-client-name { font-size:clamp(1.125rem,1rem + .4vw,1.375rem);line-height:1.3;overflow-wrap:break-word;transition:color .2s; }
.home-gateway .home-client-sector { color:var(--muted);font-size:.875rem;line-height:1.4; }
.home-gateway .home-client-list a:hover .home-client-name { color:var(--blue); }
.home-gateway .home-client-list a:focus-visible { outline:2px solid var(--blue);outline-offset:4px; }
@media(min-width:768px) { .home-gateway .home-client-list { grid-template-columns:repeat(4,minmax(0,1fr));gap:0 clamp(1.5rem,3vw,3rem); } }

/* Questions: native disclosures on the same hairlines as the routes above. */
.home-gateway .home-faq { padding-block:var(--page-space);border-top:1px solid var(--line); }
.home-gateway .home-faq .home-section-heading { grid-template-columns:minmax(0,1fr);margin:0 0 1.5rem; }
.home-gateway .home-faq-list { max-width:52rem;border-bottom:1px solid var(--line); }
.home-gateway .home-faq-item { border-top:1px solid var(--line); }
.home-gateway .home-faq-item summary { display:flex;align-items:baseline;justify-content:space-between;gap:1.5rem;min-height:44px;padding:1.25rem 0;cursor:pointer;list-style:none;color:var(--ink); }
.home-gateway .home-faq-item summary::-webkit-details-marker { display:none; }
.home-gateway .home-faq-item summary::after { content:"+" / "";flex:none;color:var(--blue);font-size:1.5rem;line-height:1;transition:transform .25s; }
.home-gateway .home-faq-item[open] summary::after { transform:rotate(45deg); }
.home-gateway .home-faq-item summary:hover h3 { color:var(--blue); }
.home-gateway .home-faq-item summary:focus-visible { outline:2px solid var(--blue);outline-offset:4px; }
body.home-gateway .home-faq-item h3 { margin:0;font-size:clamp(1.125rem,1rem + .4vw,1.375rem);font-weight:400;line-height:1.4;transition:color .2s; }
.home-gateway .home-faq-item p { max-width:42rem;margin:0;padding:0 0 1.5rem;color:var(--ink);font-size:1.0625rem;line-height:1.7;text-wrap:pretty; }
@media(prefers-reduced-motion:reduce) { .home-gateway .home-faq-item summary::after,.home-gateway .home-faq-item h3,.home-gateway .home-client-name { transition:none; } }

/* Home guides: one row per published guide below the FAQ, in the FAQ's ruled-list rhythm. */
.home-gateway .home-guides { padding-block:var(--page-space);border-top:1px solid var(--line); }
.home-gateway .home-guides .home-section-heading { margin:0 0 1.5rem; }
.home-gateway .home-guide-list { max-width:52rem;margin:0;padding:0;list-style:none;border-bottom:1px solid var(--line); }
.home-gateway .home-guide-list a { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:.3rem 1.5rem;min-height:44px;padding:1.25rem 0;border-top:1px solid var(--line);color:var(--ink);text-decoration:none; }
.home-gateway .home-guide-type { grid-column:1;color:var(--muted);font-size:.875rem;line-height:1.4; }
.home-gateway .home-guide-title { grid-column:1;font-size:clamp(1.125rem,1rem + .4vw,1.375rem);line-height:1.4;text-wrap:pretty;transition:color .2s; }
.home-gateway .home-guide-arrow { grid-column:2;grid-row:1 / span 2;align-self:center;color:var(--blue);font-size:1.25rem; }
.home-gateway .home-guide-list a:hover .home-guide-title { color:var(--blue); }
.home-gateway .home-guide-list a:focus-visible { outline:2px solid var(--blue);outline-offset:4px; }
@media(prefers-reduced-motion:reduce) { .home-gateway .home-guide-title { transition:none; } }
/* Nine guides: tighter rows keep the list compact. */
.home-gateway .home-guide-list a { padding:.875rem 0; }
.home-gateway .home-guide-title { font-size:clamp(1.0625rem,1rem + .25vw,1.25rem); }
