@font-face {
  font-family: Assistant;
  src: url('assets/assistant-hebrew.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: Assistant;
  src: url('assets/assistant-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #102340;
  --ink: #f5f9ff;
  --muted: #c2d4e9;
  --cyan: #a8d7ff;
  --violet: #b7d7fa;
  --line: #9bc4ef38;
  --panel: #1a3353;
  --panel-hover: #29476b;
}

body {
  font-family: Assistant, Arial, sans-serif;
  background: var(--bg);
}

.binary-wallpaper {
  background:
    url('assets/binary-mist.svg?v=2') repeat,
    linear-gradient(125deg, #10213c 0%, #183251 55%, #122641 100%);
  background-size: clamp(480px, 55vw, 620px) auto, 100% 100%;
  opacity: 1;
}

.header, .footer { background: #0e203be8; }
.hero, .services, .portfolio, .approach, .contact { background: transparent; }
.services, .approach, .contact { border-block-start: 1px solid var(--line); }
.services, .approach { border-block-end: 0; }
.hero-glow { background: none; }
.logo-panel { box-shadow: 0 14px 42px #08182c80; }

nav > a, .brand-name small, .footer-inner,
.hero-description, .hero-caption, .hero-bottom,
.section-intro, .service-kicker, .service-card p, .help-strip p,
.work-info p, .work-details, .approach-copy > p:not(.eyebrow),
.signature > span:last-child, .contact-details, .detail-dialog p, .detail-dialog ul,
.channel-copy p, .channel-handle {
  color: var(--muted);
}
.footer-brand, .channel-copy h3 { color: var(--ink); }
.hero-copy .eyebrow > span, .menu-toggle span { background: var(--cyan); }
.accent-dot, .art-code, .contact-details > span, .contact-details a:hover,
.help-symbol, .service-icon, .text-button, .text-button span {
  color: var(--cyan);
}
.contact h2 em { -webkit-text-fill-color: var(--cyan); }

.button-primary, .filter.active {
  color: var(--bg);
  background: #b9dfff;
  border-color: #b9dfff;
  box-shadow: none;
}
.button-primary:hover {
  color: var(--bg);
  background: #d1eaff;
}
.button-outline, .button-small, .nav-contact, .menu-toggle, .filter {
  background: #162c4c;
  border-color: var(--line);
  color: var(--ink);
}
.button-outline:hover, .button-small:hover, .nav-contact:hover, .filter:hover {
  background: var(--panel-hover);
  border-color: #a8d7ff80;
  color: var(--ink);
}
.filter.active:hover {
  color: var(--bg);
  background: #d1eaff;
}

.service-card, .help-strip, .art-tag, .portfolio-channel {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: none;
}
.service-card:hover { border-color: #a8d7ff90; }
.service-card::before { content: none; }
.service-icon, .service-tags span, .process-mark {
  background: #294666;
  border-color: var(--line);
}
.service-tags span, .art-tag { color: #d5e8fb; }
.text-button:hover { color: var(--cyan); text-decoration: underline; }
.art-orbit { border-color: var(--line); }

.work-visual.has-image, .work-visual.site-visual, .work-visual.placeholder,
.detail-dialog, .site-address, .coming-badge {
  background: var(--panel);
  border-color: var(--line);
}
.site-address, .coming-badge, .work-visual.placeholder > svg { color: var(--cyan); }
.placeholder::before { content: none; }
.expand-mark, .dialog-close {
  color: var(--ink);
  background: var(--panel-hover);
}
.video-play, .portfolio-channel .channel-link {
  color: var(--ink);
  background: #255382;
  border-color: #72afe3a0;
}
.work-visual:hover .video-play, .work-visual:focus-visible .video-play,
.portfolio-channel .channel-link:hover {
  background: #2f649b;
}
.portfolio-channel .channel-link:focus-visible { outline-color: var(--cyan); }
.detail-dialog::backdrop { background: #071424bc; }

@media (max-width: 800px) {
  nav { background: #102340; }
  .hero h1 { font-weight: 650; }
}

/* Keep enlarged text within flexible cards and controls. */
h1, h2, h3, p, .channel-handle { overflow-wrap: anywhere; }
.hero-copy, .brand-name, .help-strip > div, .channel-copy > div { min-width: 0; }
.header { height: auto; min-height: 70px; }
.header-inner { min-height: 70px; padding-block: 10px; }
.hero-actions, .contact-details { flex-wrap: wrap; }
.button { white-space: normal; text-align: center; }
@media (min-width: 801px) and (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .header, .header-inner { min-height: 86px; }
  .header-inner { padding-block: 0; }
  .hero .button { max-width: 100%; }
  .contact-details a { overflow-wrap: anywhere; }
}


/* Keep mobile help text in a stable column. */
@media (max-width: 800px) {
  .help-strip { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .help-strip > div:nth-child(2) { min-width: 0; }
  .help-strip h3, .help-strip p { overflow-wrap: normal; }
  .help-strip .button { grid-column: 1 / -1; justify-self: stretch; margin: 0; width: 100%; }
}

/* Images expand inside the current page; the normal dialog stays unchanged. */
.image-viewer { position: relative; }
.image-surface { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; border-radius: 12px; }
.image-surface .dialog-image { display: block; width: 100%; margin: 0; }
.image-expand { position: absolute; inset-inline-end: 12px; bottom: 12px; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #c2d4e9; border-radius: 10px; background: #102340e8; color: #fff; cursor: pointer; }
.image-expand svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; }
.image-surface:focus-visible, .image-expand:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.detail-dialog.image-expanded { box-sizing: border-box; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #081221; overflow: hidden; }
.image-expanded #dialog-title { display: none; }
.image-expanded #dialog-content, .image-expanded .image-viewer, .image-expanded .image-surface { width: 100%; height: 100%; }
.image-expanded .image-surface { cursor: zoom-out; border-radius: 0; padding: 60px 12px 72px; box-sizing: border-box; }
.image-expanded .dialog-image { width: 100%; height: 100%; max-height: none; object-fit: contain; border-radius: 0; }
.image-expanded .dialog-close { position: absolute; z-index: 2; top: max(12px, env(safe-area-inset-top)); }
.image-expanded .image-expand { bottom: max(12px, env(safe-area-inset-bottom)); }

