/* BEICK: Apple-inspired clarity, retaining the workshop palette and reveal effects.
   Screen-only refinements keep the existing A4 layouts independent. */
@media screen {
  :root {
    --beick-system-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --default-font: var(--beick-system-font);
    --heading-font: var(--beick-system-font);
    --nav-font: var(--beick-system-font);
    --beick-workshop-ink: #f5f5f7;
    --beick-workshop-muted: #c0c4c9;
    --beick-workshop-line: #33383e;
    --nav-dropdown-background-color: #1c2025;
    --nav-dropdown-color: #f5f5f7;
    --nav-dropdown-hover-color: #ff9b69;
    --nav-mobile-background-color: #1c2025;
  }

  html { scroll-padding-top: 6.5rem; }
  body {
    font-family: var(--beick-system-font);
    font-optical-sizing: auto;
    line-height: 1.6;
  }

  h1, h2, h3, h4, h5, h6 { font-family: var(--beick-system-font); }
  a, button, input, select, textarea { touch-action: manipulation; }
  button, input, select, textarea { font: inherit; }
  a { text-underline-offset: .2em; }

  .header {
    isolation: isolate;
    min-height: 5.5rem;
    padding-block: .65rem;
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, .1);
  }

  /* Blur a separate layer: fixed search and menu overlays retain viewport bounds. */
  .header::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(17, 20, 22, .87);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    backdrop-filter: blur(24px) saturate(130%);
    pointer-events: none;
  }

  .scrolled .header { box-shadow: 0 .35rem 1.5rem rgba(0, 0, 0, .16); }
  .header .logo img { width: 11rem; height: auto; max-height: 3.5rem; }
  .header .container-fluid { column-gap: .35rem; }
  .header .logo { order: 0; }
  .header .navmenu { order: 1; }
  .header .language-switcher { order: 2; }
  .header .btn-getstarted { order: 3; }
  .header .search_button { order: 4; }

  .navmenu a,
  .navmenu a:focus {
    font-size: .9375rem;
    font-weight: 550;
    letter-spacing: 0;
    min-height: 2.75rem;
  }

  .navmenu li { position: relative; }
  .navmenu .dropdown-open > a { color: #ff9b69 !important; }
  .navmenu li.dropdown { display: flex; flex-wrap: wrap; align-items: center; }
  .navmenu .dropdown > a { flex: 1 1 0; min-width: 0; }
  .submenu-toggle,
  .mobile-nav-toggle,
  .header .search_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    margin: 0;
    color: var(--beick-workshop-ink);
    background: transparent;
    border: 0;
    border-radius: .75rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 140ms ease, color 140ms ease;
  }

  .submenu-toggle { font-size: .8rem; }
  .submenu-toggle i { transition: transform 180ms ease; }
  .submenu-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
  .submenu-toggle:hover,
  .submenu-toggle:active,
  .header .search_button:hover,
  .mobile-nav-toggle:hover { background: rgba(255, 255, 255, .1); }
  .navmenu .dropdown ul { border: 1px solid var(--beick-workshop-line); border-radius: 1rem; }

  .language-switcher {
    flex-shrink: 0;
    gap: 0;
    margin-inline: .25rem;
    padding: .1875rem;
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .08);
  }
  .language-switcher__link {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: .5rem;
    color: #d2d5d9;
    font-weight: 600;
    letter-spacing: .01em;
  }
  .language-switcher__link.is-active { color: #111416; background: #ff6a24; }

  .header .btn-getstarted,
  .header .btn-getstarted:focus,
  .btn-get-started,
  .beick-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    max-width: 100%;
    padding: .8rem 1.4rem;
    border: 1px solid transparent;
    border-radius: .875rem;
    background: var(--beick-workshop-accent);
    color: #111416 !important;
    font-family: var(--beick-system-font);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
    transition: background-color 140ms ease, box-shadow 140ms ease, transform 100ms ease;
  }

  .header .btn-getstarted { min-height: 2.75rem; margin-left: .75rem; padding: .7rem 1.1rem; font-size: .9375rem; }
  .header .btn-getstarted:hover,
  .btn-get-started:hover,
  .beick-button:hover {
    background: #ff854d;
    transform: none;
    box-shadow: 0 .25rem 1rem rgba(255, 106, 36, .12);
  }
  .header .btn-getstarted:active,
  .btn-get-started:active,
  .beick-button:active { transform: scale(.98); transition-duration: 60ms; }
  .beick-hero .btn-get-started { padding: .8rem 1.4rem; border: 1px solid rgba(255, 255, 255, .45); border-radius: .875rem; background: rgba(17, 20, 22, .75); color: #fff !important; font-size: 1rem; font-weight: 650; line-height: 1.35; letter-spacing: 0; }
  .beick-hero .btn-get-started:hover { border-color: #fff; background: #282d33; }
  .beick-hero p:has(> .beick-button),
  .beick-section__copy p:has(> .beick-button) { max-width: none; margin-top: 1.5rem; }
  .beick-hero p .beick-button + .beick-button { margin-left: .5rem; }

  .beick-hero { min-height: min(46rem, 85svh); padding-block: 3.5rem; }
  .beick-hero .container { padding-block: 2rem; }
  .beick-hero .col-lg-8 { max-width: 51rem; }
  .beick-hero::after { background: linear-gradient(90deg, rgba(12, 15, 18, .94), rgba(12, 15, 18, .82) 42%, rgba(12, 15, 18, .28)); }
  .beick-hero .eyebrow,
  .eyebrow {
    margin-bottom: 1rem;
    color: #ff9b69 !important;
    font-size: .8125rem;
    font-weight: 650;
    line-height: 1.5;
    letter-spacing: .09em;
  }
  .beick-hero h1,
  #c112.beick-hero h1 {
    max-width: 18ch;
    margin: 1rem 0 1.5rem;
    font-size: clamp(2.25rem, 4.6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.035em;
    text-transform: none;
    overflow-wrap: break-word;
    hyphens: manual;
  }
  .beick-hero p:not(.eyebrow) { max-width: 40rem; color: #d2d5da; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.7; }
  .beick-hero ul { max-width: 40rem; padding-left: 1.25rem; color: #d2d5da; line-height: 1.7; }
  .beick-hero .container { width: 100%; }
  .beick-hero .row { justify-content: flex-start !important; }

  .beick-section { padding-block: clamp(3.5rem, 7vw, 7rem); }
  .beick-section__grid { gap: clamp(2rem, 5vw, 5rem); }
  .beick-section__copy { min-width: 0; }
  .beick-section__copy h1,
  .beick-section__copy h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.875rem, 3.1vw, 3.125rem);
    font-weight: 650;
    line-height: 1.14;
    letter-spacing: -.028em;
    overflow-wrap: break-word;
    hyphens: manual;
  }
  .beick-section__copy h3 { margin-top: 2rem; font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
  .beick-section__copy p,
  .beick-section__copy li { font-size: 1.0625rem; line-height: 1.75; }
  .beick-section__copy li + li { margin-top: .45rem; }
  .beick-section__media::before { display: none; }
  .beick-section__media img { border-radius: 1.25rem; box-shadow: 0 1rem 3rem rgba(0, 0, 0, .18); filter: none; }
  /* Application illustrations retain their proportions at every screen width. */
  .beick-section__media img[src*="-examples_"] { height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #202224; }
  .beick-section__media figcaption { padding-left: .875rem; border-left-width: 2px; font-size: .875rem; }
  .beick-section--contact { background: #1c2025 !important; border-block: 1px solid #383e45; }
  .beick-section--contact .eyebrow { padding: 0; background: transparent; color: #ff9b69 !important; }
  .beick-section--contact .beick-button { background: var(--beick-workshop-accent); color: #111416 !important; }
  .beick-section--contact .beick-button:hover { background: #ff854d; }

  .page-title.light-background { padding-block: 1rem; background: #111416 !important; }
  .page-title.light-background .container { padding-left: .75rem; }
  .page-title.light-background .container::before { display: none; }
  .page-title .breadcrumbs ol { font-size: .8125rem; line-height: 1.5; font-weight: 450; letter-spacing: 0; text-transform: none; }
  .footer { padding-top: 4rem; border-top: 1px solid var(--beick-workshop-line); }
  .footer-column h2,
  .footer-column h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
  .footer .copyright { padding-bottom: 2rem; }
  .scroll-top { width: 2.75rem; height: 2.75rem; border-radius: .875rem; box-shadow: 0 .25rem 1rem rgba(0,0,0,.2); }

  .frame form .form-control,
  .frame form .form-select {
    min-height: 3rem;
    padding: .75rem 1rem;
    border: 1px solid #777f89;
    border-radius: .75rem;
    background-color: #1c2025;
    color: #f5f5f7;
    font-size: 1rem;
    line-height: 1.5;
  }
  .frame form .form-control::placeholder { color: #bfc5cc; }
  .frame form label { font-size: 1rem; font-weight: 550; }
  .frame form .btn-primary { min-height: 3rem; padding: .75rem 1.5rem; border: 0; border-radius: .875rem; background: #ff6a24; color: #111416; font-weight: 650; }
  .frame form .invalid-feedback { color: #ffb6a2; }

  body.search-active { overflow: hidden; }
  .searchlightbox { background: rgba(0, 0, 0, .65); transition: opacity 160ms ease; }
  .searchlightbox .lightbox-content {
    width: min(calc(100% - 2rem), 40rem);
    margin: min(20vh, 10rem) auto 2rem;
    padding: 4.5rem 1.5rem 1.5rem;
    border: 1px solid #454c55;
    border-radius: 1.5rem;
    background: #1c2025;
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, .4);
  }
  .searchlightbox .close { top: .75rem; right: .75rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: #f5f5f7; background: #30363d; }
  .searchlightbox .tx-indexedsearch-form { display: flex; flex-wrap: wrap; gap: .75rem; }
  .searchlightbox .form-control { flex: 1 1 12rem; width: auto; min-width: 0; min-height: 3rem; border-radius: .75rem; border: 1px solid #777f89; background: #111416; color: #f5f5f7; }
  .searchlightbox .form-control::placeholder { color: #bfc5cc; }
  .searchlightbox .btn-primary { min-height: 3rem; padding-inline: 1.25rem; border: 0; border-radius: .75rem; color: #111416; background: #ff6a24; font-weight: 650; }

  @media (min-width: 1200px) {
    .navmenu > ul { gap: .125rem; }
    .navmenu a, .navmenu a:focus { padding: .75rem .7rem; }
    .navmenu .dropdown > a { padding-right: 0; }
    .navmenu .submenu-toggle { flex-basis: 2.75rem; width: 2.75rem; }
    .navmenu .dropdown ul,
    .navmenu .dropdown:hover > ul,
    .navmenu .dropdown .dropdown:hover > ul {
      display: block;
      width: max-content;
      max-width: min(24rem, calc(100vw - 2rem));
      top: 100%;
      margin: 0;
      padding: .5rem;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      background: #1c2025;
      box-shadow: 0 1rem 3rem rgba(0, 0, 0, .35);
      transition: opacity 140ms ease;
    }
    header #navmenu > ul > li.dropdown > ul { left: auto; right: 0; }
    .navmenu .dropdown ul li { min-width: 13rem; }
    .navmenu .dropdown ul a { padding: .7rem .8rem; border-radius: .625rem; white-space: normal; }
    .navmenu .dropdown ul a:hover { background: rgba(255,255,255,.06); }
    .navmenu .dropdown .dropdown > ul,
    .navmenu .dropdown .dropdown:hover > ul { top: -.5rem; left: auto; right: 100%; }
    .navmenu .dropdown.dropdown-open > ul,
    .navmenu .dropdown .dropdown.dropdown-open > ul { opacity: 1; visibility: visible; pointer-events: auto; }
  }

  @media (max-width: 1199.98px) {
    .header { min-height: 5rem; }
    .header .language-switcher { order: 1; }
    .header .btn-getstarted { order: 2; }
    .header .search_button { order: 3; }
    .header .navmenu { order: 4; }
    .header .logo img { width: clamp(6rem, calc(100vw - 16rem), 10.5rem); height: auto; max-height: 3rem; }
    .header .navmenu > ul { padding: .75rem; border: 1px solid #454c55; border-radius: 1.25rem; }
    .header .navmenu a { min-height: 2.75rem; padding: .65rem .75rem; border-radius: .625rem; white-space: normal; line-height: 1.4; }
    .header .navmenu .dropdown ul { width: 100%; padding: .25rem 0 .25rem .75rem; margin: .25rem 0 .5rem .75rem; border: 0; border-left: 1px solid #454c55; border-radius: 0; background: transparent; }
    .header .navmenu .dropdown > .dropdown-active { display: block; background: transparent; }
    .mobile-nav-active .navmenu { background: rgba(0, 0, 0, .65); }
    .mobile-nav-active .navmenu > ul { inset: 5.25rem 1rem 1rem; background: #1c2025; }
    .mobile-nav-active .mobile-nav-toggle { position: fixed; top: 1rem; right: 1rem; font-size: 1.75rem; background: #30363d; }
  }

  @media (max-width: 767.98px) {
    html { scroll-padding-top: 5.75rem; }
    .beick-hero { min-height: 0; padding-block: 2.5rem; }
    .beick-hero .container { padding-block: 1rem; }
    .beick-hero h1, #c112.beick-hero h1 { font-size: clamp(2rem, 8.3vw, 3.25rem); line-height: 1.1; letter-spacing: -.028em; }
    .beick-hero::after { background: rgba(12, 15, 18, .8); }
    .beick-section__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .beick-section__media { order: 0 !important; }
    .beick-section__copy h1, .beick-section__copy h2 { font-size: clamp(1.875rem, 7.5vw, 2.5rem); }
    .beick-section__media img { border-radius: 1rem; }
    .footer-grid { gap: 2.5rem; }
  }

  @media (max-width: 575.98px) {
    .header .container-fluid { padding-inline: .75rem; column-gap: .125rem; }
    .header .btn-getstarted { display: none; }
    .language-switcher { margin-inline: .125rem; }
    .beick-hero .container, .beick-section > .container { padding-inline: 1.5rem; }
    .beick-hero .row > * { padding-inline: 0; }
    .beick-hero .eyebrow, .eyebrow { font-size: .75rem; letter-spacing: .065em; }
    .beick-hero .beick-button, .beick-hero .btn-get-started { width: 100%; }
    .beick-hero p .beick-button + .beick-button { margin: .75rem 0 0; }
  }

  @media (prefers-reduced-transparency: reduce) {
    .header::before { background: #111416; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .language-switcher { background: #262b30; }
    .beick-hero .btn-get-started { background: #111416; }
  }

  @media (prefers-contrast: more) {
    :root { --beick-workshop-muted: #e0e2e6; --beick-workshop-line: #858c95; }
    .header::before { background: #111416; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .header { border-bottom-color: #858c95; }
    .beick-hero p:not(.eyebrow) { color: #fff; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
    [data-aos] { opacity: 1 !important; transform: none !important; }
    .beick-button:active, .btn-get-started:active, .header .btn-getstarted:active { transform: none; }
  }
}
