/* Saporta Penn Chen & Co — Variant O "The Aperture"
   Ink + paper chapters, one cool blue accent from the logo. The stylesheet describes the FINISHED state of every
   section; js/motion.js only animates towards it, so reduced motion shows everything. */

:root {
  --fs: 1;               /* accessibility text-size factor for vw/vh-sized type (set by app.js) */
  --ink: #0a0f17;
  --ink-2: #111823;
  --ink-3: #19222f;
  --paper: #f4f1eb;
  --paper-2: #ebe6dc;
  --white: #ffffff;
  --on-ink: #eef1f5;
  --muted-ink: #a4aebc;
  --on-paper: #0a0f17;
  --muted-paper: #4d5664;
  --accent: #62b8f3;          /* clear blue from the logo, for ink chapters */
  --accent-ink: #0d5f9e;      /* same hue, darkened for paper chapters (AA) */
  --line-ink: rgba(255, 255, 255, .16);
  --line-paper: rgba(10, 15, 23, .14);
  --gut: clamp(16px, 5.6vw, 96px);
  --hdr: 76px;
  --f-display: "Inter Tight", "IBM Plex Sans Hebrew", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", "IBM Plex Sans Hebrew", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.19, 1, .22, 1);
}
html[lang="he"] { --f-display: "IBM Plex Sans Hebrew", "Inter Tight", system-ui, sans-serif; --f-body: "IBM Plex Sans Hebrew", "Inter", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
html.has-motion { scroll-behavior: auto; }
body { margin: 0; background: var(--ink); color: var(--on-paper); font-family: var(--f-body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 500; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.paper :focus-visible { outline-color: var(--accent-ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; inset-inline-start: 16px; z-index: 2000; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
main { display: block; outline: none; background: var(--paper); }
.wrap { width: min(100% - 2 * var(--gut), 1360px); margin-inline: auto; }
.narrow { max-width: 820px; }
.ico { width: 22px; height: 22px; flex: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.ink { background: var(--ink); color: var(--on-ink); }
.paper { background: var(--paper); color: var(--on-paper); }
.muted { color: var(--muted-paper); }
.ink .muted { color: var(--muted-ink); }
html[lang="en"] h1, html[lang="en"] h2, html[lang="es"] h1, html[lang="es"] h2 { letter-spacing: -.025em; }

/* masked words (split headings) */
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; padding-inline: .02em; }
.wi { display: inline-block; }

/* kicker + links + buttons */
.kicker { font-size: .8rem; font-weight: 500; letter-spacing: .08em; color: var(--accent-ink); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
html:not([lang="he"]) .kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.ink .kicker { color: var(--accent); }
.tlink { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: .98rem; color: var(--on-paper); padding-block: 6px; position: relative; white-space: nowrap; }
.tlink span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .5s var(--ease); }
.tlink:hover span { background-size: 0 1px; background-position: 100% 100%; }
[dir="rtl"] .tlink:hover span { background-position: 0 100%; }
.tlink .ico { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.tlink:hover .ico { transform: translateX(4px); }
[dir="rtl"] .tlink:hover .ico.flip { transform: scaleX(-1) translateX(4px); }
.tlink-light, .ink .tlink { color: var(--on-ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .98rem; cursor: pointer; transition: background .3s, color .3s, border-color .3s; white-space: nowrap; }
.btn .ico { width: 18px; height: 18px; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--white); }
.paper .btn-accent { background: var(--ink); color: var(--white); }
.paper .btn-accent:hover { background: var(--accent-ink); }
.btn-line { border-color: currentColor; background: transparent; color: inherit; }
.btn-line:hover { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.paper .btn-line:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-wa { background: #15803d; color: #fff; }
.btn-wa:hover { background: #116a32; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .88rem; }

/* ------------------------------------------------------------------ header */
.site-header { position: fixed; top: 0; inset-inline: 0; z-index: 60; color: var(--on-ink); transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.site-header.scrolled, body.drawer-open .site-header { background: rgba(10, 15, 23, .94); border-bottom-color: var(--line-ink); }
.hdr-in { height: var(--hdr); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; flex: none; }
.brand-he { height: 36px; width: auto; }
.brand-latin { display: flex; align-items: center; gap: 10px; }
.brand-latin img { width: 34px; height: auto; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; }
.brand-text small { font-size: .7rem; color: var(--muted-ink); letter-spacing: .04em; }
.main-nav { margin-inline-start: auto; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-link { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; color: rgba(238, 241, 245, .82); font-size: .94rem; font-weight: 500; background: none; border: 0; cursor: pointer; position: relative; transition: color .25s; }
.nav-link:hover, .nav-link[aria-current="page"], .nav-link[data-current] { color: var(--white); }
.nav-link[aria-current="page"]::after, .nav-link[data-current]::after { content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 1px; background: var(--accent); }
.nav-link .chev { width: 15px; height: 15px; transition: transform .3s; }
.has-drop { position: relative; }
.has-drop.open .chev { transform: rotate(180deg); }
.drop { position: absolute; top: calc(100% + 10px); inset-inline-start: -12px; min-width: 280px; background: var(--ink-2); border: 1px solid var(--line-ink); border-radius: 18px; padding: 14px; display: none; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.has-drop.open .drop { display: block; animation: drop-in .35s var(--ease); }
@keyframes drop-in { from { transform: translateY(-6px); } }
.drop-list { list-style: none; display: grid; gap: 2px; }
.drop-list.two-col { grid-template-columns: 1fr 1fr; min-width: 520px; }
.drop-list a { display: flex; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: .93rem; color: var(--on-ink); transition: background .2s; }
.drop-list a:hover { background: var(--ink-3); }
.drop-n { font-size: .74rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.drop-all { display: inline-flex; align-items: center; gap: 8px; margin: 10px 12px 2px; font-size: .88rem; color: var(--accent); font-weight: 500; }
.drop-all .ico { width: 16px; height: 16px; }
.hdr-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch a { font-size: .78rem; font-weight: 600; letter-spacing: .04em; padding: 6px 8px; border-radius: 6px; color: var(--muted-ink); transition: color .2s; }
.lang-switch a:hover { color: var(--white); }
.lang-switch a.on { color: var(--white); box-shadow: inset 0 -1px 0 var(--accent); border-radius: 0; }
.hdr-phone { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; padding: 8px 16px; border: 1px solid var(--line-ink); border-radius: 999px; transition: border-color .3s, background .3s; }
.hdr-phone:hover { border-color: var(--accent); }
.hdr-phone .ico { width: 16px; height: 16px; color: var(--accent); }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line-ink); border-radius: 50%; background: transparent; color: var(--white); cursor: pointer; place-items: center; }
.burger-lines { display: grid; gap: 6px; width: 18px; }
.burger-lines i { display: block; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.burger[aria-expanded="true"] .burger-lines i:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-lines i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.drawer { position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--on-ink); padding: calc(var(--hdr) + 24px) var(--gut) 40px; overflow-y: auto; overscroll-behavior: contain; }
.drawer[hidden] { display: none; }
.drawer-list { list-style: none; display: grid; }
.drawer-list > li { border-bottom: 1px solid var(--line-ink); }
.drawer-list > li > a, .drawer-list summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-family: var(--f-display); font-size: 1.6rem; font-weight: 500; cursor: pointer; list-style: none; }
.drawer-list summary::-webkit-details-marker { display: none; }
.drawer-list details[open] .chev { transform: rotate(180deg); }
.drawer-sub { list-style: none; padding: 0 0 16px; display: grid; gap: 2px; }
.drawer-sub a { display: block; padding: 8px 0; color: var(--muted-ink); font-size: 1.05rem; }
.drawer-sub .drawer-all { color: var(--accent); }
.lang-drawer { margin: 24px 0 18px; }
.lang-drawer a { font-size: .95rem; padding: 8px 12px; }
.drawer-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.drawer-addr { margin-top: 18px; color: var(--muted-ink); font-size: .92rem; }
body.drawer-open { overflow: hidden; }

/* ------------------------------------------------------------------ 1 · intro (aperture opening) */
.intro { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.intro-stage { position: absolute; inset: 0; }
.quads { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.quad { position: relative; overflow: hidden; color: var(--white); display: block; }
.quad-media { position: absolute; inset: 0; overflow: hidden; }
.quad-media img { width: 100%; height: 100%; object-fit: cover; }
.quad-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 15, 23, .9) 0%, rgba(10, 15, 23, .55) 45%, rgba(10, 15, 23, .28) 100%); transition: background .5s; }
.quad:nth-child(-n+2) .quad-shade { background: linear-gradient(to bottom, rgba(10, 15, 23, .9) 0%, rgba(10, 15, 23, .58) 45%, rgba(10, 15, 23, .28) 100%); }
.quad:hover .quad-shade { background-color: rgba(10, 15, 23, .2); }
.quad-copy { position: absolute; inset-inline-start: max(var(--gut), 86px); text-shadow: 0 1px 18px rgba(10, 15, 23, .45); max-width: min(27rem, 78%); display: grid; gap: 8px; justify-items: start; }
.quad:nth-child(-n+2) .quad-copy { top: calc(var(--hdr) + clamp(18px, 4vh, 44px)); }
.quad:nth-child(n+3) .quad-copy { bottom: clamp(24px, 6vh, 64px); }
.quad-n { font-size: .8rem; font-weight: 500; letter-spacing: .1em; color: var(--accent); font-variant-numeric: tabular-nums; }
.quad-t { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, calc(2.5vw * var(--fs)), 2.6rem); line-height: 1.05; }
.quad-s { font-size: .98rem; color: rgba(238, 241, 245, .86); line-height: 1.5; }
.quad-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .9rem; font-weight: 600; padding-bottom: 3px; border-bottom: 1px solid rgba(255, 255, 255, .5); transition: border-color .3s, gap .4s var(--ease); }
.quad-more .ico { width: 16px; height: 16px; }
.quad:hover .quad-more { border-color: var(--accent); gap: 12px; }
.hair { position: absolute; z-index: 3; background: rgba(255, 255, 255, .6); pointer-events: none; }
.hair-v { top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -.5px; }
.hair-h { left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; }
.badge { position: absolute; inset: 0; margin: auto; z-index: 4; width: clamp(150px, 16.5vw, 250px); height: clamp(150px, 16.5vw, 250px); pointer-events: none; }
.badge-disc { position: absolute; inset: 0; border-radius: 50%; background: var(--ink); }
.badge-ring { position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(98, 184, 243, .75); }
.badge-in { position: relative; height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 18px; text-align: center; color: var(--white); }
.badge-mark { width: clamp(28px, 2.6vw, 40px); height: auto; }
.wordmark { display: grid; gap: 6px; justify-items: center; }
.wm-name { display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(1rem, calc(1.55vw * var(--fs)), 1.5rem); line-height: 1.1; max-width: 12ch; transform-origin: 50% 50%; }
.wm-slogan { display: block; font-size: clamp(.68rem, calc(.82vw * var(--fs)), .84rem); font-weight: 500; color: var(--accent); letter-spacing: .04em; font-family: var(--f-body); }
.scroll-cue { position: absolute; z-index: 4; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-size: .72rem; letter-spacing: .14em; color: rgba(255, 255, 255, .8); pointer-events: none; }
html:not([lang="he"]) .scroll-cue { text-transform: uppercase; }
.scroll-cue i { display: block; width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ------------------------------------------------------------------ 2 · manifesto */
.mani { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hdr) + 40px) 0 64px; }
.mani-in { max-width: 1220px; }
.mani-q { font-size: clamp(1rem, calc(1.25vw * var(--fs)), 1.2rem); color: var(--accent); margin-bottom: clamp(16px, 2.5vh, 28px); font-weight: 500; }
.mani-slogan { font-size: min(calc(9.6vw * var(--fs)), calc(17vh * var(--fs))); font-weight: 500; line-height: .98; color: var(--white); margin-bottom: clamp(24px, 4.5vh, 52px); }
html[lang="he"] .mani-slogan { font-weight: 600; letter-spacing: -.01em; }
.mani-text { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.15rem, min(calc(2.2vw * var(--fs)), calc(3.7vh * var(--fs))), 2.3rem); line-height: 1.38; color: var(--on-ink); max-width: 56ch; }
html[lang="he"] .mani-text { font-weight: 300; }
.w { display: inline; }

/* ------------------------------------------------------------------ 3 · aperture */
.ap { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
.ap-stage { position: absolute; inset: 0; }
.ap-kicker { position: absolute; z-index: 1; top: calc(var(--hdr) + 7vh); left: 0; right: 0; justify-content: center; margin: 0; }
.ap-kicker::before { display: none; }
.ap-year { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; font-family: "Inter Tight", var(--f-display); font-weight: 300; font-size: clamp(6rem, min(calc(17vw * var(--fs)), calc(30vh * var(--fs))), 19rem); line-height: 1; letter-spacing: -.05em; color: var(--ink); font-variant-numeric: lining-nums; }
.ap-gap { width: calc(min(100vw, 100vh) * .34 + 3vw); flex: none; }
.ap-photo { position: absolute; inset: 0; z-index: 2; overflow: hidden; }
.ap-photo img { width: 100%; height: 100%; object-fit: cover; }
.ap-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 15, 23, .94) 0%, rgba(10, 15, 23, .74) 50%, rgba(10, 15, 23, .5) 100%); }
.ap-over { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; padding-bottom: clamp(32px, 8vh, 90px); color: var(--white); pointer-events: none; }
.ap-over a { pointer-events: auto; }
.ap-title { font-weight: 400; font-size: clamp(1.6rem, min(calc(2.9vw * var(--fs)), calc(5vh * var(--fs))), 3rem); line-height: 1.2; max-width: 24ch; margin-bottom: clamp(28px, 5vh, 56px); }
html[lang="he"] .ap-title { font-weight: 300; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .3); }
.facts li { padding: 22px 0 0; padding-inline-end: 20px; display: grid; gap: 6px; align-content: start; }
.facts strong { font-family: "Inter Tight", var(--f-display); font-weight: 300; font-size: clamp(2.6rem, min(calc(5.2vw * var(--fs)), calc(9vh * var(--fs))), 5.6rem); line-height: .95; letter-spacing: -.04em; justify-self: start; }
.facts span { font-size: .92rem; color: rgba(238, 241, 245, .82); }
.ap-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(24px, 4vh, 44px); }
.ap-gmn { max-width: 60ch; font-size: .95rem; color: rgba(238, 241, 245, .82); }

/* ------------------------------------------------------------------ 4 · services index (hover-driven, not scroll-driven) */
.svc { padding: clamp(90px, 13vh, 150px) 0 clamp(90px, 13vh, 150px); }
.svc-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 90px); align-items: end; margin-bottom: clamp(44px, 7vh, 80px); }
.svc-head .kicker { margin: 0 0 18px; }
.svc-h { font-size: clamp(2.3rem, calc(4.6vw * var(--fs)), 4.8rem); line-height: 1.02; }
.svc-head-side { display: grid; gap: 20px; justify-items: start; }
.svc-sub { color: var(--muted-ink); font-size: 1.08rem; max-width: 46ch; }
.svc-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.svc-list { list-style: none; border-top: 1px solid var(--line-ink); }
.svc-row { position: relative; border-bottom: 1px solid var(--line-ink); }
.svc-sel { width: 100%; display: grid; grid-template-columns: 3.2rem 1fr; align-items: center; gap: 18px; padding: clamp(16px, 2.3vh, 24px) 0; background: none; border: 0; cursor: pointer; text-align: start; color: var(--on-ink); }
.svc-n { font-family: "Inter Tight", var(--f-display); font-size: .85rem; font-variant-numeric: tabular-nums; letter-spacing: .06em; color: var(--muted-ink); transition: color .4s; }
.svc-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.35rem, calc(2.1vw * var(--fs)), 2.15rem); line-height: 1.15; color: rgba(238, 241, 245, .62); transition: color .4s; }
.svc-sel:hover .svc-title { color: rgba(238, 241, 245, .9); }
.svc-more { display: grid; gap: 14px; justify-items: start; padding-inline-start: calc(3.2rem + 18px); max-height: 0; opacity: 0; overflow: hidden; visibility: hidden; transition: max-height .7s var(--ease), opacity .5s, padding .7s var(--ease), visibility 0s .7s; }
.svc-tag { font-size: 1rem; color: var(--muted-ink); max-width: 52ch; }
.svc-row.on .svc-n { color: var(--accent); }
.svc-row.on .svc-title { color: var(--white); }
.svc-row.on .svc-more { max-height: 12em; opacity: 1; visibility: visible; padding-bottom: clamp(18px, 2.6vh, 26px); transition: max-height .7s var(--ease), opacity .5s .1s, padding .7s var(--ease), visibility 0s; }
/* the 6-second clock: the open row's bottom line fills, then app.js opens the next row on animationend */
.svc-timer { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; pointer-events: none; }
[dir="ltr"] .svc-timer { transform-origin: left; }
.svc-row.on .svc-timer { animation: svc-clock 6s linear forwards; }
.svc.paused .svc-row.on .svc-timer { animation-play-state: paused; }
@keyframes svc-clock { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.svc-view { position: sticky; top: calc(var(--hdr) + 24px); }
.svc-frame { position: relative; aspect-ratio: 4 / 5; max-height: 72vh; width: 100%; overflow: hidden; border-radius: 4px; background: var(--ink-3); }
.svc-pic { position: absolute; inset: 0; clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease); }
.svc-pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 1.4s var(--ease); }
.svc-pic.on { clip-path: inset(0 0 0 0); z-index: 1; }
.svc-pic.on img { transform: scale(1); }
.svc-frame::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(10, 15, 23, .6), transparent 40%); pointer-events: none; }
.svc-big { position: absolute; z-index: 3; inset-block-end: 22px; inset-inline-start: 24px; font-family: "Inter Tight", var(--f-display); font-weight: 300; font-size: 1rem; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.svc-cur { font-size: clamp(3rem, calc(5vw * var(--fs)), 5rem); font-weight: 200; color: var(--white); letter-spacing: -.04em; line-height: 1; vertical-align: -.1em; }
.tile-more { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--accent-ink); margin-top: 4px; transition: gap .4s var(--ease); }
.tile-more .ico { width: 16px; height: 16px; }
.ink .tile-more { color: var(--accent); }
a:hover .tile-more { gap: 14px; }
.reveal-mask { position: absolute; inset: 0; display: block; overflow: hidden; }
.reveal-mask img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ 5 · sectors (tabs switch one card in place) */
.sec { padding: clamp(90px, 13vh, 150px) 0 clamp(80px, 12vh, 140px); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(32px, 5vh, 56px); flex-wrap: wrap; }
.sec-head-copy { max-width: 900px; }
.sec-title { font-size: clamp(2.3rem, calc(5vw * var(--fs)), 5.2rem); line-height: 1.02; }
.sec-sub { margin-top: 18px; font-size: 1.1rem; color: var(--muted-paper); max-width: 52ch; }
.ink .sec-sub { color: var(--muted-ink); }
.sx-tabs { display: flex; flex-wrap: wrap; gap: 6px 28px; border-bottom: 1px solid var(--line-paper); margin-bottom: 28px; }
.sx-tab { position: relative; background: none; border: 0; padding: 14px 0 16px; cursor: pointer; font-family: var(--f-display); font-size: clamp(1rem, calc(1.25vw * var(--fs)), 1.15rem); font-weight: 500; color: var(--muted-paper); transition: color .3s; }
.sx-tab::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--accent-ink); transform: scaleX(0); transition: transform .5s var(--ease); }
.sx-tab:hover { color: var(--on-paper); }
.sx-tab[aria-selected="true"] { color: var(--on-paper); }
.sx-tab[aria-selected="true"]::after { transform: scaleX(1); }
.sx-card { position: relative; }
.sx-in { display: grid; grid-template-columns: 1.08fr 1fr; min-height: min(62vh, 560px); background: #fbfaf7; border: 1px solid var(--line-paper); border-radius: 22px; overflow: hidden; color: var(--on-paper); }
.sx-media { position: relative; overflow: hidden; background: var(--paper-2); }
.sx-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sx-in:hover .sx-media img { transform: scale(1.04); }
.sx-copy { display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding: clamp(28px, 4.2vw, 68px); }
.sx-copy h3 { font-size: clamp(2.2rem, calc(4.2vw * var(--fs)), 4.4rem); line-height: 1; }
.sx-pane.on .sx-media img { animation: sx-img 1.1s var(--ease) both; }
.sx-pane.on .sx-copy > * { animation: sx-up .8s var(--ease) both; }
.sx-pane.on .sx-copy > :nth-child(2) { animation-delay: .05s; }
.sx-pane.on .sx-copy > :nth-child(3) { animation-delay: .1s; }
.sx-pane.on .sx-copy > :nth-child(4) { animation-delay: .15s; }
.sx-pane.on .sx-copy > :nth-child(5) { animation-delay: .2s; }
@keyframes sx-img { from { clip-path: inset(0 0 0 100%); transform: scale(1.1); } to { clip-path: inset(0 0 0 0); transform: scale(1); } }
@keyframes sx-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.sc-n { font-size: .82rem; color: var(--muted-paper); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.sc-tag { font-family: var(--f-display); font-size: clamp(1.1rem, calc(1.5vw * var(--fs)), 1.4rem); font-weight: 500; color: var(--accent-ink); line-height: 1.35; }
.sc-lead { color: var(--muted-paper); font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; max-width: 50ch; }
@media (prefers-reduced-motion: reduce) { .sx-pane.on .sx-media img, .sx-pane.on .sx-copy > * { animation: none; } .svc-pic, .svc-pic img { transition: none; } .svc-row.on .svc-timer { animation: none; } }

/* ------------------------------------------------------------------ 6 · team */
.team { padding: clamp(90px, 13vh, 150px) 0 clamp(110px, 15vh, 180px); }
.tm-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 6vh, 72px) clamp(20px, 2.6vw, 44px); }
.tm-card { display: grid; gap: 18px; color: var(--white); }
.tm-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--ink-3); }
/* portraits start grey and turn to full colour as they scroll into view (motion.js); finished state = colour */
.tm-photo img { object-position: 50% 20%; }
.tm-meta { display: grid; gap: 6px; }
.tm-name { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, calc(2.5vw * var(--fs)), 2.6rem); line-height: 1.02; }
html[lang="he"] .tm-name { font-weight: 600; }
.tm-meta small { font-size: .92rem; color: var(--accent); }
.tm-grid-sm { grid-template-columns: repeat(5, 1fr); }
.tm-grid-sm .tm-name { font-size: clamp(1.1rem, calc(1.5vw * var(--fs)), 1.5rem); }

/* ------------------------------------------------------------------ 7 · clients marquee */
.clients { padding: clamp(80px, 12vh, 130px) 0 clamp(70px, 10vh, 110px); overflow: hidden; }
.clients-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 44px; gap: 24px; }
.mq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.mq-track { list-style: none; display: flex; width: max-content; animation: mq 55s linear infinite; }
[dir="rtl"] .mq-track { animation-name: mq-rtl; }
.mq:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
@keyframes mq-rtl { to { transform: translateX(50%); } }
.mq-item { flex: none; width: 210px; height: 124px; margin-inline: 10px; background: #fff; border: 1px solid var(--line-paper); border-radius: 16px; display: grid; place-items: center; padding: 18px 22px; }
.mq-item img { max-height: 80px; max-width: 100%; width: auto; object-fit: contain; }

/* ------------------------------------------------------------------ 8 · updates */
.news { padding: clamp(40px, 6vh, 80px) 0 clamp(100px, 14vh, 160px); }
.news-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 4vh, 48px) clamp(20px, 2.6vw, 44px); }
.news-grid > .art { grid-column: span 5; }
.news-grid > .art-big { grid-column: span 7; grid-row: span 2; }
.news-all { grid-template-columns: repeat(3, 1fr); }
.news-all > .art, .news-all > .art-big { grid-column: auto; grid-row: auto; }
.news-all > .art-big { grid-column: span 2; }
.art { display: grid; gap: 16px; align-content: start; color: var(--on-paper); }
.art-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.art-big .art-media { aspect-ratio: 4 / 3; }
.news-all .art-big .art-media { aspect-ratio: 16 / 9; }
.reveal-mask { transition: transform 1.2s var(--ease); }
.art-body { display: grid; gap: 8px; }
.art time { font-size: .84rem; color: var(--muted-paper); font-variant-numeric: tabular-nums; }
.art h3 { font-size: clamp(1.2rem, calc(1.5vw * var(--fs)), 1.45rem); line-height: 1.25; }
.art-big h3 { font-size: clamp(1.6rem, calc(2.6vw * var(--fs)), 2.5rem); line-height: 1.12; }
.art p { color: var(--muted-paper); max-width: 60ch; }

/* ------------------------------------------------------------------ 9 · finale */
.finale { position: relative; overflow: hidden; padding: clamp(120px, 18vh, 200px) 0 clamp(90px, 13vh, 140px); }
.finale-photo { position: absolute; inset: 0; }
.finale-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.finale-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--ink) 0%, rgba(10, 15, 23, .55) 40%, var(--ink) 100%); }
.finale-in { position: relative; }
.finale-title { font-size: clamp(2.8rem, calc(7.6vw * var(--fs)), 8.4rem); line-height: .98; margin-bottom: clamp(48px, 8vh, 96px); max-width: 14ch; }
html[lang="he"] .finale-title { font-weight: 600; }
.finale-grid { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(40px, 6vw, 110px); align-items: start; }
.finale-details { display: grid; gap: 14px; justify-items: start; }
.finale-phone { font-family: "Inter Tight", var(--f-display); font-weight: 300; font-size: clamp(2.4rem, calc(5vw * var(--fs)), 4.8rem); line-height: 1; letter-spacing: -.03em; transition: color .3s; }
.finale-phone:hover, .finale-mail:hover { color: var(--accent); }
.finale-mail { font-size: clamp(1.1rem, calc(1.6vw * var(--fs)), 1.5rem); transition: color .3s; }
.finale-addr { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-ink); display: grid; gap: 6px; justify-items: start; }
.finale-addr small { font-size: .82rem; color: var(--accent); letter-spacing: .06em; }
.finale-addr p { font-family: var(--f-display); font-size: clamp(1.3rem, calc(2vw * var(--fs)), 1.9rem); line-height: 1.25; }
.finale-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.finale-form { background: var(--ink-2); border: 1px solid var(--line-ink); border-radius: 22px; padding: clamp(24px, 3vw, 40px); }
.finale-form h3 { font-size: 1.35rem; margin-bottom: 8px; }
.finale-form .muted { margin-bottom: 14px; font-size: .94rem; }

/* ------------------------------------------------------------------ forms */
.lead-form { --fl: rgba(10, 15, 23, .28); --err: #b42318; }
.ink .lead-form, .side-contact .lead-form { --fl: rgba(255, 255, 255, .3); --err: #ffb4ab; }
.lead-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.is-compact .lead-fields { grid-template-columns: 1fr; }
.field { display: grid; gap: 2px; padding-top: 10px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .84rem; color: inherit; opacity: .8; }
.req { color: var(--accent-ink); }
.ink .req, .side-contact .req { color: var(--accent); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1.02rem; color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--fl); padding: 10px 0; border-radius: 0; resize: vertical; transition: border-color .3s; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent-ink); box-shadow: 0 1px 0 var(--accent-ink); }
.ink .field input:focus, .ink .field textarea:focus, .side-contact .field input:focus { border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field [aria-invalid="true"] { border-bottom-color: var(--err); }
.field-err { color: var(--err); font-size: .84rem; margin-top: 4px; }
.btn-submit { margin-top: 24px; }
.form-thanks { display: flex; gap: 12px; align-items: flex-start; padding: 18px 0; font-size: 1.05rem; }
.form-thanks[hidden] { display: none; }
.thanks-ico { color: var(--accent); width: 26px; height: 26px; }
.paper .thanks-ico { color: var(--accent-ink); }

/* ------------------------------------------------------------------ inner page hero */
.ph { background: var(--ink); color: var(--on-ink); padding-top: calc(var(--hdr) + clamp(44px, 9vh, 110px)); }
.ph-plain { padding-bottom: clamp(60px, 10vh, 110px); }
.ph-in { position: relative; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--muted-ink); margin-bottom: clamp(24px, 4vh, 44px); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .5; }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: var(--on-ink); }
.ph-title { font-size: clamp(2.6rem, calc(6.4vw * var(--fs)), 6.8rem); line-height: 1; max-width: 16ch; color: var(--white); }
.ph-title.ph-long { font-size: clamp(2rem, calc(3.8vw * var(--fs)), 4rem); line-height: 1.08; max-width: 26ch; }
html[lang="he"] .ph-title { font-weight: 600; }
.ph-lead { margin-top: clamp(20px, 3.5vh, 34px); font-size: clamp(1.08rem, calc(1.4vw * var(--fs)), 1.35rem); color: var(--muted-ink); max-width: 56ch; line-height: 1.55; }
.ph-meta { margin-top: 18px; color: var(--accent); font-size: .95rem; }
.ph-media { margin-top: clamp(40px, 8vh, 90px); background: linear-gradient(to bottom, var(--ink) 50%, var(--paper) 50%); }
.ph-frame { position: relative; height: clamp(280px, 64vh, 680px); overflow: hidden; }
.ph-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.sect { padding: clamp(72px, 11vh, 130px) 0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.sidebar-sticky { position: sticky; top: calc(var(--hdr) + 24px); }
.empty { color: var(--muted-paper); }

/* prose + blocks */
.prose { max-width: 72ch; font-size: 1.07rem; line-height: 1.78; color: #1c2330; }
.prose > p { margin-bottom: 1.15em; }
.prose .lead { font-family: var(--f-display); font-size: clamp(1.3rem, calc(1.8vw * var(--fs)), 1.6rem); line-height: 1.45; color: var(--on-paper); margin-bottom: 1.2em; }
.b-h2 { font-size: clamp(1.7rem, calc(2.6vw * var(--fs)), 2.5rem); margin: 1.8em 0 .6em; line-height: 1.12; }
.b-h3 { font-size: clamp(1.2rem, calc(1.5vw * var(--fs)), 1.4rem); margin: 1.5em 0 .5em; }
.b-list { list-style: none; display: grid; gap: 12px; margin: 0 0 1.4em; }
.b-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.li-mark { width: 14px; height: 1px; background: var(--accent-ink); margin-top: .9em; }
.b-features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin: 1em 0 2em; }
.feature { border-top: 1px solid var(--line-paper); padding-top: 18px; }
.feat-n { font-size: .78rem; color: var(--accent-ink); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.feature h3 { font-size: 1.16rem; margin: 8px 0 6px; line-height: 1.3; }
.feature p { font-size: .98rem; color: var(--muted-paper); line-height: 1.6; }
.b-steps { list-style: none; display: grid; gap: 22px; margin: 1em 0 2em; }
.b-steps li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; border-top: 1px solid var(--line-paper); padding-top: 18px; }
.step-n { font-family: "Inter Tight", var(--f-display); font-weight: 200; font-size: 2.4rem; line-height: 1; color: var(--accent-ink); }
.b-steps h3 { font-size: 1.15rem; margin-bottom: 4px; }
.b-steps p { color: var(--muted-paper); font-size: .98rem; }
.b-quote { margin: 1.6em 0; padding: 4px 0; padding-inline-start: 26px; border-inline-start: 2px solid var(--accent-ink); font-family: var(--f-display); font-size: clamp(1.25rem, calc(1.8vw * var(--fs)), 1.6rem); line-height: 1.45; color: var(--on-paper); }
.b-cta { margin: 2.2em 0 1em; padding: clamp(26px, 3.4vw, 44px); background: var(--ink); color: var(--on-ink); border-radius: 22px; }
.b-cta p { font-family: var(--f-display); font-size: clamp(1.2rem, calc(1.7vw * var(--fs)), 1.55rem); line-height: 1.4; margin-bottom: 22px; }
.b-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.b-cta .btn-accent { background: var(--accent); color: var(--ink); }
.b-cta .btn-accent:hover { background: var(--white); }
.b-cta .btn-line:hover { background: var(--white); color: var(--ink); }
.prose-fig { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; margin: 2em 0 0; }

/* side cards */
.side-card { background: #fbfaf7; border: 1px solid var(--line-paper); border-radius: 20px; padding: 26px; margin-bottom: 20px; }
.side-card h2 { font-size: 1.15rem; margin-bottom: 14px; }
.side-list ul { list-style: none; }
.side-list li a { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line-paper); font-size: .97rem; transition: color .2s; }
.side-list li:last-child a { border-bottom: 0; }
.side-list a:hover, .side-list a[aria-current="page"] { color: var(--accent-ink); }
.side-list a[aria-current="page"] { font-weight: 600; }
.sl-n { font-size: .74rem; color: var(--muted-paper); font-variant-numeric: tabular-nums; }
.side-articles small { display: block; font-size: .8rem; color: var(--muted-paper); margin-top: 2px; }
.side-contact { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.side-contact p { color: var(--muted-ink); font-size: .93rem; }
.side-contact .btn-accent { background: var(--accent); color: var(--ink); }
.side-contact .btn-accent:hover { background: var(--white); }
.side-direct { display: grid; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-ink); font-size: .93rem; }
.side-direct a { display: flex; align-items: center; gap: 10px; }
.side-direct a:hover { color: var(--accent); }
.side-direct .ico { width: 17px; height: 17px; color: var(--accent); }
.side-facts .facts { grid-template-columns: 1fr 1fr; border-top-color: var(--line-paper); }
.side-facts .facts li { padding-top: 14px; }
.side-facts .facts strong { font-size: 2.2rem; color: var(--on-paper); }
.side-facts .facts span { color: var(--muted-paper); font-size: .82rem; }
.side-note { margin-top: 16px; font-size: .88rem; color: var(--muted-paper); }

/* listings */
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(44px, 7vh, 80px) clamp(24px, 3vw, 48px); }
.tile-grid-sec, .tile-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tile { display: grid; gap: 20px; align-content: start; color: var(--on-paper); }
.ink .tile { color: var(--white); }
.tile-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.ink .tile-media { background: var(--ink-3); }
.tile:hover .reveal-mask, .art:hover .reveal-mask { transform: scale(1.035); }
.tile-body { display: grid; gap: 8px; }
.tile-n { font-size: .8rem; color: var(--accent-ink); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.ink .tile-n { color: var(--accent); }
.tile h3 { font-size: clamp(1.4rem, calc(2.1vw * var(--fs)), 2.1rem); }
.tile-grid-3 .tile h3, .tile-grid-sec .tile h3 { font-size: clamp(1.3rem, calc(1.7vw * var(--fs)), 1.7rem); }
.tile p { color: var(--muted-paper); max-width: 48ch; }
.ink .tile p { color: var(--muted-ink); }
.index-list { list-style: none; border-bottom: 1px solid var(--line-ink); }
.index-list a { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.25fr) 24px; gap: 24px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line-ink); transition: color .3s; }
.ix-n { font-size: .8rem; color: var(--muted-ink); font-variant-numeric: tabular-nums; }
.ix-t { font-family: var(--f-display); font-size: clamp(1.35rem, calc(2.4vw * var(--fs)), 2.3rem); font-weight: 500; line-height: 1.1; transition: color .3s; }
.ix-s { color: var(--muted-ink); font-size: .96rem; }
.ix-a { width: 22px; height: 22px; color: var(--accent); transition: transform .5s var(--ease); }
.index-list a:hover .ix-t { color: var(--accent); }
.index-list a:hover .ix-a { transform: translateX(6px); }
[dir="rtl"] .index-list a:hover .ix-a { transform: scaleX(-1) translateX(6px); }

/* profile */
.profile-main { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.profile-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.profile-photo img { object-position: 50% 20%; }
.back-link .back-ico { width: 18px; height: 18px; transform: scaleX(-1); }
[dir="rtl"] .back-link .back-ico { transform: none; }

/* forms page */
.forms-search { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--on-paper); padding: 8px 0; margin-bottom: 18px; }
.forms-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-family: var(--f-display); font-size: clamp(1.2rem, calc(2vw * var(--fs)), 1.6rem); padding: 8px 0; color: inherit; }
.forms-search input:focus { outline: none; }
.forms-search:focus-within { border-bottom-color: var(--accent-ink); box-shadow: 0 1px 0 var(--accent-ink); }
.forms-count { font-size: .85rem; color: var(--muted-paper); white-space: nowrap; }
.forms-list { list-style: none; }
.forms-list li { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-paper); }
.forms-list li[hidden] { display: none; }
.form-type { justify-self: start; font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--accent-ink); border: 1px solid currentColor; border-radius: 4px; padding: 2px 6px; }
.form-title { font-size: 1.02rem; }
.attachments { margin-top: 2em; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.form-card { background: #fbfaf7; border: 1px solid var(--line-paper); border-radius: 22px; padding: clamp(24px, 3.4vw, 48px); }
.form-card h2 { font-size: clamp(1.4rem, calc(2vw * var(--fs)), 1.9rem); margin-bottom: 8px; }
.form-card .muted { margin-bottom: 8px; }
.contact-side h2 { font-size: 1.2rem; margin-bottom: 8px; }
.c-list { list-style: none; margin-bottom: 18px; }
.c-list li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line-paper); }
.c-list small { font-size: .8rem; color: var(--muted-paper); }
.c-list a, .c-list span { font-family: var(--f-display); font-size: clamp(1.1rem, calc(1.5vw * var(--fs)), 1.35rem); }
.c-list a:hover { color: var(--accent-ink); }
.map-sec { padding-bottom: clamp(80px, 12vh, 130px); }
.map-card { position: relative; height: clamp(320px, 56vh, 520px); border-radius: 22px; overflow: hidden; border: 1px solid var(--line-paper); }
.map-card iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-open { margin-top: 14px; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: #06090e; color: var(--on-ink); padding: clamp(64px, 10vh, 100px) 0 28px; }
.ft-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; }
.ft-logo { display: inline-flex; margin-bottom: 20px; }
.ft-slogan { font-family: var(--f-display); font-size: 1.6rem; font-weight: 500; color: var(--white); margin-bottom: 12px; }
.ft-gmn { font-size: .88rem; color: var(--muted-ink); max-width: 36ch; margin-bottom: 18px; }
.ft-social { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted-ink); }
.ft-social:hover { color: var(--white); }
.ft-social .ico { width: 18px; height: 18px; }
.ft-col h2 { font-family: var(--f-body); font-size: .8rem; font-weight: 600; color: var(--accent); letter-spacing: .06em; margin-bottom: 16px; }
.ft-col ul { list-style: none; display: grid; gap: 9px; }
.ft-col a, .ft-col span { font-size: .9rem; color: var(--muted-ink); transition: color .2s; }
.ft-col a:hover { color: var(--white); }
.ft-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-ink); font-size: .82rem; color: var(--muted-ink); }
.ft-bottom a:hover { color: var(--white); }

/* ------------------------------------------------------------------ floaters + a11y (bottom-left), chat (bottom-right) */
.floaters { position: fixed; left: 20px; bottom: 20px; z-index: 80; display: grid; gap: 10px; }
.fl { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); transition: transform .3s var(--ease); }
.fl:hover { transform: translateY(-3px); }
.fl .ico { width: 23px; height: 23px; }
.fl-wa { background: #15803d; }
.fl-call { background: var(--ink); border: 1px solid rgba(255, 255, 255, .28); }
.a11y { position: fixed; left: 20px; bottom: 80px; z-index: 81; }
.a11y-btn { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: var(--accent-ink); color: #fff; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.a11y-panel { position: absolute; bottom: 62px; left: 0; width: 290px; background: #fff; color: var(--on-paper); border-radius: 18px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); padding: 18px; }
.a11y-panel[hidden] { display: none; }
.a11y-title { font-weight: 600; margin-bottom: 12px; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; background: var(--paper); border: 1px solid var(--line-paper); border-radius: 12px; color: var(--on-paper); font-size: .84rem; cursor: pointer; }
.a11y-grid button:hover { border-color: var(--accent-ink); }
.a11y-grid button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.a11y-grid .a11y-reset { grid-column: 1 / -1; flex-direction: row; justify-content: center; }
.a11y-statement { display: block; margin-top: 12px; font-size: .88rem; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-links a, html.a11y-links button.btn { outline: 2px solid currentColor; outline-offset: 2px; }
html.a11y-links a:hover, html.a11y-links a:focus-visible { background: #ffe066; color: #000 !important; }
.a11y-grid .a11y-wide { grid-column: 1 / -1; flex-direction: row; justify-content: center; }
/* bigger text: let long words wrap instead of running off the screen */
html[style*="--fs"] h1, html[style*="--fs"] h2, html[style*="--fs"] h3 { overflow-wrap: anywhere; }
/* stop animations: kill every transition/keyframe, marquees and smooth effects */
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-contrast { --ink: #000; --ink-2: #000; --ink-3: #000; --paper-2: #ffffff; --on-paper: #000; --white: #fff; --paper: #ffffff; --muted-paper: #000; --muted-ink: #ffffff; --on-ink: #ffffff; --accent-ink: #003c73; --accent: #9ad4ff; --line-paper: rgba(0, 0, 0, .5); --line-ink: rgba(255, 255, 255, .55); }
html.a11y-contrast .ink, html.a11y-contrast .ph, html.a11y-contrast .site-footer { background: #000; }
html.a11y-contrast .quad-shade, html.a11y-contrast .quad:nth-child(-n+2) .quad-shade { background: rgba(0, 0, 0, .72); }
html.a11y-contrast .ap-shade { background: rgba(0, 0, 0, .82); }
html.a11y-contrast .finale-photo img { opacity: .08; }
html.a11y-contrast .prose { color: #000; }
html.a11y-contrast .sx-in, html.a11y-contrast .side-card:not(.side-contact), html.a11y-contrast .form-card { background: #fff; border-color: #000; }

/* ------------------------------------------------------------------ chat assistant (js/chat.js) */
.ch-host { position: fixed; right: 20px; bottom: 20px; z-index: 1000; font-family: var(--f-body); }
.ch-launch { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 1px solid rgba(98, 184, 243, .55); cursor: pointer; color: #fff; background: var(--ink); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); display: grid; place-items: center; transition: transform .3s var(--ease), border-color .3s; }
.ch-launch:hover { transform: translateY(-2px); border-color: var(--accent); }
.ch-launch:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.ch-launch > span:not(.ch-ring) { grid-area: 1 / 1; display: grid; place-items: center; line-height: 0; }
.ch-launch svg { width: 27px; height: 27px; display: block; }
.ch-launch::after { content: ""; position: absolute; top: 4px; inset-inline-end: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink); }
.ch-host.is-open .ch-launch::after { display: none; }
.ch-launch > span.ch-ico-close, .ch-host.is-open .ch-launch > span.ch-ico-open { display: none; }
.ch-host.is-open .ch-launch > span.ch-ico-close { display: grid; }
.ch-ring { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; pointer-events: none; }
.ch-host.is-fresh .ch-ring { animation: ch-ring 2.6s ease-out infinite; }
.ch-host.is-fresh .ch-ring-2 { animation-delay: 1.3s; }
@keyframes ch-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.ch-teaser { position: absolute; bottom: 80px; right: 0; width: 310px; animation: ch-pop .45s var(--ease); }
.ch-teaser[hidden] { display: none; }
.ch-teaser-msg { position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; border: 1px solid var(--line-paper); background: #fff; border-radius: 18px; border-bottom-right-radius: 4px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); padding: 16px 18px; text-align: start; font: inherit; color: var(--on-paper); cursor: pointer; }
.ch-teaser-av { width: 38px; height: 38px; border-radius: 50%; background: var(--paper); padding: 7px; flex-shrink: 0; }
.ch-teaser-body { display: grid; min-height: 38px; align-content: center; }
.ch-teaser-text { display: grid; gap: 3px; font-size: .95rem; line-height: 1.45; }
.ch-teaser-text strong { font-weight: 600; font-family: var(--f-display); font-size: 1.02rem; }
.ch-teaser-cta { margin-top: 8px; justify-self: start; font-size: .82rem; font-weight: 600; color: var(--accent-ink); border-bottom: 1px solid currentColor; }
.ch-teaser-x { position: absolute; top: -11px; left: -11px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-paper); background: #fff; color: var(--on-paper); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); cursor: pointer; display: grid; place-items: center; z-index: 1; }
.ch-teaser-x svg { width: 14px; height: 14px; }
.ch-wave { display: inline-block; transform-origin: 70% 70%; animation: ch-wave 2.4s ease-in-out infinite; }
@keyframes ch-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }
.ch-panel { position: absolute; bottom: 78px; right: 0; width: 390px; height: min(620px, calc(100vh - 120px)); background: var(--paper); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); display: flex; flex-direction: column; overflow: hidden; animation: ch-pop .3s var(--ease); border: 1px solid var(--line-paper); }
.ch-panel[hidden] { display: none; }
@keyframes ch-pop { from { transform: translateY(12px) scale(.97); } }
.ch-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--ink); color: #fff; }
.ch-avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 7px; object-fit: contain; flex-shrink: 0; }
.ch-head h2 { font-size: 1.05rem; font-weight: 600; margin: 0; color: #fff; line-height: 1.3; }
.ch-head p { margin: 0; font-size: .82rem; color: var(--muted-ink); }
.ch-x { margin-inline-start: auto; width: 36px; height: 36px; border: 1px solid var(--line-ink); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.ch-x:hover { border-color: var(--accent); }
.ch-x svg { width: 18px; height: 18px; }
.ch-log { position: relative; flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; color: var(--on-paper); }
.ch-msg { max-width: 88%; padding: 11px 15px; border-radius: 16px; font-size: .93rem; line-height: 1.55; overflow-wrap: anywhere; }
.ch-msg p { margin: 0 0 6px; }
.ch-msg p:last-child { margin-bottom: 0; }
.ch-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line-paper); border-start-start-radius: 4px; }
.ch-user { align-self: flex-end; background: var(--ink); color: #fff; border-start-end-radius: 4px; }
.ch-sub { color: var(--muted-paper); font-size: .84rem; margin-top: 4px !important; }
.ch-ul { margin: 4px 0 8px; padding-inline-start: 18px; }
.ch-ul li { margin-bottom: 3px; }
.ch-link { color: var(--accent-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.ch-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ch-chip { border: 1px solid var(--line-paper); background: var(--paper); color: var(--on-paper); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: .85rem; cursor: pointer; text-align: start; transition: border-color .2s, background .2s; }
.ch-chip:hover { border-color: var(--accent-ink); background: #fff; }
.ch-chip.is-talk { background: var(--ink); color: #fff; border-color: var(--ink); }
.ch-chip.is-talk:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.ch-more { margin-top: 8px; border: 0; background: none; color: var(--accent-ink); font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer; padding: 0; text-decoration: underline; }
.ch-acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.ch-act { display: inline-flex; align-items: center; gap: 4px; padding: 7px 13px; border-radius: 999px; background: var(--ink); color: #fff !important; font-size: .85rem; font-weight: 500; text-decoration: none !important; }
.ch-act-wa { background: #15803d; }
.ch-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.ch-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-paper); opacity: .5; animation: ch-dot 1s infinite; }
.ch-typing i:nth-child(2) { animation-delay: .15s; }
.ch-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ch-dot { 50% { opacity: 1; transform: translateY(-3px); } }
.ch-form { display: grid; gap: 8px; margin-top: 10px; }
.ch-form label { display: grid; gap: 3px; font-size: .82rem; color: var(--muted-paper); }
.ch-form input, .ch-form textarea { font: inherit; font-size: .92rem; padding: 8px 10px; border: 1px solid var(--line-paper); border-radius: 10px; color: var(--on-paper); background: #fff; resize: vertical; }
.ch-form input:focus, .ch-form textarea:focus { outline: 2px solid var(--accent-ink); outline-offset: 0; }
.ch-err { color: #b42318; font-size: .84rem; margin: 0; }
.ch-submit { border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; padding: 10px; cursor: pointer; }
.ch-submit:disabled, .ch-form input:disabled, .ch-form textarea:disabled { opacity: .6; cursor: default; }
.ch-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line-paper); background: #fff; }
.ch-input input { flex: 1; min-width: 0; font: inherit; font-size: .95rem; padding: 10px 14px; border: 1px solid var(--line-paper); border-radius: 999px; color: var(--on-paper); }
.ch-input input:focus { outline: 2px solid var(--accent-ink); outline-offset: 0; }
.ch-input button { width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; }
.ch-input button:hover { background: var(--accent-ink); }
.ch-input button svg { width: 20px; height: 20px; }
[dir="rtl"] .ch-input button svg { transform: scaleX(-1); }
html.a11y-contrast .ch-bot { border-color: #000; }
/* high contrast covers everything: no dimmed words, no faded photos behind text, solid borders */
html.a11y-contrast .w, html.a11y-contrast .field label { opacity: 1 !important; }
html.a11y-contrast body { background: #fff; color: #000; }
html.a11y-contrast img { filter: contrast(1.15); }
html.a11y-contrast .olim-band-photo img { opacity: .08; }
html.a11y-contrast .ink, html.a11y-contrast .ink h1, html.a11y-contrast .ink h2, html.a11y-contrast .ink h3, html.a11y-contrast .ink p, html.a11y-contrast .ink li, html.a11y-contrast .ink small, html.a11y-contrast .site-footer, html.a11y-contrast .site-footer a, html.a11y-contrast .site-footer span { color: #fff; }
html.a11y-contrast .ink a:not(.btn), html.a11y-contrast .site-footer a { color: #ffe066; }
html.a11y-contrast a:not(.btn):not(.ch-act) { text-decoration: underline; }
html.a11y-contrast .btn, html.a11y-contrast input, html.a11y-contrast textarea, html.a11y-contrast select { border: 2px solid currentColor; }
html.a11y-contrast .btn-accent { background: #ffe066; color: #000; }

/* ------------------------------------------------------------------ static fallbacks (reduced motion / no GSAP) */
html.no-motion .ap-year, html.no-motion .ap-kicker, html.no-motion .scroll-cue { display: none; }
html.no-motion .mq-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 16px; }
html.no-motion .mq { -webkit-mask-image: none; mask-image: none; }
html.no-motion .mq-dup { display: none; }
/* ------------------------------------------------------------------ new olim: home chapter + hub page */
html[lang="ru"] h1, html[lang="ru"] h2 { letter-spacing: -.02em; }
.finale-sub { font-size: clamp(1.05rem, calc(1.4vw * var(--fs)), 1.25rem); color: var(--muted-ink); max-width: 56ch; margin: calc(-1 * clamp(24px, 5vh, 64px)) 0 clamp(40px, 6vh, 72px); }
.b-link { margin: 1.4em 0; }
.olim-band { position: relative; overflow: hidden; padding: clamp(96px, 16vh, 180px) 0; }
.olim-band-photo { position: absolute; inset: 0; }
.olim-band-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.olim-band-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(10, 15, 23, .15) 0%, var(--ink) 72%); }
[dir="rtl"] .olim-band-photo::after { background: linear-gradient(to right, rgba(10, 15, 23, .15) 0%, var(--ink) 72%); }
.olim-band-in { position: relative; }
.olim-band-copy { max-width: 760px; }
.olim-band-text { margin-top: 22px; font-size: clamp(1.05rem, calc(1.4vw * var(--fs)), 1.25rem); color: var(--muted-ink); max-width: 56ch; }
.olim-points { list-style: none; display: grid; gap: 12px; margin: 30px 0 38px; }
.olim-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.olim-points .ico, .olim-check-list .ico { width: 20px; height: 20px; color: var(--accent); flex: none; }
.olim-news { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.olim-news-tag { display: inline-block; font-family: var(--f-display); font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: var(--ink); background: var(--accent); border-radius: 999px; padding: 3px 12px; margin-bottom: 14px; }
.olim-news-item { border-top: 1px solid var(--line-ink); padding-top: 14px; margin-top: 14px; }
.olim-news-item h3 { font-size: 1rem; line-height: 1.35; margin-bottom: 6px; color: var(--white); }
.olim-news-item p { font-size: .9rem; line-height: 1.6; color: var(--muted-ink); }
.olim-news .side-note { color: var(--accent); }
.olim-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); margin-top: clamp(40px, 6vh, 72px); }
.olim-step { border-top: 1px solid var(--line-ink); padding-top: 22px; position: relative; }
.olim-step::before { content: ""; position: absolute; top: -4px; inset-inline-start: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.olim-step-n { display: block; font-family: var(--f-display); font-size: .85rem; color: var(--accent); margin-bottom: 10px; }
.olim-step h3 { font-size: clamp(1.3rem, calc(1.8vw * var(--fs)), 1.7rem); margin-bottom: 16px; color: var(--white); }
.olim-step ul { list-style: none; display: grid; gap: 10px; }
.olim-step li { color: var(--muted-ink); font-size: .97rem; line-height: 1.55; padding-inline-start: 16px; position: relative; }
.olim-step li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 6px; height: 1px; background: var(--accent); }
.olim-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(36px, 5vh, 60px); }
.olim-card { display: flex; flex-direction: column; gap: 10px; background: #fbfaf7; border: 1px solid var(--line-paper); border-radius: 20px; padding: 28px; transition: border-color .3s, transform .4s var(--ease); }
.olim-card:hover { border-color: var(--accent-ink); transform: translateY(-3px); }
.olim-card-n { font-family: var(--f-display); font-size: .85rem; color: var(--accent-ink); }
.olim-card h3 { font-size: 1.25rem; line-height: 1.25; }
.olim-card p { color: var(--muted-paper); font-size: .97rem; line-height: 1.6; flex: 1; }
.olim-help { padding-top: 0; }
.olim-help-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.olim-help .b-h2 { margin-top: 0; }
.olim-check { background: var(--paper-2); border-radius: 20px; padding: clamp(24px, 3vw, 40px); }
.olim-check .muted { margin-bottom: 20px; }
.olim-check-list { list-style: none; display: grid; gap: 12px; }
.olim-check-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.olim-check-list .ico { color: var(--accent-ink); margin-top: 2px; }
.olim-q { border-top: 1px solid var(--line-paper); }
.olim-q:last-of-type { border-bottom: 1px solid var(--line-paper); }
.olim-q summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; font-family: var(--f-display); font-weight: 500; font-size: 1.12rem; line-height: 1.35; }
.olim-q summary::-webkit-details-marker { display: none; }
.olim-q-ico { width: 20px; height: 20px; color: var(--accent-ink); transition: transform .3s var(--ease); }
.olim-q[open] .olim-q-ico { transform: rotate(45deg); }
.olim-q p { padding: 0 0 22px; color: var(--muted-paper); line-height: 1.7; max-width: 68ch; }
.olim-callout { margin-top: 2.4em; padding: 26px 28px; border-radius: 20px; background: var(--ink); color: var(--on-ink); }
.olim-callout .kicker { color: var(--accent); margin-bottom: 10px; }
.olim-callout p { margin-bottom: 14px; font-size: 1.05rem; line-height: 1.6; }
.olim-callout .tlink { color: var(--on-ink); }
.olim-disclaimer { margin-top: 24px; font-size: .85rem; color: var(--muted-paper); }
@media (max-width: 1100px) {
  .olim-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .olim-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .olim-help-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .olim-steps, .olim-cards { grid-template-columns: minmax(0, 1fr); }
  .olim-band-photo img { opacity: .2; }
  .finale-sub { margin-top: -16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1480px) {
  .hdr-in { gap: 16px; }
  .nav-link { padding-inline: 8px; font-size: .9rem; }
  .hdr-phone span[dir] { display: none; }
  .hdr-phone { padding: 10px; }
  .hdr-actions { gap: 10px; }
}
@media (max-width: 1280px) {
  html:not([lang="he"]) .brand-text small { display: none; }
  .nav-link { padding-inline: 7px; font-size: .86rem; }
}
@media (max-width: 1240px) {
  .main-nav, .hdr-phone, .lang-top { display: none; }
  .burger { display: grid; margin-inline-start: auto; }
  .hdr-actions { margin-inline-start: auto; }
}
/* English, Spanish and Russian nav labels are longer: switch to the menu button earlier */
@media (max-width: 1460px) {
  html:not([lang="he"]) .main-nav, html:not([lang="he"]) .hdr-phone, html:not([lang="he"]) .lang-top { display: none; }
  html:not([lang="he"]) .burger { display: grid; margin-inline-start: auto; }
  html:not([lang="he"]) .hdr-actions { margin-inline-start: auto; }
}
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { max-width: 640px; }
  .sidebar-sticky { position: static; }
  .ft-grid { grid-template-columns: 1fr 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
  .tm-grid-sm { grid-template-columns: repeat(3, 1fr); }
  .finale-grid { grid-template-columns: 1fr; }
  .finale-form { max-width: 640px; }
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .tile-grid-sec, .tile-grid-3 { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-grid > .art, .news-grid > .art-big { grid-column: auto; grid-row: auto; }
  .news-grid > .art-big { grid-column: 1 / -1; }
  .news-all { grid-template-columns: 1fr 1fr; }
  .facts-ap { grid-template-columns: repeat(2, 1fr); }
  .profile-main { grid-template-columns: 1fr; }
  .profile-photo { max-width: 320px; }
}

@media (max-width: 767.98px) {
  :root { --hdr: 64px; --gut: 16px; }
  .brand-he { height: 30px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: .95rem; }
  .burger { width: 42px; height: 42px; }

  /* intro keeps the 2x2 split on phones; taglines go, titles stay */
  .quad-copy { inset-inline-start: 14px; max-width: calc(100% - 22px); gap: 4px; }
  .quad:nth-child(-n+2) .quad-copy { top: calc(var(--hdr) + 14px); }
  .quad:nth-child(n+3) .quad-copy { bottom: 190px; }
  .quad-t { font-size: 1.12rem; line-height: 1.15; }
  .quad-s { display: none; }
  .quad-more { font-size: .8rem; }
  .badge { width: 132px; height: 132px; }
  .badge-in { padding: 12px; gap: 6px; }
  .wm-name { font-size: .95rem; }
  .wm-slogan { font-size: .66rem; }
  .scroll-cue { display: none; }

  .mani { min-height: 0; padding: 96px 0 80px; }
  .mani-slogan { font-size: clamp(2.8rem, calc(14vw * var(--fs)), 4rem); }
  .mani-text { font-size: 1.2rem; }

  .ap { height: auto; min-height: 0; padding: 80px 0 72px; }
  .ap-stage { position: static; }
  .ap-kicker { position: static; justify-content: flex-start; padding-inline: var(--gut); margin-bottom: 22px; }
  .ap-kicker::before { display: block; }
  .ap-year { display: none; }
  .ap-photo { position: relative; inset: auto; width: calc(100% - 2 * var(--gut)); margin-inline: auto; aspect-ratio: 4 / 5; border-radius: 4px; }
  .ap-shade { display: none; }
  .ap-over { position: static; padding: 36px 0 0; color: var(--on-paper); pointer-events: auto; }
  .ap-title { font-size: 1.5rem; margin-bottom: 28px; }
  .facts { border-top-color: var(--line-paper); }
  .facts-ap { grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .facts strong { font-size: 2.6rem; }
  .facts-ap span, .ap-gmn { color: var(--muted-paper); }
  .ap-foot { flex-direction: column; align-items: flex-start; }
  .ap .tlink-light { color: var(--on-paper); }

  .svc { padding: 80px 0; }
  .svc-head, .svc-body { grid-template-columns: 1fr; }
  .svc-view { display: none; }
  .svc-sel { grid-template-columns: 2.4rem 1fr; gap: 12px; padding: 18px 0; }
  .svc-title { font-size: 1.3rem; }
  .svc-more { padding-inline-start: calc(2.4rem + 12px); }

  .sec { padding: 80px 0; }
  .sx-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 22px; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
  .sx-tabs::-webkit-scrollbar { display: none; }
  .sx-tab { white-space: nowrap; flex: none; }
  .sx-in { grid-template-columns: 1fr; min-height: 0; }
  .sx-media { aspect-ratio: 16 / 10; }
  .sx-copy { padding: 24px 22px 28px; gap: 10px; }
  .sx-copy h3 { font-size: 2rem; }

  .team { padding: 80px 0 90px; }
  .tm-grid, .tm-grid-sm { grid-template-columns: 1fr 1fr; gap: 32px 14px; }
  .tm-name, .tm-grid-sm .tm-name { font-size: 1.2rem; }
  .tm-meta small { font-size: .8rem; }

  .clients-head { margin-bottom: 28px; }
  .mq-item { width: 150px; height: 96px; margin-inline: 7px; padding: 12px 14px; }
  .mq-item img { max-height: 62px; }

  .news-grid, .news-all { grid-template-columns: 1fr; }
  .news-all > .art-big { grid-column: auto; }

  .finale { padding: 96px 0 88px; }
  .finale-title { font-size: clamp(2.4rem, calc(12vw * var(--fs)), 3.4rem); }
  .finale-phone { font-size: 2.5rem; }
  .lead-fields { grid-template-columns: 1fr; }

  .ph { padding-top: calc(var(--hdr) + 40px); }
  .ph-title { font-size: clamp(2.3rem, calc(11vw * var(--fs)), 3.2rem); }
  .ph-title.ph-long { font-size: clamp(1.7rem, calc(7.4vw * var(--fs)), 2.2rem); }
  .ph-media { margin-top: 36px; padding-inline: var(--gut); }
  .ph-frame { height: 240px; border-radius: 14px; }

  .tile-grid, .tile-grid-sec, .tile-grid-3 { grid-template-columns: 1fr; }
  .index-list a { grid-template-columns: 34px minmax(0, 1fr) 22px; gap: 12px; padding: 20px 0; }
  .ix-s { grid-column: 2 / 3; grid-row: 2; font-size: .9rem; }
  .ix-a { grid-column: 3; grid-row: 1; }
  .b-features { grid-template-columns: 1fr; }
  .b-steps li { grid-template-columns: 48px 1fr; }
  .forms-list li { grid-template-columns: 1fr auto; }
  .form-type { grid-column: 1 / -1; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }

  .floaters { left: 14px; bottom: 14px; }
  .fl { width: 46px; height: 46px; }
  .a11y { left: 14px; bottom: 70px; }
  .a11y-btn { width: 46px; height: 46px; }
  .ch-host { right: 14px; bottom: 14px; }
  .ch-launch { width: 56px; height: 56px; }
  .ch-panel { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; bottom: 0; }
  .ch-host.is-open .ch-launch { display: none; }
  .ch-teaser { bottom: 72px; width: min(300px, calc(100vw - 80px)); }
}
@media (max-width: 420px) {
  .ft-grid { grid-template-columns: 1fr; }
}
body.drawer-open .ch-teaser, body.drawer-open .floaters, body.drawer-open .a11y { visibility: hidden; }
body.drawer-open #ocw-root { display: none !important; }
.ch-nowrap { white-space: nowrap; }
