/* BOREY_UI_VERSION: 0.7.5 */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope/Manrope-VariableFont_wght.ttf") format("truetype-variations");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --graphite: #173c5e;
  --graphite-deep: #102b45;
  --steel: #263b4b;
  --muted: #516676;
  --line: #bacad6;
  --surface: #dce5ec;
  --page: #edf2f6;
  --steel-light: #f7f9fb;
  --dark-muted: #cbddea;
  --dark-line: #507089;
  --white: #ffffff;
  --blue: #08679e;
  --blue-light: #80cae9;
  --shell: min(1180px, calc(100% - 40px));
  --radius: 3px;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  color: var(--steel);
  background: var(--page);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--page); font-weight: 450; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a { outline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); }
.home-hero :focus-visible, .engineering-stage :focus-visible, .contact-stage :focus-visible, .site-footer :focus-visible { outline-color: var(--blue-light); }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; 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; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; background: var(--white); color: var(--graphite); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { color: var(--steel); background: var(--steel-light); border-bottom: 1px solid var(--line); position: relative; z-index: 4; }
.utility-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--line); }
.main-nav { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; min-height: 90px; }
.brand { --brand-height: 44px; display: inline-flex; align-items: center; gap: 12px; width: max-content; color: var(--graphite); }
.brand__mark, .brand__wordmark { display: block; flex: none; height: var(--brand-height); width: auto; }
.section-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; align-items: center; font-size: 13px; color: var(--steel); }
.section-nav a { padding-block: 12px; }
.section-nav a:hover { color: var(--blue); }
section[id], main[id] { scroll-margin-top: 24px; }


.hero { overflow: hidden; color: var(--white); background: var(--graphite); }
.hero-grid { min-height: 500px; display: grid; align-items: center; position: relative; }
.hero-copy { position: relative; z-index: 2; padding-block: 64px; }
.eyebrow { margin: 0 0 15px; color: var(--dark-muted); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.blue { color: var(--blue); }
.hero h1, .page-head h1 { margin: 0; font-size: clamp(40px, 5.2vw, 70px); line-height: .99; letter-spacing: -.045em; }
.hero-copy > p:not(.eyebrow) { max-width: 670px; margin: 26px 0; color: var(--dark-muted); font-size: 18px; line-height: 1.55; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--radius); font-size: 14px; font-weight: 750; cursor: pointer; }
.button-primary { color: var(--white); background: var(--blue); }
.button-primary:hover { background: #065582; }
.button-secondary { color: var(--white); background: transparent; border-color: #9ebacb; }
.button-secondary:hover { border-color: var(--white); }

.hero-media { margin: 0; }
.hero-picture { display: block; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-directions { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 12px 34px; width: min(1568px, calc(100% - 64px)); margin-block: 0; padding: 0 0 34px; list-style: none; color: var(--dark-muted); font-size: 14px; line-height: 1.5; }
.hero-directions li { display: flex; align-items: baseline; gap: 12px; }
.hero-directions li::before { content: ""; width: 5px; height: 5px; flex: none; background: var(--blue-light); border-radius: 50%; transform: translateY(-2px); }

.home-hero { min-height: 690px; position: relative; isolation: isolate; background: var(--graphite); }
.home-hero::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(23,60,94,.99) 0%, rgba(23,60,94,.94) 22%, rgba(23,60,94,.58) 44%, rgba(23,60,94,.18) 66%, rgba(23,60,94,.05) 100%), linear-gradient(0deg, rgba(16,43,69,.90) 0%, transparent 30%, rgba(16,43,69,.15) 100%); }
.home-hero .hero-media { position: absolute; z-index: 0; inset: 0; overflow: hidden; }
.home-hero .hero-picture { width: 100%; height: 100%; position: relative; overflow: hidden; background: var(--graphite); }
.home-hero .hero-picture::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -70px 90px rgba(16,43,69,.5); }
.home-hero .hero-image { width: auto; max-width: none; height: 108%; position: absolute; top: 0; right: 0; bottom: auto; transform: none; object-fit: contain; object-position: right top; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.45) 8%, #000 20%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.45) 8%, #000 20%); }
.home-hero .hero-grid { width: min(1568px, calc(100% - 64px)); min-height: 604px; z-index: 2; grid-template-columns: minmax(0, 620px) 1fr; }
.home-hero .hero-copy { max-width: 620px; padding-block: 74px; }
.home-hero .hero-copy h1 { max-width: 620px; }
.home-hero .hero-copy > p:not(.eyebrow) { max-width: 550px; }
.hero-competencies { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--dark-muted); font-size: 12px; line-height: 1.6; }
.hero-competencies li + li { position: relative; }
.hero-competencies li + li::before { content: "·"; position: absolute; left: -12px; color: #9ebacb; }
.company-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 7vw, 90px); align-items: start; padding-block: 90px; }
.company-intro-copy h2, .engineering-stage__content h2 { margin: 0 0 24px; color: var(--graphite); font-size: clamp(34px, 4.5vw, 54px); line-height: 1.05; letter-spacing: -.04em; }
.company-intro-copy > p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.company-principle { margin-top: 32px; padding-left: 36px; border-left: 1px solid var(--line); }
.company-principle h3 { margin: 0 0 18px; color: var(--graphite); font-size: 24px; line-height: 1.3; font-weight: 650; }
.company-principle p { margin: 0; color: var(--muted); line-height: 1.7; }
.company-principle a { display: inline-block; margin-top: 22px; color: var(--blue); font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }

.cycle-section { padding-block: 82px; background: var(--surface); border-block: 1px solid var(--line); }
.cycle-heading { align-items: end; }
.cycle-heading > p { max-width: 440px; margin: 0; color: var(--muted); line-height: 1.6; }
.workflow-list { counter-reset: workflow; margin: 46px 0 0; padding: 0; list-style: none; }
.workflow-list li { counter-increment: workflow; display: grid; grid-template-columns: 24px minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; padding-block: 26px; border-top: 1px solid var(--line); }
.workflow-list li::before { content: counter(workflow); color: var(--muted); font-size: 16px; line-height: 1.7; }
.workflow-list h3 { margin: 0; color: var(--graphite); font-size: 21px; line-height: 1.35; font-weight: 650; }
.workflow-list p { max-width: 590px; margin: 0; color: var(--muted); line-height: 1.7; }

.engineering-stage { min-height: 760px; position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--graphite-deep); }
.engineering-stage__media { width: min(100%, calc(50% + clamp(80px, 5vw, 120px))); height: 100%; position: absolute; z-index: 0; inset: 0 auto 0 0; margin: 0; overflow: hidden; background: transparent; -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 60%, rgba(0,0,0,.92) 66%, rgba(0,0,0,.65) 74%, rgba(0,0,0,.35) 82%, rgba(0,0,0,.12) 89%, transparent 96%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, #000 60%, rgba(0,0,0,.92) 66%, rgba(0,0,0,.65) 74%, rgba(0,0,0,.35) 82%, rgba(0,0,0,.12) 89%, transparent 96%, transparent 100%); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.engineering-stage__picture { display: block; width: 100%; height: 100%; }
.engineering-stage__picture img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 43%; }
.engineering-stage__layout { min-height: 760px; position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(410px, .92fr); align-items: center; }
.engineering-stage__content { grid-column: 2; position: relative; padding-block: 86px; }
.engineering-stage__content h2 { color: var(--white); }
.scope-list { display: grid; gap: 0; margin: 32px 0; padding: 0; list-style: none; border-top: 1px solid var(--dark-line); }
.scope-list li { padding: 22px 0; border-bottom: 1px solid var(--dark-line); }
.scope-list h3 { margin: 0; color: var(--white); font-size: 17px; font-weight: 750; }
.scope-list p { margin: 6px 0 0; color: var(--dark-muted); line-height: 1.55; }

.project-result { padding-block: 90px; background: var(--steel-light); }
.result-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.result-heading { display: block; margin-bottom: 0; }
.result-heading h2 { max-width: 430px; color: var(--graphite); line-height: 1.1; }
.result-heading .eyebrow { color: var(--blue); }
.result-list article + article { margin-top: 32px; }
.result-list h3 { margin: 0 0 10px; color: var(--graphite); font-size: 21px; line-height: 1.3; font-weight: 650; }
.result-list p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.7; }

.contact-stage { padding-block: 64px; color: var(--white); background: var(--graphite); border-top: 1px solid var(--dark-line); }
.contact-stage__layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 70px; align-items: start; }
.contact-stage__intro h2 { margin: 0 0 22px; font-size: clamp(30px, 3.3vw, 42px); line-height: 1.12; letter-spacing: -.035em; }
.contact-stage__intro > p:not(.eyebrow) { max-width: 560px; margin: 0; color: var(--dark-muted); line-height: 1.7; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.035em; }
.page-head { padding-block: 58px 34px; }
.page-head.narrow { max-width: 860px; margin-left: max(20px, calc((100% - 1180px) / 2)); padding-bottom: 90px; }
.page-head h1 { color: var(--graphite); }
.page-head > p:not(.eyebrow):not(.breadcrumbs) { max-width: 800px; margin: 22px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }


.contacts-grid { display: grid; margin: 0; border-top: 1px solid var(--dark-line); }
.contacts-grid > div { padding-block: 22px; border-bottom: 1px solid var(--dark-line); min-width: 0; }
.contacts-grid dt { color: var(--dark-muted); font-size: 12px; margin-bottom: 10px; }
.contacts-grid dd { margin: 0; color: var(--white); font-size: 20px; font-weight: 750; overflow-wrap: anywhere; }
.contacts-grid a { color: var(--white); }
.contacts-grid a:hover { color: var(--blue-light); text-decoration: underline; }
.contacts-pending { margin: 0; padding-block: 24px; border-block: 1px solid var(--dark-line); color: var(--dark-muted); line-height: 1.6; }


.site-footer { color: var(--dark-muted); background: var(--graphite-deep); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; padding-block: 52px; }
.footer-brand { margin-bottom: 18px; color: var(--white); }
.footer-grid h2 { margin-top: 0; color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid a, .footer-grid span { display: block; margin: 10px 0; font-size: 13px; }
.footer-note { padding-block: 18px; border-top: 1px solid var(--dark-line); font-size: 11px; }

.project-input { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; padding-block: 80px; }
.project-input__heading h2 { margin: 0 0 24px; color: var(--graphite); font-size: clamp(32px, 4vw, 46px); line-height: 1.1; letter-spacing: -.035em; }
.project-input__heading > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.project-input__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.project-input__list li { padding-block: 24px; border-bottom: 1px solid var(--line); }
.project-input__list h3 { margin: 0 0 10px; color: var(--graphite); font-size: 20px; line-height: 1.3; }
.project-input__list p { margin: 0; color: var(--muted); line-height: 1.7; }
.faq-section { padding-block: 80px; background: var(--surface); border-block: 1px solid var(--line); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 24px 0; color: var(--graphite); font-size: 18px; font-weight: 750; line-height: 1.5; cursor: pointer; }
.faq-list summary::marker { color: var(--blue); }
.faq-list summary:focus-visible { outline-offset: 3px; }
.faq-list details > div { max-width: 850px; padding: 0 0 22px 24px; }
.faq-list p { margin: 0; color: var(--muted); line-height: 1.75; }

@media (max-width: 980px) {
  .project-input { grid-template-columns: 1fr; gap: 30px; }
  .hero-grid { grid-template-columns: 1fr; }
  .home-hero { min-height: 660px; }
  .home-hero::before { background: linear-gradient(90deg, #173c5e 0%, rgba(23,60,94,.96) 35%, rgba(23,60,94,.58) 72%, rgba(23,60,94,.25) 100%), linear-gradient(0deg, rgba(16,43,69,.92) 0%, transparent 36%); }
  .home-hero .hero-image { top: 0; right: -30%; bottom: auto; height: 100%; opacity: .82; }
  .home-hero .hero-grid { width: var(--shell); min-height: 574px; grid-template-columns: minmax(0, 630px) 1fr; }
  .company-intro { grid-template-columns: 1fr; }
  .company-principle { margin-top: 0; padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .engineering-stage { min-height: 0; }
  .engineering-stage__media { width: 100%; height: auto; position: relative; aspect-ratio: 16 / 10; -webkit-mask-image: linear-gradient(0deg, transparent 0%, rgba(0,0,0,.18) 7%, rgba(0,0,0,.62) 14%, #000 24%); mask-image: linear-gradient(0deg, transparent 0%, rgba(0,0,0,.18) 7%, rgba(0,0,0,.62) 14%, #000 24%); }
  .engineering-stage__picture img { object-position: 50% 46%; }
  .engineering-stage__layout { min-height: 0; display: block; }
  .engineering-stage__content { padding-block: 64px; }
  .result-layout { grid-template-columns: 1fr; gap: 36px; }
  .result-heading h2 { max-width: 760px; }
  .contact-stage__layout { grid-template-columns: 1fr; gap: 30px; }
  .main-nav { grid-template-columns: auto 1fr; gap: 20px; padding-block: 22px; }
  .header-cta { display: none; }
  .section-nav { justify-content: flex-end; gap: 18px; }
  .hero-directions { width: var(--shell); }
}

@media (max-width: 700px) {
  .hero-competencies li + li::before { display: none; }
  .project-input, .faq-section { padding-block: 56px; }
  .faq-list summary { font-size: 16px; }
  :root { --shell: min(100% - 28px, 1180px); }
  .hero-grid { min-height: auto; }
  .home-hero { min-height: 760px; }
  .home-hero::before { background: linear-gradient(180deg, rgba(23,60,94,.99) 0%, rgba(23,60,94,.97) 44%, rgba(23,60,94,.60) 66%, rgba(16,43,69,.98) 100%); }
  .home-hero .hero-image { width: auto; height: 64%; top: auto; right: 50%; bottom: 76px; opacity: .78; transform: translateX(50%); -webkit-mask-image: none; mask-image: none; }
  .home-hero .hero-grid { min-height: 696px; display: block; }
  .home-hero .hero-copy { max-width: 100%; padding-block: 50px 260px; }
  .hero h1, .page-head h1 { font-size: clamp(38px, 12vw, 54px); }
  .company-intro, .cycle-section, .project-result { padding-block: 56px; }
  .engineering-stage__media { aspect-ratio: 1 / 1; }
  .engineering-stage__content { padding-block: 56px; }
  .engineering-stage__content h2 { font-size: clamp(28px, 8vw, 34px); }
  .company-intro { gap: 32px; }
  .cycle-heading { align-items: flex-start; }
  .workflow-list { margin-top: 32px; }
  .workflow-list li { grid-template-columns: 20px minmax(0, 1fr); gap: 10px 16px; padding-block: 24px; }
  .workflow-list li::before { grid-column: 1; grid-row: 1; }
  .workflow-list h3, .workflow-list p { grid-column: 2; }
  .contact-stage { padding-block: 48px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 31px; }
  .page-head.narrow { margin-left: 14px; }
  .delivery-note { display: none; }
  .main-nav { grid-template-columns: 1fr; gap: 16px; padding-block: 20px; }
  .brand { --brand-height: 40px; }
  .section-nav { justify-content: flex-start; gap: 6px 18px; }
  .section-nav a { padding-block: 6px; }
  .section-heading { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-directions { gap: 10px; flex-direction: column; padding-bottom: 26px; }
}

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